Skip to content

Commit 3d7c442

Browse files
author
Viktor Chernev
committed
add test results for v1.0
1 parent debe092 commit 3d7c442

File tree

39 files changed

+7265
-6
lines changed

39 files changed

+7265
-6
lines changed
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
========================================
2+
Source Code (between the arrows)
3+
========================================
4+
5+
🡆macronutrients ->>
6+
7+
fiber,,
8+
water;;
9+
10+
micronutrients ->>
11+
12+
vitamins (ABCDEK),,
13+
minerals (micronutrients);;🡄
14+
15+
========================================
16+
Parse Tree
17+
========================================
18+
19+
+--<scripture> ::= <expression-list>
20+
| +--<expression-list> ::= <expression> <expression>
21+
| | +--<expression> ::= <item> <producer> <item-or-expression-list> <terminator>
22+
| | | +--<item> ::= <text>
23+
| | | | +--<text> ::= <text-chunk>
24+
| | | | | +--<text-chunk> ::= Text
25+
| | | | | | +--macronutrients
26+
| | | +--<producer> ::= Hyphen RightArrow RightArrow
27+
| | | | +---
28+
| | | | +-->
29+
| | | | +-->
30+
| | | +--<item-or-expression-list> ::= <item> <separator> <item>
31+
| | | | +--<item> ::= <text>
32+
| | | | | +--<text> ::= <text-chunk>
33+
| | | | | | +--<text-chunk> ::= Text
34+
| | | | | | | +-- fiber
35+
| | | | +--<separator> ::= Separator Separator
36+
| | | | | +--,
37+
| | | | | +--,
38+
| | | | +--<item> ::= <text>
39+
| | | | | +--<text> ::= <text-chunk>
40+
| | | | | | +--<text-chunk> ::= Text
41+
| | | | | | | +-- water
42+
| | | +--<terminator> ::= Terminator Terminator
43+
| | | | +--;
44+
| | | | +--;
45+
| | +--<expression> ::= <item> <producer> <item-or-expression-list> <terminator>
46+
| | | +--<item> ::= <text>
47+
| | | | +--<text> ::= <text-chunk>
48+
| | | | | +--<text-chunk> ::= Text
49+
| | | | | | +--micronutrients
50+
| | | +--<producer> ::= Hyphen RightArrow RightArrow
51+
| | | | +---
52+
| | | | +-->
53+
| | | | +-->
54+
| | | +--<item-or-expression-list> ::= <item> <separator> <item>
55+
| | | | +--<item> ::= <text>
56+
| | | | | +--<text> ::= <text-chunk>
57+
| | | | | | +--<text-chunk> ::= Text
58+
| | | | | | | +-- vitamins (ABCDEK)
59+
| | | | +--<separator> ::= Separator Separator
60+
| | | | | +--,
61+
| | | | | +--,
62+
| | | | +--<item> ::= <text>
63+
| | | | | +--<text> ::= <text-chunk>
64+
| | | | | | +--<text-chunk> ::= Text
65+
| | | | | | | +-- minerals (micronutrients)
66+
| | | +--<terminator> ::= Terminator Terminator
67+
| | | | +--;
68+
| | | | +--;
69+
70+
71+
========================================
72+
Parse Actions
73+
========================================
74+
75+
Parse Action State Line Col Parse Value Description
76+
--------------- ----- ----- ----- --------------------------------------- -------------------------------------------------------------------------
77+
Token Read 0 0 0 macronutrients Token type: Text
78+
Shift 14 The parser shifted to state 14
79+
Token Read 14 0 15 - Token type: Hyphen
80+
Reduce 20 (1) ::= macronutrients <text-chunk> ::= Text
81+
Reduce 19 (2) ::= (1) <text> ::= <text-chunk>
82+
Reduce 17 (3) ::= (2) <item> ::= <text>
83+
Shift 24 The parser shifted to state 24
84+
Token Read 24 0 16 > Token type: RightArrow
85+
Shift 35 The parser shifted to state 35
86+
Token Read 35 0 17 > Token type: RightArrow
87+
Shift 64 The parser shifted to state 64
88+
Token Read 64 2 0 fiber Token type: Text
89+
Reduce 25 (4) ::= - > > <producer> ::= Hyphen RightArrow RightArrow
90+
Shift 14 The parser shifted to state 14
91+
Token Read 14 2 9 , Token type: Separator
92+
Reduce 20 (5) ::= fiber <text-chunk> ::= Text
93+
Reduce 19 (6) ::= (5) <text> ::= <text-chunk>
94+
Reduce 38 (7) ::= (6) <item> ::= <text>
95+
Shift 69 The parser shifted to state 69
96+
Token Read 69 2 10 , Token type: Separator
97+
Shift 99 The parser shifted to state 99
98+
Token Read 99 3 0 water Token type: Text
99+
Reduce 70 (8) ::= , , <separator> ::= Separator Separator
100+
Shift 14 The parser shifted to state 14
101+
Token Read 14 3 9 ; Token type: Terminator
102+
Reduce 20 (9) ::= water <text-chunk> ::= Text
103+
Reduce 19 (10) ::= (9) <text> ::= <text-chunk>
104+
Reduce 101 (11) ::= (10) <item> ::= <text>
105+
Reduce 40 (12) ::= (7) (8) (11) <item-or-expression-list> ::= <item> <separator> <item>
106+
Shift 36 The parser shifted to state 36
107+
Token Read 36 3 10 ; Token type: Terminator
108+
Shift 65 The parser shifted to state 65
109+
Token Read 65 5 0 micronutrients Token type: Text
110+
Reduce 72 (13) ::= ; ; <terminator> ::= Terminator Terminator
111+
Reduce 15 (14) ::= (3) (4) (12) (13) <expression> ::= <item> <producer> <item-or-expression-list> <terminator>
112+
Shift 14 The parser shifted to state 14
113+
Token Read 14 5 15 - Token type: Hyphen
114+
Reduce 20 (15) ::= micronutrients <text-chunk> ::= Text
115+
Reduce 19 (16) ::= (15) <text> ::= <text-chunk>
116+
Reduce 17 (17) ::= (16) <item> ::= <text>
117+
Shift 24 The parser shifted to state 24
118+
Token Read 24 5 16 > Token type: RightArrow
119+
Shift 35 The parser shifted to state 35
120+
Token Read 35 5 17 > Token type: RightArrow
121+
Shift 64 The parser shifted to state 64
122+
Token Read 64 7 0 vitamins (ABCDEK) Token type: Text
123+
Reduce 25 (18) ::= - > > <producer> ::= Hyphen RightArrow RightArrow
124+
Shift 14 The parser shifted to state 14
125+
Token Read 14 7 21 , Token type: Separator
126+
Reduce 20 (19) ::= vitamins (ABCDEK) <text-chunk> ::= Text
127+
Reduce 19 (20) ::= (19) <text> ::= <text-chunk>
128+
Reduce 38 (21) ::= (20) <item> ::= <text>
129+
Shift 69 The parser shifted to state 69
130+
Token Read 69 7 22 , Token type: Separator
131+
Shift 99 The parser shifted to state 99
132+
Token Read 99 8 0 minerals (micronutrients) Token type: Text
133+
Reduce 70 (22) ::= , , <separator> ::= Separator Separator
134+
Shift 14 The parser shifted to state 14
135+
Token Read 14 8 29 ; Token type: Terminator
136+
Reduce 20 (23) ::= minerals (micronutrients) <text-chunk> ::= Text
137+
Reduce 19 (24) ::= (23) <text> ::= <text-chunk>
138+
Reduce 101 (25) ::= (24) <item> ::= <text>
139+
Reduce 40 (26) ::= (21) (22) (25) <item-or-expression-list> ::= <item> <separator> <item>
140+
Shift 36 The parser shifted to state 36
141+
Token Read 36 8 30 ; Token type: Terminator
142+
Shift 65 The parser shifted to state 65
143+
Token Read 65 9 0 Token type: EOF
144+
Reduce 72 (27) ::= ; ; <terminator> ::= Terminator Terminator
145+
Reduce 22 (28) ::= (17) (18) (26) (27) <expression> ::= <item> <producer> <item-or-expression-list> <terminator>
146+
Reduce 16 (29) ::= (14) (28) <expression-list> ::= <expression> <expression>
147+
Reduce 18 (30) ::= (29) <scripture> ::= <expression-list>
148+
Accept 18
149+
150+

0 commit comments

Comments
 (0)