You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error messages from lalr for shift/reduce and reduce/reduce conflicts are a bit dry.
How to produce an output similar to the ones bison/byacc produce when specifying -v ?
...
State 9
2 lines: lines line •
$default reduce using rule 2 (lines)
State 10
3 line: dexp • '\n'
10 dexp: dexp • '+' dexp
11 | dexp • '-' dexp
12 | dexp • '*' dexp
13 | dexp • '/' dexp
16 vexp: dexp •
20 | dexp • '+' vexp
22 | dexp • '-' vexp
24 | dexp • '*' vexp
26 | dexp • '/' vexp
'+' shift, and go to state 21
'-' shift, and go to state 22
'*' shift, and go to state 23
'/' shift, and go to state 24
'\n' shift, and go to state 25
'+' [reduce using rule 16 (vexp)]
'-' [reduce using rule 16 (vexp)]
'*' [reduce using rule 16 (vexp)]
'/' [reduce using rule 16 (vexp)]
'\n' [reduce using rule 16 (vexp)]
State 11
...
The text was updated successfully, but these errors were encountered:
The error messages from
lalr
forshift/reduce
andreduce/reduce
conflicts are a bit dry.How to produce an output similar to the ones bison/byacc produce when specifying
-v
?byacc:
bison:
The text was updated successfully, but these errors were encountered: