blob: 809874f581696e661647f80e7611c1f7445327cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
Created by PLY version 3.11 (http://www.dabeaz.com/ply)
Grammar
Rule 0 S' -> sentence
Rule 1 sentence -> WORD NUMBERSEQUENCE
Terminals, with rules where they appear
NUMBERSEQUENCE : 1
WORD : 1
error :
Nonterminals, with rules where they appear
sentence : 0
Parsing method: LALR
state 0
(0) S' -> . sentence
(1) sentence -> . WORD NUMBERSEQUENCE
WORD shift and go to state 2
sentence shift and go to state 1
state 1
(0) S' -> sentence .
state 2
(1) sentence -> WORD . NUMBERSEQUENCE
NUMBERSEQUENCE shift and go to state 3
state 3
(1) sentence -> WORD NUMBERSEQUENCE .
$end reduce using rule 1 (sentence -> WORD NUMBERSEQUENCE .)
|