Example Continued

Example Continued

The scanner reports errors if it encounters an invalid character.

Often a token number is returned and the identifiers get stored

in a symbol table.

The parser produces a parse tree:

root_node

stmt1 stmt2

stmt1 stmt2

= =

x 19 x *

x x

Previous slide Next slide Back to the first slide View Graphic Version