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 )
75 stack = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];
82 if cs == recdescent3_error
88 "88 foo { 99 {{{{}}}}{ } }",
92 inp.each { |str| run_machine(str) }
94 =begin _____OUTPUT_____
117 =end _____OUTPUT_____