| « Prev 4.8 ptype statement - specifying parser value types | Table of Contents | Next » 4.10 token statement - specifying tokens |
start statement - specifying the parser start rule nameThe start rule can be changed from the default of Start by using the start
statement.
Example:
start MyStartRule;
Multiple start rules can be specified, either with multiple start statements
or one start statement listing multiple start rules.
Example:
start Module ModuleItem Statement Expression;
When multiple start rules are specified, multiple p_parse_*() functions,
p_result_*(), and p_tree_delete_*() functions (in tree mode) are generated.
A default p_parse(), p_result(), p_tree_delete() are generated corresponding
to the first start rule.
Additionally, each start rule causes the generation of another version of each
of these functions, for example p_parse_Statement(), p_result_Statement(),
and p_tree_delete_Statement().
| « Prev 4.8 ptype statement - specifying parser value types | Table of Contents | Next » 4.10 token statement - specifying tokens |