racc 1.4.14-java → 1.5.2-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +5 -5
  2. data/COPYING +22 -515
  3. data/README.ja.rdoc +3 -4
  4. data/README.rdoc +6 -8
  5. data/Rakefile +32 -53
  6. data/bin/racc +39 -27
  7. data/ext/racc/com/headius/racc/Cparse.java +66 -23
  8. data/ext/racc/{cparse.c → cparse/cparse.c} +82 -47
  9. data/ext/racc/{extconf.rb → cparse/extconf.rb} +2 -1
  10. data/lib/racc/compat.rb +5 -4
  11. data/lib/racc/cparse-jruby.jar +0 -0
  12. data/lib/racc/debugflags.rb +5 -4
  13. data/lib/racc/exception.rb +5 -4
  14. data/lib/racc/grammar.rb +25 -22
  15. data/lib/racc/grammarfileparser.rb +10 -8
  16. data/lib/racc/info.rb +6 -5
  17. data/lib/racc/iset.rb +6 -5
  18. data/lib/racc/logfilegenerator.rb +6 -5
  19. data/lib/racc/parser-text.rb +20 -23
  20. data/lib/racc/parser.rb +20 -23
  21. data/lib/racc/parserfilegenerator.rb +10 -10
  22. data/lib/racc/sourcetext.rb +5 -4
  23. data/lib/racc/state.rb +13 -12
  24. data/lib/racc/statetransitiontable.rb +7 -6
  25. data/rdoc/ja/command.ja.html +1 -1
  26. data/sample/array.y +1 -1
  27. data/sample/array2.y +1 -1
  28. data/sample/calc-ja.y +2 -2
  29. data/sample/calc.y +2 -2
  30. data/sample/conflict.y +1 -1
  31. data/sample/hash.y +1 -1
  32. data/sample/lalr.y +1 -1
  33. data/sample/lists.y +1 -1
  34. data/sample/syntax.y +1 -1
  35. data/sample/yyerr.y +1 -1
  36. data/test/assets/cadenza.y +170 -0
  37. data/test/assets/cast.y +926 -0
  38. data/test/assets/csspool.y +729 -0
  39. data/test/assets/edtf.y +583 -0
  40. data/test/assets/huia.y +318 -0
  41. data/test/assets/intp.y +4 -4
  42. data/test/assets/journey.y +47 -0
  43. data/test/assets/liquor.y +313 -0
  44. data/test/assets/machete.y +423 -0
  45. data/test/assets/macruby.y +2197 -0
  46. data/test/assets/mailp.y +27 -27
  47. data/test/assets/mediacloth.y +599 -0
  48. data/test/assets/mof.y +649 -0
  49. data/test/assets/namae.y +302 -0
  50. data/test/assets/nasl.y +626 -0
  51. data/test/assets/nokogiri-css.y +255 -0
  52. data/test/assets/nullbug2.y +2 -2
  53. data/test/assets/opal.y +1807 -0
  54. data/test/assets/php_serialization.y +98 -0
  55. data/test/assets/recv.y +20 -20
  56. data/test/assets/riml.y +665 -0
  57. data/test/assets/ruby18.y +1943 -0
  58. data/test/assets/ruby19.y +2174 -0
  59. data/test/assets/ruby20.y +2350 -0
  60. data/test/assets/ruby21.y +2359 -0
  61. data/test/assets/ruby22.y +2381 -0
  62. data/test/assets/syntax.y +1 -1
  63. data/test/assets/tp_plus.y +622 -0
  64. data/test/assets/twowaysql.y +278 -0
  65. data/test/helper.rb +68 -41
  66. data/test/regress/cadenza +796 -0
  67. data/test/regress/cast +3428 -0
  68. data/test/regress/csspool +2314 -0
  69. data/test/regress/edtf +1794 -0
  70. data/test/regress/huia +1392 -0
  71. data/test/regress/journey +222 -0
  72. data/test/regress/liquor +885 -0
  73. data/test/regress/machete +833 -0
  74. data/test/regress/mediacloth +1463 -0
  75. data/test/regress/mof +1368 -0
  76. data/test/regress/namae +634 -0
  77. data/test/regress/nasl +2058 -0
  78. data/test/regress/nokogiri-css +836 -0
  79. data/test/regress/opal +6431 -0
  80. data/test/regress/php_serialization +336 -0
  81. data/test/regress/riml +3283 -0
  82. data/test/regress/ruby18 +6344 -0
  83. data/test/regress/ruby22 +7460 -0
  84. data/test/regress/tp_plus +1933 -0
  85. data/test/regress/twowaysql +556 -0
  86. data/test/test_chk_y.rb +1 -0
  87. data/test/test_racc_command.rb +177 -2
  88. data/test/test_scan_y.rb +1 -0
  89. data/test/testscanner.rb +1 -1
  90. metadata +55 -80
  91. data/.gemtest +0 -0
  92. data/DEPENDS +0 -4
  93. data/Manifest.txt +0 -102
  94. data/bin/racc2y +0 -195
  95. data/bin/y2racc +0 -339
  96. data/ext/racc/depend +0 -1
  97. data/fastcache/extconf.rb +0 -2
  98. data/fastcache/fastcache.c +0 -185
  99. data/misc/dist.sh +0 -31
  100. data/setup.rb +0 -1587
  101. data/tasks/doc.rb +0 -12
  102. data/tasks/email.rb +0 -55
