1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# Grammar for REPL commands _ : @{ ' ' '\t' '\n' } Set : @<Ident> emit=void { if !emit { emit = str(Ident) } Ident _ 'on' ast(emit, true) Ident _ 'off' ast(emit, false) Ident ast(emit, true) } '#' { Set<'debug'> 'run' _ Name ast("run") }