Example 1
We see that Identifiers are defined to consist
of a sequence of one or more letters and digits beginning with a letter
and that a literal consists of a sequence of digits. The allowable operators
are those for addition, subtraction, multiplication, division and assignment.
These regular expressions are input to the generator to produce state tables
either in table form or as a case statement program stub.
Example 2