@@ -0,0 +1,1933 @@
1
+ #
2
+ # DO NOT MODIFY!!!!
3
+ # This file is automatically generated by Racc 1.5.0
4
+ # from Racc grammar file "".
5
+ #
6
+
7
+ require 'racc/parser.rb'
8
+ module TPPlus
9
+ class Parser < Racc::Parser
10
+
11
+ module_eval(<<'...end tp_plus.y/module_eval...', 'tp_plus.y', 592)
12
+
13
+ include TPPlus::Nodes
14
+
15
+ attr_reader :interpreter
16
+ def initialize(scanner, interpreter = TPPlus::Interpreter.new)
17
+ @scanner = scanner
18
+ @interpreter = interpreter
19
+ super()
20
+ end
21
+
22
+ def next_token
23
+ t = @scanner.next_token
24
+ @interpreter.line_count += 1 if t && t[0] == :NEWLINE
25
+
26
+ #puts t.inspect
27
+ t
28
+ end
29
+
30
+ def parse
31
+ #@yydebug =true
32
+
33
+ do_parse
34
+ @interpreter
35
+ end
36
+
37
+ def on_error(t, val, vstack)
38
+ raise ParseError, sprintf("Parse error on line #{@scanner.tok_line} column #{@scanner.tok_col}: %s (%s)",
39
+ val.inspect, token_to_str(t) || '?')
40
+ end
41
+
42
+ class ParseError < StandardError ; end
43
+ ...end tp_plus.y/module_eval...
44
+ ##### State transition tables begin ###
45
+
46
+ racc_action_table = [
47
+ 62, 62, 62, 62, 101, 122, 62, 41, 38, 130,
48
+ 275, 265, 72, 41, 72, 98, 113, 72, 53, 114,
49
+ 41, 67, 67, 67, 67, 234, 38, 26, 152, 151,
50
+ 101, 36, 64, 159, 81, 82, 72, 308, 159, 81,
51
+ 82, 72, 122, 70, 308, 60, 74, 60, 42, 308,
52
+ 60, 43, 44, 131, 45, 31, 32, 300, 75, 34,
53
+ 35, 46, 47, 102, 60, 273, 30, 72, 29, 28,
54
+ 25, 63, 76, 37, 27, 24, 62, 41, 38, 37,
55
+ 69, 69, 69, 69, 33, 61, 37, 97, 53, 102,
56
+ 61, 37, 81, 82, 355, 61, 103, 26, 82, 72,
57
+ 60, 36, 159, 81, 82, 72, 208, 221, 209, 371,
58
+ 82, 72, 105, 220, 33, 81, 82, 72, 42, 72,
59
+ 317, 43, 44, 111, 45, 31, 32, 96, 72, 34,
60
+ 35, 46, 47, 96, 60, 223, 30, 224, 29, 28,
61
+ 25, 63, 115, 37, 27, 24, 62, 41, 38, 72,
62
+ 60, 81, 82, 72, 33, 61, 121, 116, 53, 61,
63
+ 122, 88, 94, 96, 321, 117, 118, 26, 317, 352,
64
+ 125, 36, 323, 127, 203, 349, 350, 351, 353, 303,
65
+ 304, 96, 367, 81, 82, 72, 60, 255, 42, 209,
66
+ 101, 43, 44, 122, 45, 31, 32, 185, 94, 34,
67
+ 35, 46, 47, 186, 60, 191, 30, 61, 29, 28,
68
+ 25, 63, 321, 37, 27, 24, 62, 41, 38, 188,
69
+ 323, 122, 203, 122, 33, 61, 82, 72, 53, 336,
70
+ 335, 182, 181, 179, 180, 177, 173, 26, 176, 174,
71
+ 199, 36, 81, 82, 72, 81, 82, 72, 81, 82,
72
+ 72, 81, 82, 81, 82, 72, 200, 201, 42, 203,
73
+ 204, 43, 44, 96, 45, 31, 32, 210, 211, 34,
74
+ 35, 46, 47, 212, 60, 213, 30, 214, 29, 28,
75
+ 25, 63, 215, 37, 27, 24, 216, 178, 217, 175,
76
+ 81, 82, 72, 218, 33, 61, 81, 82, 72, 219,
77
+ 88, 317, 96, 81, 82, 72, 88, 227, 96, 81,
78
+ 82, 72, 227, 88, 96, 96, 81, 82, 72, 88,
79
+ 229, 96, 81, 82, 72, 60, 88, 230, 96, 231,
80
+ 234, 60, 88, 235, 96, 238, 122, 94, 60, 81,
81
+ 82, 72, 122, 94, 60, 321, 61, 81, 82, 72,
82
+ 94, 60, 61, 323, 241, 203, 94, 60, 242, 61,
83
+ 244, 245, 246, 94, 247, 61, 248, 249, 250, 94,
84
+ 251, 252, 61, 81, 82, 72, 253, 254, 61, 81,
85
+ 82, 72, 257, 88, 188, 96, 81, 82, 72, 88,
86
+ 259, 96, 81, 82, 72, 269, 88, 271, 96, 81,
87
+ 82, 72, 88, 276, 96, 122, 281, 282, 60, 88,
88
+ 283, 96, 284, 285, 60, 286, 287, 288, 289, 290,
89
+ 94, 60, 82, 292, 293, 294, 94, 60, 122, 61,
90
+ 122, 72, 298, 94, 60, 61, 301, 302, 305, 94,
91
+ 306, 313, 61, 314, 122, 122, 94, 325, 61, 135,
92
+ 136, 139, 140, 137, 138, 61, 141, 142, 144, 145,
93
+ 146, 148, 143, 147, 135, 136, 139, 140, 137, 138,
94
+ 326, 141, 142, 144, 145, 146, 148, 143, 147, 327,
95
+ 328, 188, 97, 333, 275, 122, 33, 135, 136, 139,
96
+ 140, 137, 138, 205, 141, 142, 144, 145, 146, 148,
97
+ 143, 147, 188, 188, 333, 122, 346, 347, 207, 135,
98
+ 136, 139, 140, 137, 138, 348, 141, 142, 144, 145,
99
+ 146, 148, 143, 147, 188, 356, 357, 358, 359, 360,
100
+ 135, 136, 139, 140, 137, 138, 361, 141, 142, 144,
101
+ 145, 146, 148, 143, 147, 135, 136, 139, 140, 137,
102
+ 138, 362, 141, 142, 144, 145, 146, 148, 143, 147,
103
+ 135, 136, 139, 140, 137, 138, 122, 141, 142, 144,
104
+ 145, 146, 148, 143, 147, 135, 136, 139, 140, 137,
105
+ 138, 364, 141, 142, 144, 145, 146, 148, 143, 147,
106
+ 135, 136, 139, 140, 137, 138, 72, 141, 142, 144,
107
+ 145, 146, 148, 143, 147, 135, 136, 139, 140, 137,
108
+ 138, 33, 141, 142, 144, 145, 146, 148, 143, 147,
109
+ 135, 136, 139, 140, 137, 138, 378, 141, 142, 144,
110
+ 145, 146, 148, 143, 147, 135, 136, 139, 140, 137,
111
+ 138, 379, 141, 142, 144, 145, 146, 148, 143, 147,
112
+ 380, 381, 382, 383, 385, 386, 390, 72, 392 ]
113
+
114
+ racc_action_check = [
115
+ 3, 65, 309, 312, 72, 272, 0, 0, 0, 70,
116
+ 240, 232, 28, 295, 29, 36, 48, 105, 0, 48,
117
+ 296, 3, 65, 309, 312, 232, 383, 0, 95, 95,
118
+ 36, 0, 1, 97, 97, 97, 97, 295, 186, 186,
119
+ 186, 186, 343, 27, 296, 28, 30, 29, 0, 383,
120
+ 105, 0, 0, 70, 0, 0, 0, 272, 31, 0,
121
+ 0, 0, 0, 72, 0, 240, 0, 38, 0, 0,
122
+ 0, 0, 32, 0, 0, 0, 2, 2, 2, 295,
123
+ 3, 65, 309, 312, 0, 0, 296, 36, 2, 36,
124
+ 97, 383, 224, 224, 343, 186, 37, 2, 358, 358,
125
+ 38, 2, 209, 209, 209, 209, 153, 184, 153, 358,
126
+ 229, 229, 38, 184, 41, 88, 88, 88, 2, 44,
127
+ 301, 2, 2, 46, 2, 2, 2, 88, 47, 2,
128
+ 2, 2, 2, 301, 2, 187, 2, 187, 2, 2,
129
+ 2, 2, 53, 2, 2, 2, 188, 188, 188, 58,
130
+ 88, 35, 35, 35, 2, 2, 60, 55, 188, 209,
131
+ 63, 35, 88, 35, 301, 55, 55, 188, 337, 342,
132
+ 64, 188, 301, 68, 301, 342, 342, 342, 342, 280,
133
+ 280, 337, 357, 357, 357, 357, 35, 222, 188, 222,
134
+ 99, 188, 188, 101, 188, 188, 188, 102, 35, 188,
135
+ 188, 188, 188, 103, 188, 109, 188, 35, 188, 188,
136
+ 188, 188, 337, 188, 188, 188, 225, 225, 225, 111,
137
+ 337, 112, 337, 115, 188, 188, 293, 293, 225, 320,
138
+ 320, 98, 98, 98, 98, 98, 98, 225, 98, 98,
139
+ 117, 225, 34, 34, 34, 75, 75, 75, 234, 234,
140
+ 234, 98, 98, 238, 238, 238, 118, 121, 225, 123,
141
+ 132, 225, 225, 98, 225, 225, 225, 173, 174, 225,
142
+ 225, 225, 225, 175, 225, 176, 225, 177, 225, 225,
143
+ 225, 225, 178, 225, 225, 225, 179, 98, 180, 98,
144
+ 42, 42, 42, 181, 225, 225, 43, 43, 43, 182,
145
+ 42, 363, 42, 45, 45, 45, 43, 189, 43, 76,
146
+ 76, 76, 190, 45, 363, 45, 94, 94, 94, 76,
147
+ 191, 76, 113, 113, 113, 42, 94, 192, 94, 193,
148
+ 194, 43, 113, 197, 113, 201, 202, 42, 45, 326,
149
+ 326, 326, 203, 43, 76, 363, 42, 360, 360, 360,
150
+ 45, 94, 43, 363, 204, 363, 76, 113, 205, 45,
151
+ 210, 211, 212, 94, 213, 76, 214, 215, 216, 113,
152
+ 217, 218, 94, 114, 114, 114, 219, 221, 113, 116,
153
+ 116, 116, 226, 114, 227, 114, 134, 134, 134, 116,
154
+ 228, 116, 199, 199, 199, 235, 134, 239, 134, 200,
155
+ 200, 200, 199, 241, 199, 242, 244, 245, 114, 200,
156
+ 246, 200, 247, 248, 116, 249, 250, 251, 252, 253,
157
+ 114, 134, 254, 256, 260, 263, 116, 199, 265, 114,
158
+ 266, 269, 270, 134, 200, 116, 275, 277, 291, 199,
159
+ 292, 297, 134, 299, 300, 302, 200, 303, 199, 133,
160
+ 133, 133, 133, 133, 133, 200, 133, 133, 133, 133,
161
+ 133, 133, 133, 133, 150, 150, 150, 150, 150, 150,
162
+ 304, 150, 150, 150, 150, 150, 150, 150, 150, 306,
163
+ 307, 107, 308, 313, 315, 323, 325, 107, 107, 107,
164
+ 107, 107, 107, 133, 107, 107, 107, 107, 107, 107,
165
+ 107, 107, 328, 108, 331, 333, 338, 339, 150, 108,
166
+ 108, 108, 108, 108, 108, 340, 108, 108, 108, 108,
167
+ 108, 108, 108, 108, 110, 347, 349, 350, 351, 352,
168
+ 110, 110, 110, 110, 110, 110, 353, 110, 110, 110,
169
+ 110, 110, 110, 110, 110, 83, 83, 83, 83, 83,
170
+ 83, 354, 83, 83, 83, 83, 83, 83, 83, 83,
171
+ 195, 195, 195, 195, 195, 195, 355, 195, 195, 195,
172
+ 195, 195, 195, 195, 195, 196, 196, 196, 196, 196,
173
+ 196, 356, 196, 196, 196, 196, 196, 196, 196, 196,
174
+ 198, 198, 198, 198, 198, 198, 359, 198, 198, 198,
175
+ 198, 198, 198, 198, 198, 206, 206, 206, 206, 206,
176
+ 206, 361, 206, 206, 206, 206, 206, 206, 206, 206,
177
+ 236, 236, 236, 236, 236, 236, 365, 236, 236, 236,
178
+ 236, 236, 236, 236, 236, 237, 237, 237, 237, 237,
179
+ 237, 366, 237, 237, 237, 237, 237, 237, 237, 237,
180
+ 368, 371, 372, 373, 376, 379, 384, 385, 387 ]
181
+
182
+ racc_action_pointer = [
183
+ 2, 32, 72, -4, nil, nil, nil, nil, nil, nil,
184
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
185
+ nil, nil, nil, nil, nil, nil, nil, 13, -17, -15,
186
+ 20, -16, -2, nil, 215, 124, 13, 67, 38, nil,
187
+ nil, 32, 263, 269, 90, 276, 94, 99, -30, nil,
188
+ nil, nil, nil, 125, nil, 127, nil, nil, 120, nil,
189
+ 82, nil, nil, 135, 170, -3, nil, nil, 148, nil,
190
+ -17, nil, -13, nil, nil, 218, 282, nil, nil, nil,
191
+ nil, nil, nil, 514, nil, nil, nil, nil, 88, nil,
192
+ nil, nil, nil, nil, 289, 1, nil, 7, 224, 173,
193
+ nil, 168, 121, 129, nil, -12, nil, 456, 478, 154,
194
+ 499, 194, 196, 295, 346, 198, 352, 210, 226, nil,
195
+ nil, 231, nil, 179, nil, nil, nil, nil, nil, nil,
196
+ nil, nil, 183, 418, 359, nil, nil, nil, nil, nil,
197
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
198
+ 433, nil, nil, 31, nil, nil, nil, nil, nil, nil,
199
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
200
+ nil, nil, nil, 189, 190, 195, 197, 199, 204, 208,
201
+ 210, 215, 221, nil, 84, nil, 12, 60, 142, 260,
202
+ 265, 246, 279, 281, 269, 529, 544, 315, 559, 365,
203
+ 372, 258, 311, 317, 328, 341, 574, nil, nil, 76,
204
+ 332, 333, 334, 336, 338, 339, 340, 342, 343, 348,
205
+ nil, 303, 112, nil, 65, 212, 334, 359, 342, 82,
206
+ nil, nil, -36, nil, 221, 321, 589, 604, 226, 349,
207
+ -16, 328, 380, nil, 327, 328, 331, 333, 334, 336,
208
+ 337, 338, 339, 340, 394, nil, 346, nil, nil, nil,
209
+ 406, nil, nil, 377, nil, 403, 405, nil, nil, 402,
210
+ 357, nil, -20, nil, nil, 360, nil, 420, nil, nil,
211
+ 124, nil, nil, nil, nil, nil, nil, nil, nil, nil,
212
+ nil, 363, 414, 198, nil, 8, 15, 366, nil, 362,
213
+ 419, 94, 420, 373, 396, nil, 404, 405, 408, -2,
214
+ nil, nil, -1, 466, nil, 458, nil, nil, nil, nil,
215
+ 202, nil, nil, 460, nil, 404, 312, nil, 477, nil,
216
+ nil, 487, nil, 480, nil, nil, nil, 142, 431, 430,
217
+ 467, nil, 156, 17, nil, nil, nil, 499, nil, 452,
218
+ 453, 454, 455, 462, 472, 541, 506, 156, 70, 567,
219
+ 320, 529, nil, 275, nil, 551, 564, nil, 575, nil,
220
+ nil, 623, 577, 576, nil, nil, 577, nil, nil, 629,
221
+ nil, nil, nil, 20, 581, 628, nil, 583, nil, nil,
222
+ nil, nil, nil ]
223
+
224
+ racc_action_default = [
225
+ -2, -210, -1, -188, -8, -9, -10, -11, -12, -13,
226
+ -14, -15, -16, -17, -18, -19, -20, -21, -22, -23,
227
+ -24, -25, -26, -27, -28, -29, -30, -210, -210, -210,
228
+ -210, -210, -210, -45, -210, -210, -118, -210, -210, -61,
229
+ -62, -210, -210, -210, -210, -210, -210, -210, -81, -84,
230
+ -85, -86, -87, -210, -111, -210, -116, -117, -210, -125,
231
+ -210, -183, -184, -190, -210, -188, -3, -185, -7, -187,
232
+ -210, -34, -118, -35, -36, -210, -210, -46, -103, -104,
233
+ -158, -159, -160, -47, -128, -129, -130, -131, -210, -148,
234
+ -149, -150, -151, -152, -210, -210, -157, -52, -210, -119,
235
+ -121, -190, -210, -210, -58, -210, -63, -210, -210, -210,
236
+ -210, -210, -190, -210, -210, -190, -210, -210, -210, -120,
237
+ -126, -210, -189, -210, -192, 393, -4, -6, -186, -31,
238
+ -32, -33, -210, -210, -210, -134, -135, -136, -137, -138,
239
+ -139, -140, -141, -142, -143, -144, -145, -146, -147, -132,
240
+ -210, -155, -156, -210, -50, -53, -54, -55, -56, -57,
241
+ -112, -161, -162, -163, -164, -165, -166, -167, -168, -169,
242
+ -170, -171, -172, -210, -210, -210, -210, -210, -210, -210,
243
+ -210, -210, -210, -122, -210, -127, -52, -210, -210, -89,
244
+ -89, -210, -210, -210, -210, -82, -83, -210, -113, -210,
245
+ -210, -210, -190, -190, -210, -38, -133, -153, -48, -210,
246
+ -210, -210, -210, -210, -210, -210, -210, -210, -210, -210,
247
+ -123, -210, -210, -59, -210, -5, -210, -210, -210, -210,
248
+ -67, -70, -78, -72, -210, -210, -114, -115, -210, -210,
249
+ -210, -210, -190, -51, -210, -210, -210, -210, -210, -210,
250
+ -210, -210, -210, -210, -210, -49, -210, -64, -88, -65,
251
+ -210, -68, -69, -210, -73, -190, -190, -75, -76, -210,
252
+ -210, -191, -190, -194, -195, -210, -37, -39, -41, -42,
253
+ -210, -173, -174, -175, -176, -177, -178, -179, -180, -181,
254
+ -182, -210, -210, -210, -71, -210, -210, -210, -154, -210,
255
+ -190, -205, -190, -210, -210, -124, -210, -210, -210, -188,
256
+ -79, -80, -188, -210, -193, -210, -197, -198, -199, -200,
257
+ -210, -203, -204, -190, -40, -210, -210, -60, -210, -77,
258
+ -74, -90, -91, -190, -196, -201, -202, -205, -210, -210,
259
+ -210, -92, -210, -190, -207, -209, -43, -210, -66, -210,
260
+ -210, -210, -210, -210, -210, -190, -210, -210, -210, -210,
261
+ -210, -210, -206, -205, -44, -210, -210, -110, -210, -98,
262
+ -99, -210, -210, -210, -107, -108, -102, -208, -93, -210,
263
+ -94, -100, -95, -210, -210, -210, -109, -210, -105, -106,
264
+ -97, -101, -96 ]
265
+
266
+ racc_goto_table = [
267
+ 39, 106, 39, 66, 78, 65, 123, 68, 77, 184,
268
+ 9, 2, 9, 153, 40, 261, 40, 274, 310, 310,
269
+ 194, 189, 190, 197, 192, 193, 71, 73, 39, 39,
270
+ 277, 260, 233, 344, 79, 1, 104, 322, 39, 332,
271
+ 291, 128, 40, 40, 109, 78, 129, 112, 243, 132,
272
+ 311, 311, 40, 83, 226, 228, 389, 341, 232, 377,
273
+ 107, 108, 263, 110, 266, 126, 331, 155, 167, 68,
274
+ 264, 309, 312, 322, 365, 79, 368, 373, 387, 261,
275
+ 384, 160, 119, 183, 120, 149, 168, 161, 162, 163,
276
+ 324, 164, 334, 165, 133, 307, 166, 156, 169, 322,
277
+ 170, 171, 222, 187, 172, 39, 388, 158, 202, 272,
278
+ 316, 343, 150, nil, nil, nil, nil, nil, nil, 40,
279
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
280
+ nil, 195, 196, nil, 198, nil, nil, nil, nil, nil,
281
+ nil, 258, nil, nil, 369, 239, 240, nil, nil, nil,
282
+ 280, nil, 206, nil, nil, nil, 155, nil, nil, nil,
283
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
284
+ nil, nil, nil, 295, 296, nil, nil, nil, nil, 155,
285
+ nil, nil, nil, nil, nil, nil, 156, nil, 39, nil,
286
+ nil, nil, nil, nil, 256, nil, 158, nil, 9, 225,
287
+ nil, nil, 40, nil, 267, nil, nil, nil, 78, 156,
288
+ 280, nil, 270, nil, nil, 299, nil, 236, 237, 158,
289
+ nil, nil, nil, nil, nil, 39, nil, nil, 65, 262,
290
+ nil, nil, nil, nil, 268, 9, nil, nil, 79, 40,
291
+ nil, 342, 340, 315, nil, nil, nil, nil, nil, nil,
292
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
293
+ nil, nil, nil, nil, nil, nil, 337, nil, nil, 297,
294
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
295
+ nil, nil, nil, nil, nil, 338, 354, nil, nil, nil,
296
+ nil, nil, nil, 262, nil, nil, 78, nil, 363, nil,
297
+ 339, nil, nil, nil, nil, nil, nil, nil, nil, 329,
298
+ nil, nil, 330, 68, nil, nil, 68, nil, nil, nil,
299
+ nil, 376, nil, nil, nil, nil, 79, 78, nil, nil,
300
+ 375, 366, nil, nil, nil, nil, nil, nil, nil, nil,
301
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
302
+ nil, nil, nil, nil, nil, nil, nil, 79, 370, 372,
303
+ 374, nil, nil, nil, nil, nil, nil, nil, nil, nil,
304
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
305
+ nil, nil, nil, nil, nil, 391 ]
306
+
307
+ racc_goto_check = [
308
+ 40, 35, 40, 4, 39, 3, 86, 7, 29, 34,
309
+ 12, 2, 12, 37, 43, 47, 43, 89, 36, 36,
310
+ 34, 5, 5, 34, 5, 5, 28, 28, 40, 40,
311
+ 31, 46, 50, 94, 40, 1, 28, 75, 40, 56,
312
+ 47, 6, 43, 43, 40, 39, 27, 40, 38, 29,
313
+ 44, 44, 43, 30, 45, 45, 42, 56, 48, 94,
314
+ 30, 30, 49, 30, 51, 4, 55, 39, 39, 7,
315
+ 50, 52, 52, 75, 57, 40, 58, 59, 60, 47,
316
+ 61, 62, 63, 67, 68, 71, 73, 76, 77, 78,
317
+ 31, 79, 89, 80, 30, 46, 81, 40, 82, 75,
318
+ 83, 84, 37, 28, 85, 40, 36, 12, 87, 88,
319
+ 90, 93, 30, nil, nil, nil, nil, nil, nil, 43,
320
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
321
+ nil, 30, 30, nil, 30, nil, nil, nil, nil, nil,
322
+ nil, 5, nil, nil, 47, 86, 86, nil, nil, nil,
323
+ 34, nil, 30, nil, nil, nil, 39, nil, nil, nil,
324
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
325
+ nil, nil, nil, 34, 34, nil, nil, nil, nil, 39,
326
+ nil, nil, nil, nil, nil, nil, 40, nil, 40, nil,
327
+ nil, nil, nil, nil, 39, nil, 12, nil, 12, 2,
328
+ nil, nil, 43, nil, 39, nil, nil, nil, 39, 40,
329
+ 34, nil, 29, nil, nil, 86, nil, 30, 30, 12,
330
+ nil, nil, nil, nil, nil, 40, nil, nil, 3, 40,
331
+ nil, nil, nil, nil, 40, 12, nil, nil, 40, 43,
332
+ nil, 34, 5, 86, nil, nil, nil, nil, nil, nil,
333
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
334
+ nil, nil, nil, nil, nil, nil, 86, nil, nil, 40,
335
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
336
+ nil, nil, nil, nil, nil, 35, 86, nil, nil, nil,
337
+ nil, nil, nil, 40, nil, nil, 39, nil, 86, nil,
338
+ 29, nil, nil, nil, nil, nil, nil, nil, nil, 4,
339
+ nil, nil, 4, 7, nil, nil, 7, nil, nil, nil,
340
+ nil, 35, nil, nil, nil, nil, 40, 39, nil, nil,
341
+ 39, 29, nil, nil, nil, nil, nil, nil, nil, nil,
342
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
343
+ nil, nil, nil, nil, nil, nil, nil, 40, 40, 40,
344
+ 40, nil, nil, nil, nil, nil, nil, nil, nil, nil,
345
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
346
+ nil, nil, nil, nil, nil, 40 ]
347
+
348
+ racc_goto_pointer = [
349
+ nil, 35, 11, 3, 0, -86, -27, 4, nil, nil,
350
+ nil, nil, 10, nil, nil, nil, nil, nil, nil, nil,
351
+ nil, nil, nil, nil, nil, nil, nil, -24, -2, -26,
352
+ 18, -212, nil, nil, -92, -40, -277, -84, -161, -30,
353
+ 0, nil, -327, 14, -245, -135, -198, -214, -136, -170,
354
+ -162, -170, -224, nil, nil, -247, -274, -283, -282, -283,
355
+ -305, -296, -17, 24, nil, nil, nil, -16, 26, nil,
356
+ nil, -3, nil, -12, nil, -264, -11, -10, -9, -7,
357
+ -5, -2, 0, 2, 3, 6, -57, -15, -131, -223,
358
+ -191, nil, nil, -226, -304 ]
359
+
360
+ racc_goto_default = [
361
+ nil, nil, nil, 3, nil, nil, nil, 4, 5, 6,
362
+ 7, 8, 87, 10, 11, 12, 13, 14, 15, 16,
363
+ 17, 18, 19, 20, 21, 22, 23, nil, 55, nil,
364
+ nil, nil, 278, 279, 124, 54, 52, nil, 154, 89,
365
+ 91, 157, 51, 92, 49, nil, nil, 80, nil, nil,
366
+ nil, nil, nil, 48, 50, nil, nil, nil, nil, nil,
367
+ nil, nil, nil, 56, 57, 99, 58, 100, 59, 84,
368
+ 85, 86, 134, 90, 93, 95, nil, nil, nil, nil,
369
+ nil, nil, nil, nil, nil, nil, nil, 318, nil, nil,
370
+ 345, 319, 320, nil, nil ]
371
+
372
+ racc_reduce_table = [
373
+ 0, 0, :racc_error,
374
+ 1, 86, :_reduce_1,
375
+ 0, 86, :_reduce_none,
376
+ 2, 87, :_reduce_3,
377
+ 3, 87, :_reduce_4,
378
+ 2, 90, :_reduce_5,
379
+ 1, 91, :_reduce_none,
380
+ 0, 91, :_reduce_none,
381
+ 1, 88, :_reduce_none,
382
+ 1, 88, :_reduce_none,
383
+ 1, 88, :_reduce_none,
384
+ 1, 88, :_reduce_none,
385
+ 1, 88, :_reduce_none,
386
+ 1, 88, :_reduce_none,
387
+ 1, 88, :_reduce_none,
388
+ 1, 88, :_reduce_none,
389
+ 1, 88, :_reduce_none,
390
+ 1, 88, :_reduce_none,
391
+ 1, 88, :_reduce_none,
392
+ 1, 88, :_reduce_none,
393
+ 1, 88, :_reduce_none,
394
+ 1, 88, :_reduce_none,
395
+ 1, 88, :_reduce_none,
396
+ 1, 88, :_reduce_none,
397
+ 1, 88, :_reduce_none,
398
+ 1, 88, :_reduce_none,
399
+ 1, 88, :_reduce_none,
400
+ 1, 88, :_reduce_none,
401
+ 1, 88, :_reduce_28,
402
+ 1, 88, :_reduce_29,
403
+ 1, 111, :_reduce_30,
404
+ 3, 110, :_reduce_31,
405
+ 1, 112, :_reduce_none,
406
+ 1, 112, :_reduce_none,
407
+ 2, 109, :_reduce_34,
408
+ 2, 107, :_reduce_35,
409
+ 2, 106, :_reduce_36,
410
+ 6, 104, :_reduce_37,
411
+ 4, 104, :_reduce_38,
412
+ 6, 104, :_reduce_39,
413
+ 8, 104, :_reduce_40,
414
+ 1, 116, :_reduce_none,
415
+ 1, 116, :_reduce_none,
416
+ 5, 117, :_reduce_43,
417
+ 7, 118, :_reduce_44,
418
+ 1, 120, :_reduce_45,
419
+ 2, 102, :_reduce_46,
420
+ 2, 103, :_reduce_47,
421
+ 4, 121, :_reduce_48,
422
+ 5, 121, :_reduce_49,
423
+ 1, 122, :_reduce_50,
424
+ 3, 122, :_reduce_51,
425
+ 0, 122, :_reduce_52,
426
+ 1, 123, :_reduce_none,
427
+ 1, 123, :_reduce_none,
428
+ 1, 123, :_reduce_none,
429
+ 1, 123, :_reduce_none,
430
+ 1, 126, :_reduce_57,
431
+ 2, 127, :_reduce_58,
432
+ 4, 127, :_reduce_59,
433
+ 8, 127, :_reduce_60,
434
+ 1, 113, :_reduce_none,
435
+ 1, 113, :_reduce_none,
436
+ 2, 129, :_reduce_63,
437
+ 5, 98, :_reduce_64,
438
+ 5, 98, :_reduce_65,
439
+ 10, 100, :_reduce_66,
440
+ 4, 101, :_reduce_67,
441
+ 1, 131, :_reduce_none,
442
+ 1, 131, :_reduce_none,
443
+ 4, 94, :_reduce_70,
444
+ 6, 105, :_reduce_71,
445
+ 1, 133, :_reduce_72,
446
+ 2, 133, :_reduce_73,
447
+ 5, 135, :_reduce_74,
448
+ 1, 136, :_reduce_none,
449
+ 1, 136, :_reduce_none,
450
+ 4, 134, :_reduce_77,
451
+ 0, 134, :_reduce_none,
452
+ 1, 137, :_reduce_none,
453
+ 1, 137, :_reduce_none,
454
+ 1, 99, :_reduce_none,
455
+ 3, 99, :_reduce_82,
456
+ 3, 99, :_reduce_83,
457
+ 1, 138, :_reduce_none,
458
+ 1, 138, :_reduce_none,
459
+ 1, 138, :_reduce_none,
460
+ 1, 138, :_reduce_none,
461
+ 2, 130, :_reduce_88,
462
+ 0, 130, :_reduce_89,
463
+ 8, 95, :_reduce_90,
464
+ 1, 140, :_reduce_91,
465
+ 2, 140, :_reduce_92,
466
+ 6, 141, :_reduce_93,
467
+ 6, 141, :_reduce_94,
468
+ 6, 141, :_reduce_95,
469
+ 8, 141, :_reduce_96,
470
+ 7, 141, :_reduce_97,
471
+ 1, 143, :_reduce_none,
472
+ 1, 143, :_reduce_none,
473
+ 2, 143, :_reduce_100,
474
+ 2, 146, :_reduce_101,
475
+ 0, 146, :_reduce_none,
476
+ 1, 114, :_reduce_none,
477
+ 1, 114, :_reduce_none,
478
+ 1, 145, :_reduce_none,
479
+ 1, 145, :_reduce_none,
480
+ 1, 144, :_reduce_none,
481
+ 1, 144, :_reduce_none,
482
+ 3, 142, :_reduce_109,
483
+ 1, 142, :_reduce_110,
484
+ 1, 96, :_reduce_111,
485
+ 3, 93, :_reduce_112,
486
+ 3, 139, :_reduce_113,
487
+ 4, 139, :_reduce_114,
488
+ 4, 139, :_reduce_115,
489
+ 1, 125, :_reduce_none,
490
+ 1, 125, :_reduce_none,
491
+ 1, 148, :_reduce_118,
492
+ 2, 148, :_reduce_119,
493
+ 2, 149, :_reduce_120,
494
+ 1, 150, :_reduce_121,
495
+ 2, 150, :_reduce_122,
496
+ 3, 152, :_reduce_123,
497
+ 6, 152, :_reduce_124,
498
+ 1, 151, :_reduce_125,
499
+ 2, 151, :_reduce_126,
500
+ 3, 153, :_reduce_127,
501
+ 1, 115, :_reduce_none,
502
+ 1, 115, :_reduce_none,
503
+ 1, 154, :_reduce_130,
504
+ 1, 154, :_reduce_none,
505
+ 2, 154, :_reduce_132,
506
+ 3, 155, :_reduce_133,
507
+ 1, 157, :_reduce_134,
508
+ 1, 157, :_reduce_135,
509
+ 1, 157, :_reduce_136,
510
+ 1, 157, :_reduce_137,
511
+ 1, 157, :_reduce_138,
512
+ 1, 157, :_reduce_139,
513
+ 1, 157, :_reduce_140,
514
+ 1, 157, :_reduce_141,
515
+ 1, 157, :_reduce_142,
516
+ 1, 157, :_reduce_143,
517
+ 1, 157, :_reduce_144,
518
+ 1, 157, :_reduce_145,
519
+ 1, 157, :_reduce_146,
520
+ 1, 157, :_reduce_147,
521
+ 1, 156, :_reduce_none,
522
+ 1, 156, :_reduce_none,
523
+ 1, 156, :_reduce_none,
524
+ 1, 156, :_reduce_none,
525
+ 1, 156, :_reduce_none,
526
+ 3, 159, :_reduce_153,
527
+ 6, 128, :_reduce_154,
528
+ 2, 158, :_reduce_155,
529
+ 2, 158, :_reduce_156,
530
+ 1, 160, :_reduce_157,
531
+ 1, 124, :_reduce_none,
532
+ 1, 124, :_reduce_159,
533
+ 1, 132, :_reduce_160,
534
+ 1, 147, :_reduce_none,
535
+ 1, 147, :_reduce_none,
536
+ 1, 147, :_reduce_none,
537
+ 1, 147, :_reduce_none,
538
+ 1, 147, :_reduce_none,
539
+ 1, 147, :_reduce_none,
540
+ 1, 147, :_reduce_none,
541
+ 1, 147, :_reduce_none,
542
+ 1, 147, :_reduce_none,
543
+ 1, 147, :_reduce_none,
544
+ 1, 147, :_reduce_none,
545
+ 1, 147, :_reduce_none,
546
+ 4, 170, :_reduce_173,
547
+ 4, 169, :_reduce_174,
548
+ 4, 168, :_reduce_175,
549
+ 4, 167, :_reduce_176,
550
+ 4, 166, :_reduce_177,
551
+ 4, 165, :_reduce_178,
552
+ 4, 161, :_reduce_179,
553
+ 4, 164, :_reduce_180,
554
+ 4, 162, :_reduce_181,
555
+ 4, 163, :_reduce_182,
556
+ 1, 97, :_reduce_183,
557
+ 1, 92, :_reduce_184,
558
+ 1, 89, :_reduce_185,
559
+ 2, 89, :_reduce_186,
560
+ 1, 89, :_reduce_none,
561
+ 0, 89, :_reduce_none,
562
+ 1, 119, :_reduce_189,
563
+ 0, 119, :_reduce_none,
564
+ 5, 108, :_reduce_191,
565
+ 1, 171, :_reduce_none,
566
+ 5, 172, :_reduce_193,
567
+ 3, 172, :_reduce_194,
568
+ 1, 173, :_reduce_195,
569
+ 4, 173, :_reduce_196,
570
+ 3, 174, :_reduce_197,
571
+ 1, 175, :_reduce_none,
572
+ 1, 175, :_reduce_none,
573
+ 1, 175, :_reduce_none,
574
+ 2, 175, :_reduce_201,
575
+ 2, 175, :_reduce_202,
576
+ 1, 175, :_reduce_203,
577
+ 1, 177, :_reduce_none,
578
+ 0, 177, :_reduce_none,
579
+ 5, 176, :_reduce_206,
580
+ 1, 178, :_reduce_207,
581
+ 4, 178, :_reduce_208,
582
+ 1, 179, :_reduce_none ]
583
+
584
+ racc_reduce_n = 210
585
+
586
+ racc_shift_n = 393
587
+
588
+ racc_token_table = {
589
+ false => 0,
590
+ :error => 1,
591
+ :ASSIGN => 2,
592
+ :AT_SYM => 3,
593
+ :COMMENT => 4,
594
+ :JUMP => 5,
595
+ :IO_METHOD => 6,
596
+ :INPUT => 7,
597
+ :OUTPUT => 8,
598
+ :NUMREG => 9,
599
+ :POSREG => 10,
600
+ :VREG => 11,
601
+ :SREG => 12,
602
+ :TIME_SEGMENT => 13,
603
+ :ARG => 14,
604
+ :UALM => 15,
605
+ :MOVE => 16,
606
+ :DOT => 17,
607
+ :TO => 18,
608
+ :AT => 19,
609
+ :TERM => 20,
610
+ :OFFSET => 21,
611
+ :SKIP => 22,
612
+ :GROUP => 23,
613
+ :SEMICOLON => 24,
614
+ :NEWLINE => 25,
615
+ :STRING => 26,
616
+ :REAL => 27,
617
+ :DIGIT => 28,
618
+ :WORD => 29,
619
+ :EQUAL => 30,
620
+ :EEQUAL => 31,
621
+ :NOTEQUAL => 32,
622
+ :GTE => 33,
623
+ :LTE => 34,
624
+ :LT => 35,
625
+ :GT => 36,
626
+ :BANG => 37,
627
+ :PLUS => 38,
628
+ :MINUS => 39,
629
+ :STAR => 40,
630
+ :SLASH => 41,
631
+ :DIV => 42,
632
+ :AND => 43,
633
+ :OR => 44,
634
+ :MOD => 45,
635
+ :IF => 46,
636
+ :ELSE => 47,
637
+ :END => 48,
638
+ :UNLESS => 49,
639
+ :FOR => 50,
640
+ :IN => 51,
641
+ :WHILE => 52,
642
+ :WAIT_FOR => 53,
643
+ :WAIT_UNTIL => 54,
644
+ :TIMEOUT => 55,
645
+ :AFTER => 56,
646
+ :FANUC_USE => 57,
647
+ :SET_SKIP_CONDITION => 58,
648
+ :NAMESPACE => 59,
649
+ :CASE => 60,
650
+ :WHEN => 61,
651
+ :INDIRECT => 62,
652
+ :POSITION => 63,
653
+ :EVAL => 64,
654
+ :TIMER => 65,
655
+ :TIMER_METHOD => 66,
656
+ :RAISE => 67,
657
+ :ABORT => 68,
658
+ :POSITION_DATA => 69,
659
+ :TRUE_FALSE => 70,
660
+ :RUN => 71,
661
+ :TP_HEADER => 72,
662
+ :PAUSE => 73,
663
+ :LPAREN => 74,
664
+ :RPAREN => 75,
665
+ :COLON => 76,
666
+ :COMMA => 77,
667
+ :LBRACK => 78,
668
+ :RBRACK => 79,
669
+ :LBRACE => 80,
670
+ :RBRACE => 81,
671
+ :LABEL => 82,
672
+ :ADDRESS => 83,
673
+ :false => 84 }
674
+
675
+ racc_nt_base = 85
676
+
677
+ racc_use_result_var = true
678
+
679
+ Racc_arg = [
680
+ racc_action_table,
681
+ racc_action_check,
682
+ racc_action_default,
683
+ racc_action_pointer,
684
+ racc_goto_table,
685
+ racc_goto_check,
686
+ racc_goto_default,
687
+ racc_goto_pointer,
688
+ racc_nt_base,
689
+ racc_reduce_table,
690
+ racc_token_table,
691
+ racc_shift_n,
692
+ racc_reduce_n,
693
+ racc_use_result_var ]
694
+
695
+ Racc_token_to_s_table = [
696
+ "$end",
697
+ "error",
698
+ "ASSIGN",
699
+ "AT_SYM",
700
+ "COMMENT",
701
+ "JUMP",
702
+ "IO_METHOD",
703
+ "INPUT",
704
+ "OUTPUT",
705
+ "NUMREG",
706
+ "POSREG",
707
+ "VREG",
708
+ "SREG",
709
+ "TIME_SEGMENT",
710
+ "ARG",
711
+ "UALM",
712
+ "MOVE",
713
+ "DOT",
714
+ "TO",
715
+ "AT",
716
+ "TERM",
717
+ "OFFSET",
718
+ "SKIP",
719
+ "GROUP",
720
+ "SEMICOLON",
721
+ "NEWLINE",
722
+ "STRING",
723
+ "REAL",
724
+ "DIGIT",
725
+ "WORD",
726
+ "EQUAL",
727
+ "EEQUAL",
728
+ "NOTEQUAL",
729
+ "GTE",
730
+ "LTE",
731
+ "LT",
732
+ "GT",
733
+ "BANG",
734
+ "PLUS",
735
+ "MINUS",
736
+ "STAR",
737
+ "SLASH",
738
+ "DIV",
739
+ "AND",
740
+ "OR",
741
+ "MOD",
742
+ "IF",
743
+ "ELSE",
744
+ "END",
745
+ "UNLESS",
746
+ "FOR",
747
+ "IN",
748
+ "WHILE",
749
+ "WAIT_FOR",
750
+ "WAIT_UNTIL",
751
+ "TIMEOUT",
752
+ "AFTER",
753
+ "FANUC_USE",
754
+ "SET_SKIP_CONDITION",
755
+ "NAMESPACE",
756
+ "CASE",
757
+ "WHEN",
758
+ "INDIRECT",
759
+ "POSITION",
760
+ "EVAL",
761
+ "TIMER",
762
+ "TIMER_METHOD",
763
+ "RAISE",
764
+ "ABORT",
765
+ "POSITION_DATA",
766
+ "TRUE_FALSE",
767
+ "RUN",
768
+ "TP_HEADER",
769
+ "PAUSE",
770
+ "LPAREN",
771
+ "RPAREN",
772
+ "COLON",
773
+ "COMMA",
774
+ "LBRACK",
775
+ "RBRACK",
776
+ "LBRACE",
777
+ "RBRACE",
778
+ "LABEL",
779
+ "ADDRESS",
780
+ "false",
781
+ "$start",
782
+ "program",
783
+ "statements",
784
+ "statement",
785
+ "terminator",
786
+ "block",
787
+ "optional_newline",
788
+ "comment",
789
+ "definition",
790
+ "namespace",
791
+ "motion_statement",
792
+ "label_definition",
793
+ "address",
794
+ "conditional",
795
+ "inline_conditional",
796
+ "forloop",
797
+ "while_loop",
798
+ "use_statement",
799
+ "set_skip_statement",
800
+ "wait_statement",
801
+ "case_statement",
802
+ "fanuc_eval",
803
+ "timer_method",
804
+ "position_data",
805
+ "raise",
806
+ "tp_header_definition",
807
+ "empty_stmt",
808
+ "tp_header_value",
809
+ "var_or_indirect",
810
+ "indirectable",
811
+ "expression",
812
+ "wait_modifier",
813
+ "timeout_modifier",
814
+ "after_modifier",
815
+ "swallow_newlines",
816
+ "label",
817
+ "program_call",
818
+ "args",
819
+ "arg",
820
+ "number",
821
+ "var",
822
+ "string",
823
+ "io_method",
824
+ "indirect_thing",
825
+ "jump",
826
+ "else_block",
827
+ "minmax_val",
828
+ "integer",
829
+ "case_conditions",
830
+ "case_else",
831
+ "case_condition",
832
+ "case_allowed_condition",
833
+ "case_allowed_statement",
834
+ "inlineable",
835
+ "assignment",
836
+ "motion_modifiers",
837
+ "motion_modifier",
838
+ "speed",
839
+ "valid_terminations",
840
+ "time",
841
+ "time_seg_actions",
842
+ "optional_lpos_arg",
843
+ "definable",
844
+ "var_without_namespaces",
845
+ "var_with_namespaces",
846
+ "var_method_modifiers",
847
+ "namespaces",
848
+ "var_method_modifier",
849
+ "ns",
850
+ "unary_expression",
851
+ "binary_expression",
852
+ "factor",
853
+ "operator",
854
+ "signed_number",
855
+ "paren_expr",
856
+ "sign",
857
+ "numreg",
858
+ "output",
859
+ "input",
860
+ "posreg",
861
+ "position",
862
+ "vreg",
863
+ "argument",
864
+ "timer",
865
+ "ualm",
866
+ "sreg",
867
+ "sn",
868
+ "hash",
869
+ "hash_attributes",
870
+ "hash_attribute",
871
+ "hash_value",
872
+ "array",
873
+ "optional_sign",
874
+ "array_values",
875
+ "array_value" ]
876
+
877
+ Racc_debug_parser = false
878
+
879
+ ##### State transition tables end #####
880
+
881
+ # reduce 0 omitted
882
+
883
+ module_eval(<<'.,.,', 'tp_plus.y', 35)
884
+ def _reduce_1(val, _values, result)
885
+ @interpreter.nodes = val[0]
886
+ result
887
+ end
888
+ .,.,
889
+
890
+ # reduce 2 omitted
891
+
892
+ module_eval(<<'.,.,', 'tp_plus.y', 42)
893
+ def _reduce_3(val, _values, result)
894
+ result = [val[0]]
895
+ result << val[1] unless val[1].nil?
896
+
897
+ result
898
+ end
899
+ .,.,
900
+
901
+ module_eval(<<'.,.,', 'tp_plus.y', 46)
902
+ def _reduce_4(val, _values, result)
903
+ result = val[0] << val[1]
904
+ result << val[2] unless val[2].nil?
905
+
906
+ result
907
+ end
908
+ .,.,
909
+
910
+ module_eval(<<'.,.,', 'tp_plus.y', 52)
911
+ def _reduce_5(val, _values, result)
912
+ result = val[1]
913
+ result
914
+ end
915
+ .,.,
916
+
917
+ # reduce 6 omitted
918
+
919
+ # reduce 7 omitted
920
+
921
+ # reduce 8 omitted
922
+
923
+ # reduce 9 omitted
924
+
925
+ # reduce 10 omitted
926
+
927
+ # reduce 11 omitted
928
+
929
+ # reduce 12 omitted
930
+
931
+ # reduce 13 omitted
932
+
933
+ # reduce 14 omitted
934
+
935
+ # reduce 15 omitted
936
+
937
+ # reduce 16 omitted
938
+
939
+ # reduce 17 omitted
940
+
941
+ # reduce 18 omitted
942
+
943
+ # reduce 19 omitted
944
+
945
+ # reduce 20 omitted
946
+
947
+ # reduce 21 omitted
948
+
949
+ # reduce 22 omitted
950
+
951
+ # reduce 23 omitted
952
+
953
+ # reduce 24 omitted
954
+
955
+ # reduce 25 omitted
956
+
957
+ # reduce 26 omitted
958
+
959
+ # reduce 27 omitted
960
+
961
+ module_eval(<<'.,.,', 'tp_plus.y', 85)
962
+ def _reduce_28(val, _values, result)
963
+ result = PauseNode.new
964
+ result
965
+ end
966
+ .,.,
967
+
968
+ module_eval(<<'.,.,', 'tp_plus.y', 86)
969
+ def _reduce_29(val, _values, result)
970
+ result = AbortNode.new
971
+ result
972
+ end
973
+ .,.,
974
+
975
+ module_eval(<<'.,.,', 'tp_plus.y', 90)
976
+ def _reduce_30(val, _values, result)
977
+ result = EmptyStmtNode.new()
978
+ result
979
+ end
980
+ .,.,
981
+
982
+ module_eval(<<'.,.,', 'tp_plus.y', 94)
983
+ def _reduce_31(val, _values, result)
984
+ result = HeaderNode.new(val[0],val[2])
985
+ result
986
+ end
987
+ .,.,
988
+
989
+ # reduce 32 omitted
990
+
991
+ # reduce 33 omitted
992
+
993
+ module_eval(<<'.,.,', 'tp_plus.y', 103)
994
+ def _reduce_34(val, _values, result)
995
+ result = RaiseNode.new(val[1])
996
+ result
997
+ end
998
+ .,.,
999
+
1000
+ module_eval(<<'.,.,', 'tp_plus.y', 107)
1001
+ def _reduce_35(val, _values, result)
1002
+ result = TimerMethodNode.new(val[0],val[1])
1003
+ result
1004
+ end
1005
+ .,.,
1006
+
1007
+ module_eval(<<'.,.,', 'tp_plus.y', 111)
1008
+ def _reduce_36(val, _values, result)
1009
+ result = EvalNode.new(val[1])
1010
+ result
1011
+ end
1012
+ .,.,
1013
+
1014
+ module_eval(<<'.,.,', 'tp_plus.y', 116)
1015
+ def _reduce_37(val, _values, result)
1016
+ result = WaitForNode.new(val[2], val[4])
1017
+ result
1018
+ end
1019
+ .,.,
1020
+
1021
+ module_eval(<<'.,.,', 'tp_plus.y', 118)
1022
+ def _reduce_38(val, _values, result)
1023
+ result = WaitUntilNode.new(val[2], nil)
1024
+ result
1025
+ end
1026
+ .,.,
1027
+
1028
+ module_eval(<<'.,.,', 'tp_plus.y', 120)
1029
+ def _reduce_39(val, _values, result)
1030
+ result = WaitUntilNode.new(val[2],val[5])
1031
+ result
1032
+ end
1033
+ .,.,
1034
+
1035
+ module_eval(<<'.,.,', 'tp_plus.y', 122)
1036
+ def _reduce_40(val, _values, result)
1037
+ result = WaitUntilNode.new(val[2],val[5].merge(val[7]))
1038
+ result
1039
+ end
1040
+ .,.,
1041
+
1042
+ # reduce 41 omitted
1043
+
1044
+ # reduce 42 omitted
1045
+
1046
+ module_eval(<<'.,.,', 'tp_plus.y', 132)
1047
+ def _reduce_43(val, _values, result)
1048
+ result = { label: val[3] }
1049
+ result
1050
+ end
1051
+ .,.,
1052
+
1053
+ module_eval(<<'.,.,', 'tp_plus.y', 137)
1054
+ def _reduce_44(val, _values, result)
1055
+ result = { timeout: [val[3],val[5]] }
1056
+ result
1057
+ end
1058
+ .,.,
1059
+
1060
+ module_eval(<<'.,.,', 'tp_plus.y', 141)
1061
+ def _reduce_45(val, _values, result)
1062
+ result = val[0]
1063
+ result
1064
+ end
1065
+ .,.,
1066
+
1067
+ module_eval(<<'.,.,', 'tp_plus.y', 145)
1068
+ def _reduce_46(val, _values, result)
1069
+ result = UseNode.new(val[0],val[1])
1070
+ result
1071
+ end
1072
+ .,.,
1073
+
1074
+ module_eval(<<'.,.,', 'tp_plus.y', 150)
1075
+ def _reduce_47(val, _values, result)
1076
+ result = SetSkipNode.new(val[1])
1077
+ result
1078
+ end
1079
+ .,.,
1080
+
1081
+ module_eval(<<'.,.,', 'tp_plus.y', 154)
1082
+ def _reduce_48(val, _values, result)
1083
+ result = CallNode.new(val[0],val[2])
1084
+ result
1085
+ end
1086
+ .,.,
1087
+
1088
+ module_eval(<<'.,.,', 'tp_plus.y', 155)
1089
+ def _reduce_49(val, _values, result)
1090
+ result = CallNode.new(val[1],val[3],async: true)
1091
+ result
1092
+ end
1093
+ .,.,
1094
+
1095
+ module_eval(<<'.,.,', 'tp_plus.y', 159)
1096
+ def _reduce_50(val, _values, result)
1097
+ result = [val[0]]
1098
+ result
1099
+ end
1100
+ .,.,
1101
+
1102
+ module_eval(<<'.,.,', 'tp_plus.y', 160)
1103
+ def _reduce_51(val, _values, result)
1104
+ result = val[0] << val[2]
1105
+ result
1106
+ end
1107
+ .,.,
1108
+
1109
+ module_eval(<<'.,.,', 'tp_plus.y', 161)
1110
+ def _reduce_52(val, _values, result)
1111
+ result = []
1112
+ result
1113
+ end
1114
+ .,.,
1115
+
1116
+ # reduce 53 omitted
1117
+
1118
+ # reduce 54 omitted
1119
+
1120
+ # reduce 55 omitted
1121
+
1122
+ # reduce 56 omitted
1123
+
1124
+ module_eval(<<'.,.,', 'tp_plus.y', 172)
1125
+ def _reduce_57(val, _values, result)
1126
+ result = StringNode.new(val[0])
1127
+ result
1128
+ end
1129
+ .,.,
1130
+
1131
+ module_eval(<<'.,.,', 'tp_plus.y', 176)
1132
+ def _reduce_58(val, _values, result)
1133
+ result = IOMethodNode.new(val[0],val[1])
1134
+ result
1135
+ end
1136
+ .,.,
1137
+
1138
+ module_eval(<<'.,.,', 'tp_plus.y', 178)
1139
+ def _reduce_59(val, _values, result)
1140
+ result = IOMethodNode.new(val[0],val[2])
1141
+ result
1142
+ end
1143
+ .,.,
1144
+
1145
+ module_eval(<<'.,.,', 'tp_plus.y', 180)
1146
+ def _reduce_60(val, _values, result)
1147
+ result = IOMethodNode.new(val[0],val[2],{ pulse_time: val[4], pulse_units: val[6] })
1148
+ result
1149
+ end
1150
+ .,.,
1151
+
1152
+ # reduce 61 omitted
1153
+
1154
+ # reduce 62 omitted
1155
+
1156
+ module_eval(<<'.,.,', 'tp_plus.y', 190)
1157
+ def _reduce_63(val, _values, result)
1158
+ result = JumpNode.new(val[1])
1159
+ result
1160
+ end
1161
+ .,.,
1162
+
1163
+ module_eval(<<'.,.,', 'tp_plus.y', 195)
1164
+ def _reduce_64(val, _values, result)
1165
+ result = ConditionalNode.new("if",val[1],val[2],val[3])
1166
+ result
1167
+ end
1168
+ .,.,
1169
+
1170
+ module_eval(<<'.,.,', 'tp_plus.y', 197)
1171
+ def _reduce_65(val, _values, result)
1172
+ result = ConditionalNode.new("unless",val[1],val[2],val[3])
1173
+ result
1174
+ end
1175
+ .,.,
1176
+
1177
+ module_eval(<<'.,.,', 'tp_plus.y', 202)
1178
+ def _reduce_66(val, _values, result)
1179
+ result = ForNode.new(val[1],val[4],val[6],val[8])
1180
+ result
1181
+ end
1182
+ .,.,
1183
+
1184
+ module_eval(<<'.,.,', 'tp_plus.y', 206)
1185
+ def _reduce_67(val, _values, result)
1186
+ result = WhileNode.new(val[1],val[2])
1187
+ result
1188
+ end
1189
+ .,.,
1190
+
1191
+ # reduce 68 omitted
1192
+
1193
+ # reduce 69 omitted
1194
+
1195
+ module_eval(<<'.,.,', 'tp_plus.y', 215)
1196
+ def _reduce_70(val, _values, result)
1197
+ result = NamespaceNode.new(val[1],val[2])
1198
+ result
1199
+ end
1200
+ .,.,
1201
+
1202
+ module_eval(<<'.,.,', 'tp_plus.y', 222)
1203
+ def _reduce_71(val, _values, result)
1204
+ result = CaseNode.new(val[1],val[3],val[4])
1205
+ result
1206
+ end
1207
+ .,.,
1208
+
1209
+ module_eval(<<'.,.,', 'tp_plus.y', 226)
1210
+ def _reduce_72(val, _values, result)
1211
+ result = val
1212
+ result
1213
+ end
1214
+ .,.,
1215
+
1216
+ module_eval(<<'.,.,', 'tp_plus.y', 228)
1217
+ def _reduce_73(val, _values, result)
1218
+ result = val[0] << val[1] << val[2]
1219
+ result
1220
+ end
1221
+ .,.,
1222
+
1223
+ module_eval(<<'.,.,', 'tp_plus.y', 233)
1224
+ def _reduce_74(val, _values, result)
1225
+ result = CaseConditionNode.new(val[1],val[3])
1226
+ result
1227
+ end
1228
+ .,.,
1229
+
1230
+ # reduce 75 omitted
1231
+
1232
+ # reduce 76 omitted
1233
+
1234
+ module_eval(<<'.,.,', 'tp_plus.y', 243)
1235
+ def _reduce_77(val, _values, result)
1236
+ result = CaseConditionNode.new(nil,val[2])
1237
+ result
1238
+ end
1239
+ .,.,
1240
+
1241
+ # reduce 78 omitted
1242
+
1243
+ # reduce 79 omitted
1244
+
1245
+ # reduce 80 omitted
1246
+
1247
+ # reduce 81 omitted
1248
+
1249
+ module_eval(<<'.,.,', 'tp_plus.y', 254)
1250
+ def _reduce_82(val, _values, result)
1251
+ result = InlineConditionalNode.new(val[1], val[2], val[0])
1252
+ result
1253
+ end
1254
+ .,.,
1255
+
1256
+ module_eval(<<'.,.,', 'tp_plus.y', 255)
1257
+ def _reduce_83(val, _values, result)
1258
+ result = InlineConditionalNode.new(val[1], val[2], val[0])
1259
+ result
1260
+ end
1261
+ .,.,
1262
+
1263
+ # reduce 84 omitted
1264
+
1265
+ # reduce 85 omitted
1266
+
1267
+ # reduce 86 omitted
1268
+
1269
+ # reduce 87 omitted
1270
+
1271
+ module_eval(<<'.,.,', 'tp_plus.y', 266)
1272
+ def _reduce_88(val, _values, result)
1273
+ result = val[1]
1274
+ result
1275
+ end
1276
+ .,.,
1277
+
1278
+ module_eval(<<'.,.,', 'tp_plus.y', 267)
1279
+ def _reduce_89(val, _values, result)
1280
+ result = []
1281
+ result
1282
+ end
1283
+ .,.,
1284
+
1285
+ module_eval(<<'.,.,', 'tp_plus.y', 272)
1286
+ def _reduce_90(val, _values, result)
1287
+ result = MotionNode.new(val[0],val[5],val[7])
1288
+ result
1289
+ end
1290
+ .,.,
1291
+
1292
+ module_eval(<<'.,.,', 'tp_plus.y', 276)
1293
+ def _reduce_91(val, _values, result)
1294
+ result = val
1295
+ result
1296
+ end
1297
+ .,.,
1298
+
1299
+ module_eval(<<'.,.,', 'tp_plus.y', 278)
1300
+ def _reduce_92(val, _values, result)
1301
+ result = val[0] << val[1]
1302
+ result
1303
+ end
1304
+ .,.,
1305
+
1306
+ module_eval(<<'.,.,', 'tp_plus.y', 283)
1307
+ def _reduce_93(val, _values, result)
1308
+ result = SpeedNode.new(val[4])
1309
+ result
1310
+ end
1311
+ .,.,
1312
+
1313
+ module_eval(<<'.,.,', 'tp_plus.y', 285)
1314
+ def _reduce_94(val, _values, result)
1315
+ result = TerminationNode.new(val[4])
1316
+ result
1317
+ end
1318
+ .,.,
1319
+
1320
+ module_eval(<<'.,.,', 'tp_plus.y', 287)
1321
+ def _reduce_95(val, _values, result)
1322
+ result = OffsetNode.new(val[2],val[4])
1323
+ result
1324
+ end
1325
+ .,.,
1326
+
1327
+ module_eval(<<'.,.,', 'tp_plus.y', 289)
1328
+ def _reduce_96(val, _values, result)
1329
+ result = TimeNode.new(val[2],val[4],val[6])
1330
+ result
1331
+ end
1332
+ .,.,
1333
+
1334
+ module_eval(<<'.,.,', 'tp_plus.y', 291)
1335
+ def _reduce_97(val, _values, result)
1336
+ result = SkipNode.new(val[4],val[5])
1337
+ result
1338
+ end
1339
+ .,.,
1340
+
1341
+ # reduce 98 omitted
1342
+
1343
+ # reduce 99 omitted
1344
+
1345
+ module_eval(<<'.,.,', 'tp_plus.y', 298)
1346
+ def _reduce_100(val, _values, result)
1347
+ raise Racc::ParseError, sprintf("\ninvalid termination type: (%s)", val[1]) if val[1] != 1
1348
+
1349
+ result = DigitNode.new(val[1].to_i * -1)
1350
+
1351
+ result
1352
+ end
1353
+ .,.,
1354
+
1355
+ module_eval(<<'.,.,', 'tp_plus.y', 305)
1356
+ def _reduce_101(val, _values, result)
1357
+ result = val[1]
1358
+ result
1359
+ end
1360
+ .,.,
1361
+
1362
+ # reduce 102 omitted
1363
+
1364
+ # reduce 103 omitted
1365
+
1366
+ # reduce 104 omitted
1367
+
1368
+ # reduce 105 omitted
1369
+
1370
+ # reduce 106 omitted
1371
+
1372
+ # reduce 107 omitted
1373
+
1374
+ # reduce 108 omitted
1375
+
1376
+ module_eval(<<'.,.,', 'tp_plus.y', 325)
1377
+ def _reduce_109(val, _values, result)
1378
+ result = { speed: val[0], units: val[2] }
1379
+ result
1380
+ end
1381
+ .,.,
1382
+
1383
+ module_eval(<<'.,.,', 'tp_plus.y', 326)
1384
+ def _reduce_110(val, _values, result)
1385
+ result = { speed: val[0], units: nil }
1386
+ result
1387
+ end
1388
+ .,.,
1389
+
1390
+ module_eval(<<'.,.,', 'tp_plus.y', 330)
1391
+ def _reduce_111(val, _values, result)
1392
+ result = LabelDefinitionNode.new(val[0])
1393
+ result
1394
+ end
1395
+ .,.,
1396
+
1397
+ module_eval(<<'.,.,', 'tp_plus.y', 334)
1398
+ def _reduce_112(val, _values, result)
1399
+ result = DefinitionNode.new(val[0],val[2])
1400
+ result
1401
+ end
1402
+ .,.,
1403
+
1404
+ module_eval(<<'.,.,', 'tp_plus.y', 338)
1405
+ def _reduce_113(val, _values, result)
1406
+ result = AssignmentNode.new(val[0],val[2])
1407
+ result
1408
+ end
1409
+ .,.,
1410
+
1411
+ module_eval(<<'.,.,', 'tp_plus.y', 339)
1412
+ def _reduce_114(val, _values, result)
1413
+ result = AssignmentNode.new(
1414
+ val[0],
1415
+ ExpressionNode.new(val[0],"+",val[3])
1416
+ )
1417
+
1418
+ result
1419
+ end
1420
+ .,.,
1421
+
1422
+ module_eval(<<'.,.,', 'tp_plus.y', 344)
1423
+ def _reduce_115(val, _values, result)
1424
+ result = AssignmentNode.new(
1425
+ val[0],
1426
+ ExpressionNode.new(val[0],"-",val[3])
1427
+ )
1428
+
1429
+ result
1430
+ end
1431
+ .,.,
1432
+
1433
+ # reduce 116 omitted
1434
+
1435
+ # reduce 117 omitted
1436
+
1437
+ module_eval(<<'.,.,', 'tp_plus.y', 357)
1438
+ def _reduce_118(val, _values, result)
1439
+ result = VarNode.new(val[0])
1440
+ result
1441
+ end
1442
+ .,.,
1443
+
1444
+ module_eval(<<'.,.,', 'tp_plus.y', 358)
1445
+ def _reduce_119(val, _values, result)
1446
+ result = VarMethodNode.new(val[0],val[1])
1447
+ result
1448
+ end
1449
+ .,.,
1450
+
1451
+ module_eval(<<'.,.,', 'tp_plus.y', 363)
1452
+ def _reduce_120(val, _values, result)
1453
+ result = NamespacedVarNode.new(val[0],val[1])
1454
+ result
1455
+ end
1456
+ .,.,
1457
+
1458
+ module_eval(<<'.,.,', 'tp_plus.y', 367)
1459
+ def _reduce_121(val, _values, result)
1460
+ result = val[0]
1461
+ result
1462
+ end
1463
+ .,.,
1464
+
1465
+ module_eval(<<'.,.,', 'tp_plus.y', 369)
1466
+ def _reduce_122(val, _values, result)
1467
+ result = val[0].merge(val[1])
1468
+ result
1469
+ end
1470
+ .,.,
1471
+
1472
+ module_eval(<<'.,.,', 'tp_plus.y', 373)
1473
+ def _reduce_123(val, _values, result)
1474
+ result = { method: val[2] }
1475
+ result
1476
+ end
1477
+ .,.,
1478
+
1479
+ module_eval(<<'.,.,', 'tp_plus.y', 375)
1480
+ def _reduce_124(val, _values, result)
1481
+ result = { group: val[4] }
1482
+ result
1483
+ end
1484
+ .,.,
1485
+
1486
+ module_eval(<<'.,.,', 'tp_plus.y', 379)
1487
+ def _reduce_125(val, _values, result)
1488
+ result = [val[0]]
1489
+ result
1490
+ end
1491
+ .,.,
1492
+
1493
+ module_eval(<<'.,.,', 'tp_plus.y', 380)
1494
+ def _reduce_126(val, _values, result)
1495
+ result = val[0] << val[1]
1496
+ result
1497
+ end
1498
+ .,.,
1499
+
1500
+ module_eval(<<'.,.,', 'tp_plus.y', 384)
1501
+ def _reduce_127(val, _values, result)
1502
+ result = val[0]
1503
+ result
1504
+ end
1505
+ .,.,
1506
+
1507
+ # reduce 128 omitted
1508
+
1509
+ # reduce 129 omitted
1510
+
1511
+ module_eval(<<'.,.,', 'tp_plus.y', 394)
1512
+ def _reduce_130(val, _values, result)
1513
+ result = val[0]
1514
+ result
1515
+ end
1516
+ .,.,
1517
+
1518
+ # reduce 131 omitted
1519
+
1520
+ module_eval(<<'.,.,', 'tp_plus.y', 396)
1521
+ def _reduce_132(val, _values, result)
1522
+ result = ExpressionNode.new(val[1], "!", nil)
1523
+ result
1524
+ end
1525
+ .,.,
1526
+
1527
+ module_eval(<<'.,.,', 'tp_plus.y', 401)
1528
+ def _reduce_133(val, _values, result)
1529
+ result = ExpressionNode.new(val[0], val[1], val[2])
1530
+ result
1531
+ end
1532
+ .,.,
1533
+
1534
+ module_eval(<<'.,.,', 'tp_plus.y', 405)
1535
+ def _reduce_134(val, _values, result)
1536
+ result = "=="
1537
+ result
1538
+ end
1539
+ .,.,
1540
+
1541
+ module_eval(<<'.,.,', 'tp_plus.y', 406)
1542
+ def _reduce_135(val, _values, result)
1543
+ result = "<>"
1544
+ result
1545
+ end
1546
+ .,.,
1547
+
1548
+ module_eval(<<'.,.,', 'tp_plus.y', 407)
1549
+ def _reduce_136(val, _values, result)
1550
+ result = "<"
1551
+ result
1552
+ end
1553
+ .,.,
1554
+
1555
+ module_eval(<<'.,.,', 'tp_plus.y', 408)
1556
+ def _reduce_137(val, _values, result)
1557
+ result = ">"
1558
+ result
1559
+ end
1560
+ .,.,
1561
+
1562
+ module_eval(<<'.,.,', 'tp_plus.y', 409)
1563
+ def _reduce_138(val, _values, result)
1564
+ result = ">="
1565
+ result
1566
+ end
1567
+ .,.,
1568
+
1569
+ module_eval(<<'.,.,', 'tp_plus.y', 410)
1570
+ def _reduce_139(val, _values, result)
1571
+ result = "<="
1572
+ result
1573
+ end
1574
+ .,.,
1575
+
1576
+ module_eval(<<'.,.,', 'tp_plus.y', 411)
1577
+ def _reduce_140(val, _values, result)
1578
+ result = "+"
1579
+ result
1580
+ end
1581
+ .,.,
1582
+
1583
+ module_eval(<<'.,.,', 'tp_plus.y', 412)
1584
+ def _reduce_141(val, _values, result)
1585
+ result = "-"
1586
+ result
1587
+ end
1588
+ .,.,
1589
+
1590
+ module_eval(<<'.,.,', 'tp_plus.y', 413)
1591
+ def _reduce_142(val, _values, result)
1592
+ result = "||"
1593
+ result
1594
+ end
1595
+ .,.,
1596
+
1597
+ module_eval(<<'.,.,', 'tp_plus.y', 414)
1598
+ def _reduce_143(val, _values, result)
1599
+ result = "*"
1600
+ result
1601
+ end
1602
+ .,.,
1603
+
1604
+ module_eval(<<'.,.,', 'tp_plus.y', 415)
1605
+ def _reduce_144(val, _values, result)
1606
+ result = "/"
1607
+ result
1608
+ end
1609
+ .,.,
1610
+
1611
+ module_eval(<<'.,.,', 'tp_plus.y', 416)
1612
+ def _reduce_145(val, _values, result)
1613
+ result = "DIV"
1614
+ result
1615
+ end
1616
+ .,.,
1617
+
1618
+ module_eval(<<'.,.,', 'tp_plus.y', 417)
1619
+ def _reduce_146(val, _values, result)
1620
+ result = "%"
1621
+ result
1622
+ end
1623
+ .,.,
1624
+
1625
+ module_eval(<<'.,.,', 'tp_plus.y', 418)
1626
+ def _reduce_147(val, _values, result)
1627
+ result = "&&"
1628
+ result
1629
+ end
1630
+ .,.,
1631
+
1632
+ # reduce 148 omitted
1633
+
1634
+ # reduce 149 omitted
1635
+
1636
+ # reduce 150 omitted
1637
+
1638
+ # reduce 151 omitted
1639
+
1640
+ # reduce 152 omitted
1641
+
1642
+ module_eval(<<'.,.,', 'tp_plus.y', 430)
1643
+ def _reduce_153(val, _values, result)
1644
+ result = ParenExpressionNode.new(val[1])
1645
+ result
1646
+ end
1647
+ .,.,
1648
+
1649
+ module_eval(<<'.,.,', 'tp_plus.y', 435)
1650
+ def _reduce_154(val, _values, result)
1651
+ result = IndirectNode.new(val[2].to_sym, val[4])
1652
+ result
1653
+ end
1654
+ .,.,
1655
+
1656
+ module_eval(<<'.,.,', 'tp_plus.y', 440)
1657
+ def _reduce_155(val, _values, result)
1658
+ val[1] = val[1].to_i * -1 if val[0] == "-"
1659
+ result = DigitNode.new(val[1])
1660
+
1661
+ result
1662
+ end
1663
+ .,.,
1664
+
1665
+ module_eval(<<'.,.,', 'tp_plus.y', 443)
1666
+ def _reduce_156(val, _values, result)
1667
+ val[1] = val[1].to_f * -1 if val[0] == "-"; result = RealNode.new(val[1])
1668
+ result
1669
+ end
1670
+ .,.,
1671
+
1672
+ module_eval(<<'.,.,', 'tp_plus.y', 447)
1673
+ def _reduce_157(val, _values, result)
1674
+ result = "-"
1675
+ result
1676
+ end
1677
+ .,.,
1678
+
1679
+ # reduce 158 omitted
1680
+
1681
+ module_eval(<<'.,.,', 'tp_plus.y', 452)
1682
+ def _reduce_159(val, _values, result)
1683
+ result = RealNode.new(val[0])
1684
+ result
1685
+ end
1686
+ .,.,
1687
+
1688
+ module_eval(<<'.,.,', 'tp_plus.y', 456)
1689
+ def _reduce_160(val, _values, result)
1690
+ result = DigitNode.new(val[0])
1691
+ result
1692
+ end
1693
+ .,.,
1694
+
1695
+ # reduce 161 omitted
1696
+
1697
+ # reduce 162 omitted
1698
+
1699
+ # reduce 163 omitted
1700
+
1701
+ # reduce 164 omitted
1702
+
1703
+ # reduce 165 omitted
1704
+
1705
+ # reduce 166 omitted
1706
+
1707
+ # reduce 167 omitted
1708
+
1709
+ # reduce 168 omitted
1710
+
1711
+ # reduce 169 omitted
1712
+
1713
+ # reduce 170 omitted
1714
+
1715
+ # reduce 171 omitted
1716
+
1717
+ # reduce 172 omitted
1718
+
1719
+ module_eval(<<'.,.,', 'tp_plus.y', 476)
1720
+ def _reduce_173(val, _values, result)
1721
+ result = StringRegisterNode.new(val[2].to_i)
1722
+ result
1723
+ end
1724
+ .,.,
1725
+
1726
+ module_eval(<<'.,.,', 'tp_plus.y', 480)
1727
+ def _reduce_174(val, _values, result)
1728
+ result = UserAlarmNode.new(val[2].to_i)
1729
+ result
1730
+ end
1731
+ .,.,
1732
+
1733
+ module_eval(<<'.,.,', 'tp_plus.y', 484)
1734
+ def _reduce_175(val, _values, result)
1735
+ result = TimerNode.new(val[2].to_i)
1736
+ result
1737
+ end
1738
+ .,.,
1739
+
1740
+ module_eval(<<'.,.,', 'tp_plus.y', 488)
1741
+ def _reduce_176(val, _values, result)
1742
+ result = ArgumentNode.new(val[2].to_i)
1743
+ result
1744
+ end
1745
+ .,.,
1746
+
1747
+ module_eval(<<'.,.,', 'tp_plus.y', 492)
1748
+ def _reduce_177(val, _values, result)
1749
+ result = VisionRegisterNode.new(val[2].to_i)
1750
+ result
1751
+ end
1752
+ .,.,
1753
+
1754
+ module_eval(<<'.,.,', 'tp_plus.y', 496)
1755
+ def _reduce_178(val, _values, result)
1756
+ result = PositionNode.new(val[2].to_i)
1757
+ result
1758
+ end
1759
+ .,.,
1760
+
1761
+ module_eval(<<'.,.,', 'tp_plus.y', 500)
1762
+ def _reduce_179(val, _values, result)
1763
+ result = NumregNode.new(val[2].to_i)
1764
+ result
1765
+ end
1766
+ .,.,
1767
+
1768
+ module_eval(<<'.,.,', 'tp_plus.y', 504)
1769
+ def _reduce_180(val, _values, result)
1770
+ result = PosregNode.new(val[2].to_i)
1771
+ result
1772
+ end
1773
+ .,.,
1774
+
1775
+ module_eval(<<'.,.,', 'tp_plus.y', 508)
1776
+ def _reduce_181(val, _values, result)
1777
+ result = IONode.new(val[0], val[2].to_i)
1778
+ result
1779
+ end
1780
+ .,.,
1781
+
1782
+ module_eval(<<'.,.,', 'tp_plus.y', 512)
1783
+ def _reduce_182(val, _values, result)
1784
+ result = IONode.new(val[0], val[2].to_i)
1785
+ result
1786
+ end
1787
+ .,.,
1788
+
1789
+ module_eval(<<'.,.,', 'tp_plus.y', 516)
1790
+ def _reduce_183(val, _values, result)
1791
+ result = AddressNode.new(val[0])
1792
+ result
1793
+ end
1794
+ .,.,
1795
+
1796
+ module_eval(<<'.,.,', 'tp_plus.y', 520)
1797
+ def _reduce_184(val, _values, result)
1798
+ result = CommentNode.new(val[0])
1799
+ result
1800
+ end
1801
+ .,.,
1802
+
1803
+ module_eval(<<'.,.,', 'tp_plus.y', 524)
1804
+ def _reduce_185(val, _values, result)
1805
+ result = TerminatorNode.new
1806
+ result
1807
+ end
1808
+ .,.,
1809
+
1810
+ module_eval(<<'.,.,', 'tp_plus.y', 525)
1811
+ def _reduce_186(val, _values, result)
1812
+ result = val[0]
1813
+ result
1814
+ end
1815
+ .,.,
1816
+
1817
+ # reduce 187 omitted
1818
+
1819
+ # reduce 188 omitted
1820
+
1821
+ module_eval(<<'.,.,', 'tp_plus.y', 532)
1822
+ def _reduce_189(val, _values, result)
1823
+ result = TerminatorNode.new
1824
+ result
1825
+ end
1826
+ .,.,
1827
+
1828
+ # reduce 190 omitted
1829
+
1830
+ module_eval(<<'.,.,', 'tp_plus.y', 538)
1831
+ def _reduce_191(val, _values, result)
1832
+ result = PositionDataNode.new(val[2])
1833
+ result
1834
+ end
1835
+ .,.,
1836
+
1837
+ # reduce 192 omitted
1838
+
1839
+ module_eval(<<'.,.,', 'tp_plus.y', 546)
1840
+ def _reduce_193(val, _values, result)
1841
+ result = val[2]
1842
+ result
1843
+ end
1844
+ .,.,
1845
+
1846
+ module_eval(<<'.,.,', 'tp_plus.y', 547)
1847
+ def _reduce_194(val, _values, result)
1848
+ result = {}
1849
+ result
1850
+ end
1851
+ .,.,
1852
+
1853
+ module_eval(<<'.,.,', 'tp_plus.y', 551)
1854
+ def _reduce_195(val, _values, result)
1855
+ result = val[0]
1856
+ result
1857
+ end
1858
+ .,.,
1859
+
1860
+ module_eval(<<'.,.,', 'tp_plus.y', 553)
1861
+ def _reduce_196(val, _values, result)
1862
+ result = val[0].merge(val[3])
1863
+ result
1864
+ end
1865
+ .,.,
1866
+
1867
+ module_eval(<<'.,.,', 'tp_plus.y', 557)
1868
+ def _reduce_197(val, _values, result)
1869
+ result = { val[0].to_sym => val[2] }
1870
+ result
1871
+ end
1872
+ .,.,
1873
+
1874
+ # reduce 198 omitted
1875
+
1876
+ # reduce 199 omitted
1877
+
1878
+ # reduce 200 omitted
1879
+
1880
+ module_eval(<<'.,.,', 'tp_plus.y', 564)
1881
+ def _reduce_201(val, _values, result)
1882
+ val[1] = val[1].to_i * -1 if val[0] == "-"; result = val[1]
1883
+ result
1884
+ end
1885
+ .,.,
1886
+
1887
+ module_eval(<<'.,.,', 'tp_plus.y', 565)
1888
+ def _reduce_202(val, _values, result)
1889
+ val[1] = val[1].to_f * -1 if val[0] == "-"; result = val[1]
1890
+ result
1891
+ end
1892
+ .,.,
1893
+
1894
+ module_eval(<<'.,.,', 'tp_plus.y', 566)
1895
+ def _reduce_203(val, _values, result)
1896
+ result = val[0] == "true"
1897
+ result
1898
+ end
1899
+ .,.,
1900
+
1901
+ # reduce 204 omitted
1902
+
1903
+ # reduce 205 omitted
1904
+
1905
+ module_eval(<<'.,.,', 'tp_plus.y', 575)
1906
+ def _reduce_206(val, _values, result)
1907
+ result = val[2]
1908
+ result
1909
+ end
1910
+ .,.,
1911
+
1912
+ module_eval(<<'.,.,', 'tp_plus.y', 579)
1913
+ def _reduce_207(val, _values, result)
1914
+ result = val
1915
+ result
1916
+ end
1917
+ .,.,
1918
+
1919
+ module_eval(<<'.,.,', 'tp_plus.y', 580)
1920
+ def _reduce_208(val, _values, result)
1921
+ result = val[0] << val[3]
1922
+ result
1923
+ end
1924
+ .,.,
1925
+
1926
+ # reduce 209 omitted
1927
+
1928
+ def _reduce_none(val, _values, result)
1929
+ val[0]
1930
+ end
1931
+
1932
+ end # class Parser
1933
+ end # module TPPlus