Conflict report for Expression Conflicting
Farkle could not precompile this grammar because there were 5 LALR states with conflicts. These states are:
Besides conflicts, there also might have been other kinds of errors that are not listed here.
Syntax
LALR States
States with conflicts and conflicting actions are highlighted.
| Symbol | Action |
|---|---|
| ( | Shift to State 2 |
| Number | Shift to State 3 |
| Expression Conflicting | Go to State 1 |
| Symbol | Action |
|---|---|
| + | Shift to State 4 |
| - | Shift to State 5 |
| * | Shift to State 6 |
| / | Shift to State 7 |
| ^ | Shift to State 8 |
| EOF | Accept |
| Symbol | Action |
|---|---|
| ( | Shift to State 2 |
| Number | Shift to State 3 |
| Expression Conflicting | Go to State 9 |
| Symbol | Action |
|---|---|
| + | Reduce <Expression Conflicting> ::= Number |
| - | Reduce <Expression Conflicting> ::= Number |
| * | Reduce <Expression Conflicting> ::= Number |
| / | Reduce <Expression Conflicting> ::= Number |
| ^ | Reduce <Expression Conflicting> ::= Number |
| ) | Reduce <Expression Conflicting> ::= Number |
| EOF | Reduce <Expression Conflicting> ::= Number |
| Symbol | Action |
|---|---|
| ( | Shift to State 2 |
| Number | Shift to State 3 |
| Expression Conflicting | Go to State 10 |
| Symbol | Action |
|---|---|
| ( | Shift to State 2 |
| Number | Shift to State 3 |
| Expression Conflicting | Go to State 11 |
| Symbol | Action |
|---|---|
| ( | Shift to State 2 |
| Number | Shift to State 3 |
| Expression Conflicting | Go to State 12 |
| Symbol | Action |
|---|---|
| ( | Shift to State 2 |
| Number | Shift to State 3 |
| Expression Conflicting | Go to State 13 |
| Symbol | Action |
|---|---|
| ( | Shift to State 2 |
| Number | Shift to State 3 |
| Expression Conflicting | Go to State 14 |
| Symbol | Action |
|---|---|
| + | Shift to State 4 |
| - | Shift to State 5 |
| * | Shift to State 6 |
| / | Shift to State 7 |
| ^ | Shift to State 8 |
| ) | Shift to State 15 |
| Symbol | Action |
|---|---|
| + | Shift to State 4 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '+' <Expression Conflicting> | |
| - | Shift to State 5 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '+' <Expression Conflicting> | |
| * | Shift to State 6 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '+' <Expression Conflicting> | |
| / | Shift to State 7 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '+' <Expression Conflicting> | |
| ^ | Shift to State 8 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '+' <Expression Conflicting> | |
| ) | Reduce <Expression Conflicting> ::= <Expression Conflicting> '+' <Expression Conflicting> |
| EOF | Reduce <Expression Conflicting> ::= <Expression Conflicting> '+' <Expression Conflicting> |
| Symbol | Action |
|---|---|
| + | Shift to State 4 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '-' <Expression Conflicting> | |
| - | Shift to State 5 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '-' <Expression Conflicting> | |
| * | Shift to State 6 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '-' <Expression Conflicting> | |
| / | Shift to State 7 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '-' <Expression Conflicting> | |
| ^ | Shift to State 8 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '-' <Expression Conflicting> | |
| ) | Reduce <Expression Conflicting> ::= <Expression Conflicting> '-' <Expression Conflicting> |
| EOF | Reduce <Expression Conflicting> ::= <Expression Conflicting> '-' <Expression Conflicting> |
| Symbol | Action |
|---|---|
| + | Shift to State 4 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '*' <Expression Conflicting> | |
| - | Shift to State 5 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '*' <Expression Conflicting> | |
| * | Shift to State 6 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '*' <Expression Conflicting> | |
| / | Shift to State 7 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '*' <Expression Conflicting> | |
| ^ | Shift to State 8 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '*' <Expression Conflicting> | |
| ) | Reduce <Expression Conflicting> ::= <Expression Conflicting> '*' <Expression Conflicting> |
| EOF | Reduce <Expression Conflicting> ::= <Expression Conflicting> '*' <Expression Conflicting> |
| Symbol | Action |
|---|---|
| + | Shift to State 4 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '/' <Expression Conflicting> | |
| - | Shift to State 5 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '/' <Expression Conflicting> | |
| * | Shift to State 6 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '/' <Expression Conflicting> | |
| / | Shift to State 7 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '/' <Expression Conflicting> | |
| ^ | Shift to State 8 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '/' <Expression Conflicting> | |
| ) | Reduce <Expression Conflicting> ::= <Expression Conflicting> '/' <Expression Conflicting> |
| EOF | Reduce <Expression Conflicting> ::= <Expression Conflicting> '/' <Expression Conflicting> |
| Symbol | Action |
|---|---|
| + | Shift to State 4 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '^' <Expression Conflicting> | |
| - | Shift to State 5 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '^' <Expression Conflicting> | |
| * | Shift to State 6 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '^' <Expression Conflicting> | |
| / | Shift to State 7 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '^' <Expression Conflicting> | |
| ^ | Shift to State 8 |
| Reduce <Expression Conflicting> ::= <Expression Conflicting> '^' <Expression Conflicting> | |
| ) | Reduce <Expression Conflicting> ::= <Expression Conflicting> '^' <Expression Conflicting> |
| EOF | Reduce <Expression Conflicting> ::= <Expression Conflicting> '^' <Expression Conflicting> |