10 print( "growing stack\n" );
12 # Don't actually bother to resize here, but we do print messages.
13 # stack = (int*)realloc( stack, sizeof(int)*stack_size );
18 if stack_size > (top * 4)
19 print( "shrinking stack\n" );
21 # Don't actually bother to resize here, but we do print messages.
22 # stack = (int*)realloc( stack, sizeof(int)*stack_size );
26 action item_start { item = p; }
31 print( data[item..p-1] );
37 print( "calling main\n" );
44 print( "STRAY CLOSE\n" );
48 print( "returning from main\n" );
59 ( number | id ) >item_start %item_finish |
69 def run_machine( data )
74 stack = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];
81 if cs == recdescent3_error
87 "88 foo { 99 {{{{}}}}{ } }",
91 inp.each { |str| run_machine(str) }
93 =begin _____OUTPUT_____
116 =end _____OUTPUT_____