match_word('END_SCENARIO')
emit('byte[] ' + scenario_name + ' = scenario.Compile();')

def delay():
    match_word('DELAY')
length = match_number()
emit('scenario.Add(new DelayCommand(' + length + '))')

def cmds():
    word = peek_next_word()
if word == 'DELAY':
    pass
We have a graphical designer, now they want a text based designer. Suggestions?