Next: Interfacing with the
Up: Parser Specification
Previous: Production rules
If the command line option -r is used, then
in addition to generating the code for the grammar, the translator
will also generate a comprehensive report of the grammar and
the resulting LALR(1) automaton. The amount of details in this
report can be varied using the the verbose option
-v :
- -v1
- Print full information for all LR(0) states.
- -v2
- Also print out the lookahead set of a reduction rule.
This may be useful for tracking down shift/reduce and reduce/reduce conflicts.
- -v3
- Do both
-v1
and -v2
.
Allen Leung
Mon Apr 7 14:33:55 EDT 1997