-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathparser.output
128 lines (104 loc) · 1.85 KB
/
parser.output
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
Terminais sem uso na gramática
TK_PR_INT
TK_PR_FLOAT
TK_PR_BOOL
TK_PR_CHAR
TK_PR_STRING
TK_PR_IF
TK_PR_THEN
TK_PR_ELSE
TK_PR_WHILE
TK_PR_DO
TK_PR_INPUT
TK_PR_OUTPUT
TK_PR_RETURN
TK_PR_CONST
TK_PR_STATIC
TK_PR_FOREACH
TK_PR_FOR
TK_PR_SWITCH
TK_PR_CASE
TK_PR_BREAK
TK_PR_CONTINUE
TK_PR_CLASS
TK_PR_PRIVATE
TK_PR_PUBLIC
TK_PR_PROTECTED
TK_OC_LE
TK_OC_GE
TK_OC_EQ
TK_OC_NE
TK_OC_AND
TK_OC_OR
TK_OC_SL
TK_OC_SR
TK_LIT_INT
TK_LIT_FLOAT
TK_LIT_FALSE
TK_LIT_TRUE
TK_LIT_CHAR
TK_LIT_STRING
TK_IDENTIFICADOR
TOKEN_ERRO
Gramática
0 $accept: programa $end
1 programa: %empty
Terminais, com as regras onde eles aparecem
$end (0) 0
error (256)
TK_PR_INT (258)
TK_PR_FLOAT (259)
TK_PR_BOOL (260)
TK_PR_CHAR (261)
TK_PR_STRING (262)
TK_PR_IF (263)
TK_PR_THEN (264)
TK_PR_ELSE (265)
TK_PR_WHILE (266)
TK_PR_DO (267)
TK_PR_INPUT (268)
TK_PR_OUTPUT (269)
TK_PR_RETURN (270)
TK_PR_CONST (271)
TK_PR_STATIC (272)
TK_PR_FOREACH (273)
TK_PR_FOR (274)
TK_PR_SWITCH (275)
TK_PR_CASE (276)
TK_PR_BREAK (277)
TK_PR_CONTINUE (278)
TK_PR_CLASS (279)
TK_PR_PRIVATE (280)
TK_PR_PUBLIC (281)
TK_PR_PROTECTED (282)
TK_OC_LE (283)
TK_OC_GE (284)
TK_OC_EQ (285)
TK_OC_NE (286)
TK_OC_AND (287)
TK_OC_OR (288)
TK_OC_SL (289)
TK_OC_SR (290)
TK_LIT_INT (291)
TK_LIT_FLOAT (292)
TK_LIT_FALSE (293)
TK_LIT_TRUE (294)
TK_LIT_CHAR (295)
TK_LIT_STRING (296)
TK_IDENTIFICADOR (297)
TOKEN_ERRO (298)
Não terminais com as regras onde eles aparecem
$accept (44)
à esquerda: 0
programa (45)
à esquerda: 1, à direita: 0
Estado 0
0 $accept: . programa $end
$padrão reduzir usando a regra 1 (programa)
programa ir ao estado 1
Estado 1
0 $accept: programa . $end
$end deslocar, e ir ao estado 2
Estado 2
0 $accept: programa $end .
$padrão aceitar