.output 出力 -v オプション
出力例
Rules: ------ 0: $start -> input $end 1: input -> /* empty */ 2: input -> input line 3: line -> '\n' 4: line -> 'a' '\n' 5: line -> error '\n' States: ------- State 0: $start -> . input $end (Rule 0) $default reduce using rule 1 (input) input go to state 1 State 1: $start -> input . $end (Rule 0) input -> input . line (Rule 2) $end shift, and go to state 2 '\n' shift, and go to state 4 'a' shift, and go to state 3 error shift, and go to state 5 line go to state 6 State 2: $start -> input $end . (Rule 0) $default accept State 3: line -> 'a' . '\n' (Rule 4) '\n' shift, and go to state 7 State 4: line -> '\n' . (Rule 3) $default reduce using rule 3 (line) State 5: line -> error . '\n' (Rule 5) '\n' shift, and go to state 8 State 6: input -> input line . (Rule 2) $default reduce using rule 2 (input) State 7: line -> 'a' '\n' . (Rule 4) $default reduce using rule 4 (line) State 8: line -> error '\n' . (Rule 5) $default reduce using rule 5 (line) Summary: -------- Number of rules : 6 Number of terminals : 4 Number of non-terminals : 3 Number of states : 9