TaschenrechnerParser/y.output
Schleicher Laurenz fa28bd24fe Taschenrechner
2023-12-06 13:21:19 +01:00

129 lines
1.7 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

0 $accept : S $end
1 S : KLAMMERAUF S KLAMMERZU
2 | S operationszeichen S
3 | ZAHL
4 operationszeichen : PLUS
5 | MAL
6 | MINUS
7 | GETEILT
state 0
$accept : . S $end (0)
KLAMMERAUF shift 1
ZAHL shift 2
. error
S goto 3
state 1
S : KLAMMERAUF . S KLAMMERZU (1)
KLAMMERAUF shift 1
ZAHL shift 2
. error
S goto 4
state 2
S : ZAHL . (3)
. reduce 3
state 3
$accept : S . $end (0)
S : S . operationszeichen S (2)
$end accept
PLUS shift 5
MAL shift 6
MINUS shift 7
GETEILT shift 8
. error
operationszeichen goto 9
state 4
S : KLAMMERAUF S . KLAMMERZU (1)
S : S . operationszeichen S (2)
PLUS shift 5
MAL shift 6
MINUS shift 7
GETEILT shift 8
KLAMMERZU shift 10
. error
operationszeichen goto 9
state 5
operationszeichen : PLUS . (4)
. reduce 4
state 6
operationszeichen : MAL . (5)
. reduce 5
state 7
operationszeichen : MINUS . (6)
. reduce 6
state 8
operationszeichen : GETEILT . (7)
. reduce 7
state 9
S : S operationszeichen . S (2)
KLAMMERAUF shift 1
ZAHL shift 2
. error
S goto 11
state 10
S : KLAMMERAUF S KLAMMERZU . (1)
. reduce 1
11: shift/reduce conflict (shift 5, reduce 2) on PLUS
11: shift/reduce conflict (shift 6, reduce 2) on MAL
11: shift/reduce conflict (shift 7, reduce 2) on MINUS
11: shift/reduce conflict (shift 8, reduce 2) on GETEILT
state 11
S : S . operationszeichen S (2)
S : S operationszeichen S . (2)
PLUS shift 5
MAL shift 6
MINUS shift 7
GETEILT shift 8
$end reduce 2
KLAMMERZU reduce 2
operationszeichen goto 9
State 11 contains 4 shift/reduce conflicts.
10 terminals, 3 nonterminals
8 grammar rules, 12 states