3 * This implementes an atoi machine using the statechart paradigm.
23 val = val * 10 + (fc - 48);
33 '-' @see_neg ->om_num |
35 [0-9] @add_digit ->more_nums
40 [0-9] @add_digit ->more_nums
45 [0-9] @add_digit ->more_nums |
50 action oneof { printi val; prints "\n"; }
51 main := ( atoi '\n' @oneof )*;