98e903e7a0
bison, keeping full compatibility with our previous yacc implementation. Also bring the ability to create reentrant parser This fix bin/140309 [1] PR: bin/140309 [1] Submitted by: Philippe Pepiot <ksh@philpep.org> [1] Approved by: des (mentor) MFC after: 1 month
28 lines
262 B
Plaintext
28 lines
262 B
Plaintext
0 $accept : S $end
|
||
|
||
1 S : error
|
||
|
||
state 0
|
||
$accept : . S $end (0)
|
||
|
||
error shift 1
|
||
. error
|
||
|
||
S goto 2
|
||
|
||
|
||
state 1
|
||
S : error . (1)
|
||
|
||
. reduce 1
|
||
|
||
|
||
state 2
|
||
$accept : S . $end (0)
|
||
|
||
$end accept
|
||
|
||
|
||
2 terminals, 2 nonterminals
|
||
2 grammar rules, 3 states
|