| « Prev 4.10 ptype statement - specifying parser value types | Table of Contents | Next » 4.12 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_*(),
p_parse_inner_*(), and p_result_*() functions are generated.
A default p_parse() and p_result() 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_parse_inner_Statement(), and p_result_Statement().
| « Prev 4.10 ptype statement - specifying parser value types | Table of Contents | Next » 4.12 token statement - specifying tokens |