racc 1.4.16 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/README.ja.rdoc +0 -1
  3. data/README.rdoc +8 -11
  4. data/bin/racc +37 -23
  5. data/{rdoc → doc}/en/NEWS.en.rdoc +0 -0
  6. data/{rdoc → doc}/en/grammar.en.rdoc +27 -31
  7. data/doc/en/grammar2.en.rdoc +219 -0
  8. data/{rdoc → doc}/ja/NEWS.ja.rdoc +0 -0
  9. data/{rdoc → doc}/ja/command.ja.html +1 -1
  10. data/{rdoc → doc}/ja/debug.ja.rdoc +0 -0
  11. data/{rdoc → doc}/ja/grammar.ja.rdoc +0 -0
  12. data/{rdoc → doc}/ja/index.ja.html +0 -0
  13. data/{rdoc → doc}/ja/parser.ja.rdoc +0 -0
  14. data/{rdoc → doc}/ja/usage.ja.html +0 -0
  15. data/ext/racc/cparse/cparse.c +19 -17
  16. data/ext/racc/cparse/extconf.rb +2 -1
  17. data/lib/racc/compat.rb +5 -4
  18. data/lib/racc/debugflags.rb +5 -4
  19. data/lib/racc/exception.rb +4 -1
  20. data/lib/racc/grammar.rb +22 -17
  21. data/lib/racc/grammarfileparser.rb +7 -6
  22. data/lib/racc/info.rb +5 -2
  23. data/lib/racc/iset.rb +5 -4
  24. data/lib/racc/logfilegenerator.rb +5 -4
  25. data/lib/racc/parser-text.rb +10 -16
  26. data/lib/racc/parser.rb +10 -16
  27. data/lib/racc/parserfilegenerator.rb +5 -47
  28. data/lib/racc/sourcetext.rb +5 -4
  29. data/lib/racc/state.rb +4 -1
  30. data/lib/racc/statetransitiontable.rb +9 -14
  31. metadata +22 -140
  32. data/DEPENDS +0 -4
  33. data/Manifest.txt +0 -146
  34. data/Rakefile +0 -58
  35. data/bin/racc2y +0 -195
  36. data/bin/y2racc +0 -339
  37. data/ext/racc/com/headius/racc/Cparse.java +0 -849
  38. data/fastcache/extconf.rb +0 -2
  39. data/fastcache/fastcache.c +0 -185
  40. data/lib/racc/pre-setup +0 -13
  41. data/misc/dist.sh +0 -31
  42. data/sample/array.y +0 -67
  43. data/sample/array2.y +0 -59
  44. data/sample/calc-ja.y +0 -66
  45. data/sample/calc.y +0 -65
  46. data/sample/conflict.y +0 -15
  47. data/sample/hash.y +0 -60
  48. data/sample/lalr.y +0 -17
  49. data/sample/lists.y +0 -57
  50. data/sample/syntax.y +0 -46
  51. data/sample/yyerr.y +0 -46
  52. data/setup.rb +0 -1587
  53. data/tasks/doc.rb +0 -12
  54. data/tasks/email.rb +0 -55
  55. data/test/assets/cadenza.y +0 -170
  56. data/test/assets/cast.y +0 -926
  57. data/test/assets/chk.y +0 -126
  58. data/test/assets/conf.y +0 -16
  59. data/test/assets/csspool.y +0 -729
  60. data/test/assets/digraph.y +0 -29
  61. data/test/assets/echk.y +0 -118
  62. data/test/assets/edtf.y +0 -583
  63. data/test/assets/err.y +0 -60
  64. data/test/assets/error_recovery.y +0 -35
  65. data/test/assets/expect.y +0 -7
  66. data/test/assets/firstline.y +0 -4
  67. data/test/assets/huia.y +0 -318
  68. data/test/assets/ichk.y +0 -102
  69. data/test/assets/intp.y +0 -546
  70. data/test/assets/journey.y +0 -47
  71. data/test/assets/liquor.y +0 -313
  72. data/test/assets/machete.y +0 -423
  73. data/test/assets/macruby.y +0 -2197
  74. data/test/assets/mailp.y +0 -437
  75. data/test/assets/mediacloth.y +0 -599
  76. data/test/assets/mof.y +0 -649
  77. data/test/assets/namae.y +0 -302
  78. data/test/assets/nasl.y +0 -626
  79. data/test/assets/newsyn.y +0 -25
  80. data/test/assets/noend.y +0 -4
  81. data/test/assets/nokogiri-css.y +0 -255
  82. data/test/assets/nonass.y +0 -41
  83. data/test/assets/normal.y +0 -27
  84. data/test/assets/norule.y +0 -4
  85. data/test/assets/nullbug1.y +0 -25
  86. data/test/assets/nullbug2.y +0 -15
  87. data/test/assets/opal.y +0 -1807
  88. data/test/assets/opt.y +0 -123
  89. data/test/assets/percent.y +0 -35
  90. data/test/assets/php_serialization.y +0 -98
  91. data/test/assets/recv.y +0 -97
  92. data/test/assets/riml.y +0 -665
  93. data/test/assets/rrconf.y +0 -14
  94. data/test/assets/ruby18.y +0 -1943
  95. data/test/assets/ruby19.y +0 -2174
  96. data/test/assets/ruby20.y +0 -2350
  97. data/test/assets/ruby21.y +0 -2359
  98. data/test/assets/ruby22.y +0 -2381
  99. data/test/assets/scan.y +0 -72
  100. data/test/assets/syntax.y +0 -50
  101. data/test/assets/tp_plus.y +0 -622
  102. data/test/assets/twowaysql.y +0 -278
  103. data/test/assets/unterm.y +0 -5
  104. data/test/assets/useless.y +0 -12
  105. data/test/assets/yyerr.y +0 -46
  106. data/test/bench.y +0 -36
  107. data/test/helper.rb +0 -115
  108. data/test/infini.y +0 -8
  109. data/test/regress/cadenza +0 -796
  110. data/test/regress/cast +0 -3425
  111. data/test/regress/csspool +0 -2318
  112. data/test/regress/edtf +0 -1794
  113. data/test/regress/huia +0 -1392
  114. data/test/regress/journey +0 -222
  115. data/test/regress/liquor +0 -885
  116. data/test/regress/machete +0 -833
  117. data/test/regress/mediacloth +0 -1463
  118. data/test/regress/mof +0 -1368
  119. data/test/regress/namae +0 -634
  120. data/test/regress/nasl +0 -2058
  121. data/test/regress/nokogiri-css +0 -836
  122. data/test/regress/opal +0 -6429
  123. data/test/regress/php_serialization +0 -336
  124. data/test/regress/riml +0 -3297
  125. data/test/regress/ruby18 +0 -6351
  126. data/test/regress/ruby22 +0 -7456
  127. data/test/regress/tp_plus +0 -1933
  128. data/test/regress/twowaysql +0 -556
  129. data/test/scandata/brace +0 -7
  130. data/test/scandata/gvar +0 -1
  131. data/test/scandata/normal +0 -4
  132. data/test/scandata/percent +0 -18
  133. data/test/scandata/slash +0 -10
  134. data/test/src.intp +0 -34
  135. data/test/start.y +0 -20
  136. data/test/test_chk_y.rb +0 -52
  137. data/test/test_grammar_file_parser.rb +0 -15
  138. data/test/test_racc_command.rb +0 -322
  139. data/test/test_scan_y.rb +0 -52
  140. data/test/testscanner.rb +0 -51
  141. data/web/racc.en.rhtml +0 -42
  142. data/web/racc.ja.rhtml +0 -51
data/test/regress/tp_plus DELETED
@@ -1,1933 +0,0 @@
1
- #
2
- # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16.pre.1
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, 303, 304,
50
- 101, 36, 286, 159, 81, 82, 72, 308, 159, 81,
51
- 82, 72, 122, 287, 308, 60, 288, 60, 42, 308,
52
- 60, 43, 44, 131, 45, 31, 32, 355, 289, 34,
53
- 35, 46, 47, 102, 60, 273, 30, 72, 29, 28,
54
- 25, 63, 290, 37, 27, 24, 62, 41, 38, 37,
55
- 69, 69, 69, 69, 33, 61, 37, 97, 53, 102,
56
- 61, 37, 81, 82, 300, 61, 82, 26, 82, 72,
57
- 60, 36, 159, 81, 82, 72, 223, 221, 224, 371,
58
- 336, 335, 105, 220, 292, 81, 82, 72, 42, 293,
59
- 317, 43, 44, 294, 45, 31, 32, 96, 122, 34,
60
- 35, 46, 47, 96, 60, 208, 30, 209, 29, 28,
61
- 25, 63, 122, 37, 27, 24, 62, 41, 38, 72,
62
- 60, 81, 82, 72, 33, 61, 298, 116, 53, 61,
63
- 301, 88, 94, 96, 321, 117, 118, 26, 317, 352,
64
- 302, 36, 323, 305, 203, 349, 350, 351, 353, 152,
65
- 151, 96, 367, 81, 82, 72, 60, 255, 42, 209,
66
- 306, 43, 44, 313, 45, 31, 32, 314, 94, 34,
67
- 35, 46, 47, 122, 60, 122, 30, 61, 29, 28,
68
- 25, 63, 321, 37, 27, 24, 62, 41, 38, 325,
69
- 323, 326, 203, 327, 33, 61, 82, 72, 53, 82,
70
- 72, 182, 181, 179, 180, 177, 173, 26, 176, 174,
71
- 328, 36, 81, 82, 72, 81, 82, 72, 81, 82,
72
- 72, 81, 82, 81, 82, 72, 97, 333, 42, 275,
73
- 122, 43, 44, 96, 45, 31, 32, 33, 188, 34,
74
- 35, 46, 47, 333, 60, 122, 30, 346, 29, 28,
75
- 25, 63, 347, 37, 27, 24, 348, 178, 356, 175,
76
- 81, 82, 72, 357, 33, 61, 81, 82, 72, 358,
77
- 88, 317, 96, 81, 82, 72, 88, 359, 96, 81,
78
- 82, 72, 360, 88, 96, 96, 81, 82, 72, 88,
79
- 361, 96, 81, 82, 72, 60, 88, 362, 96, 122,
80
- 364, 60, 88, 72, 96, 33, 378, 94, 60, 81,
81
- 82, 72, 379, 94, 60, 321, 61, 81, 82, 72,
82
- 94, 60, 61, 323, 380, 203, 94, 60, 381, 61,
83
- 382, 383, 385, 94, 386, 61, 390, 72, 392, 94,
84
- 64, 70, 61, 81, 82, 72, 74, 75, 61, 81,
85
- 82, 72, 76, 88, 103, 96, 81, 82, 72, 88,
86
- 33, 96, 81, 82, 72, 72, 88, 111, 96, 81,
87
- 82, 72, 88, 72, 96, 115, 72, 121, 60, 88,
88
- 122, 96, 125, 127, 60, 101, 122, 185, 186, 191,
89
- 94, 60, 188, 122, 122, 199, 94, 60, 200, 61,
90
- 201, 203, 204, 94, 60, 61, 210, 211, 212, 94,
91
- 213, 214, 61, 215, 216, 217, 94, 218, 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
- 219, 141, 142, 144, 145, 146, 148, 143, 147, 227,
95
- 227, 188, 229, 230, 231, 234, 235, 135, 136, 139,
96
- 140, 137, 138, 207, 141, 142, 144, 145, 146, 148,
97
- 143, 147, 238, 188, 122, 122, 241, 242, 205, 135,
98
- 136, 139, 140, 137, 138, 244, 141, 142, 144, 145,
99
- 146, 148, 143, 147, 188, 245, 246, 247, 248, 249,
100
- 135, 136, 139, 140, 137, 138, 250, 141, 142, 144,
101
- 145, 146, 148, 143, 147, 135, 136, 139, 140, 137,
102
- 138, 251, 141, 142, 144, 145, 146, 148, 143, 147,
103
- 135, 136, 139, 140, 137, 138, 252, 141, 142, 144,
104
- 145, 146, 148, 143, 147, 135, 136, 139, 140, 137,
105
- 138, 253, 141, 142, 144, 145, 146, 148, 143, 147,
106
- 135, 136, 139, 140, 137, 138, 254, 141, 142, 144,
107
- 145, 146, 148, 143, 147, 135, 136, 139, 140, 137,
108
- 138, 257, 141, 142, 144, 145, 146, 148, 143, 147,
109
- 135, 136, 139, 140, 137, 138, 188, 141, 142, 144,
110
- 145, 146, 148, 143, 147, 135, 136, 139, 140, 137,
111
- 138, 259, 141, 142, 144, 145, 146, 148, 143, 147,
112
- 269, 271, 276, 122, 281, 282, 283, 284, 285 ]
113
-
114
- racc_action_check = [
115
- 309, 65, 312, 3, 72, 343, 188, 188, 188, 70,
116
- 240, 232, 105, 295, 28, 36, 48, 29, 188, 48,
117
- 296, 309, 65, 312, 3, 232, 383, 188, 280, 280,
118
- 36, 188, 249, 186, 186, 186, 186, 295, 97, 97,
119
- 97, 97, 272, 250, 296, 105, 251, 28, 188, 383,
120
- 29, 188, 188, 70, 188, 188, 188, 343, 252, 188,
121
- 188, 188, 188, 72, 188, 240, 188, 38, 188, 188,
122
- 188, 188, 253, 188, 188, 188, 225, 225, 225, 295,
123
- 309, 65, 312, 3, 188, 188, 296, 36, 225, 36,
124
- 186, 383, 224, 224, 272, 97, 254, 225, 358, 358,
125
- 38, 225, 209, 209, 209, 209, 187, 184, 187, 358,
126
- 320, 320, 38, 184, 256, 88, 88, 88, 225, 260,
127
- 337, 225, 225, 263, 225, 225, 225, 88, 265, 225,
128
- 225, 225, 225, 337, 225, 153, 225, 153, 225, 225,
129
- 225, 225, 266, 225, 225, 225, 2, 2, 2, 269,
130
- 88, 199, 199, 199, 225, 225, 270, 55, 2, 209,
131
- 275, 199, 88, 199, 337, 55, 55, 2, 301, 342,
132
- 277, 2, 337, 291, 337, 342, 342, 342, 342, 95,
133
- 95, 301, 357, 357, 357, 357, 199, 222, 2, 222,
134
- 292, 2, 2, 297, 2, 2, 2, 299, 199, 2,
135
- 2, 2, 2, 300, 2, 302, 2, 199, 2, 2,
136
- 2, 2, 301, 2, 2, 2, 0, 0, 0, 303,
137
- 301, 304, 301, 306, 2, 2, 293, 293, 0, 229,
138
- 229, 98, 98, 98, 98, 98, 98, 0, 98, 98,
139
- 307, 0, 326, 326, 326, 75, 75, 75, 238, 238,
140
- 238, 98, 98, 234, 234, 234, 308, 313, 0, 315,
141
- 323, 0, 0, 98, 0, 0, 0, 325, 328, 0,
142
- 0, 0, 0, 331, 0, 333, 0, 338, 0, 0,
143
- 0, 0, 339, 0, 0, 0, 340, 98, 347, 98,
144
- 42, 42, 42, 349, 0, 0, 114, 114, 114, 350,
145
- 42, 363, 42, 76, 76, 76, 114, 351, 114, 134,
146
- 134, 134, 352, 76, 363, 76, 116, 116, 116, 134,
147
- 353, 134, 200, 200, 200, 42, 116, 354, 116, 355,
148
- 356, 114, 200, 359, 200, 361, 365, 42, 76, 360,
149
- 360, 360, 366, 114, 134, 363, 42, 34, 34, 34,
150
- 76, 116, 114, 363, 368, 363, 134, 200, 371, 76,
151
- 372, 373, 376, 116, 379, 134, 384, 385, 387, 200,
152
- 1, 27, 116, 94, 94, 94, 30, 31, 200, 35,
153
- 35, 35, 32, 94, 37, 94, 43, 43, 43, 35,
154
- 41, 35, 45, 45, 45, 44, 43, 46, 43, 113,
155
- 113, 113, 45, 47, 45, 53, 58, 60, 94, 113,
156
- 63, 113, 64, 68, 35, 99, 101, 102, 103, 109,
157
- 94, 43, 111, 112, 115, 117, 35, 45, 118, 94,
158
- 121, 123, 132, 43, 113, 35, 173, 174, 175, 45,
159
- 176, 177, 43, 178, 179, 180, 113, 181, 45, 150,
160
- 150, 150, 150, 150, 150, 113, 150, 150, 150, 150,
161
- 150, 150, 150, 150, 133, 133, 133, 133, 133, 133,
162
- 182, 133, 133, 133, 133, 133, 133, 133, 133, 189,
163
- 190, 108, 191, 192, 193, 194, 197, 108, 108, 108,
164
- 108, 108, 108, 150, 108, 108, 108, 108, 108, 108,
165
- 108, 108, 201, 110, 202, 203, 204, 205, 133, 110,
166
- 110, 110, 110, 110, 110, 210, 110, 110, 110, 110,
167
- 110, 110, 110, 110, 107, 211, 212, 213, 214, 215,
168
- 107, 107, 107, 107, 107, 107, 216, 107, 107, 107,
169
- 107, 107, 107, 107, 107, 236, 236, 236, 236, 236,
170
- 236, 217, 236, 236, 236, 236, 236, 236, 236, 236,
171
- 195, 195, 195, 195, 195, 195, 218, 195, 195, 195,
172
- 195, 195, 195, 195, 195, 196, 196, 196, 196, 196,
173
- 196, 219, 196, 196, 196, 196, 196, 196, 196, 196,
174
- 198, 198, 198, 198, 198, 198, 221, 198, 198, 198,
175
- 198, 198, 198, 198, 198, 206, 206, 206, 206, 206,
176
- 206, 226, 206, 206, 206, 206, 206, 206, 206, 206,
177
- 237, 237, 237, 237, 237, 237, 227, 237, 237, 237,
178
- 237, 237, 237, 237, 237, 83, 83, 83, 83, 83,
179
- 83, 228, 83, 83, 83, 83, 83, 83, 83, 83,
180
- 235, 239, 241, 242, 244, 245, 246, 247, 248 ]
181
-
182
- racc_action_pointer = [
183
- 212, 370, 142, -1, 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, 341, -15, -12,
186
- 350, 303, 308, nil, 320, 352, 13, 355, 38, nil,
187
- nil, 308, 263, 359, 366, 365, 368, 374, -30, nil,
188
- nil, nil, nil, 388, nil, 127, nil, nil, 377, nil,
189
- 333, nil, nil, 385, 412, -3, nil, nil, 388, nil,
190
- -17, nil, -13, nil, nil, 218, 276, nil, nil, nil,
191
- nil, nil, nil, 604, nil, nil, nil, nil, 88, nil,
192
- nil, nil, nil, nil, 346, 152, nil, 12, 224, 398,
193
- nil, 391, 341, 344, nil, -17, nil, 499, 456, 368,
194
- 478, 397, 398, 372, 269, 399, 289, 395, 398, nil,
195
- nil, 404, nil, 351, nil, nil, nil, nil, nil, nil,
196
- nil, nil, 355, 433, 282, nil, nil, nil, nil, nil,
197
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
198
- 418, nil, nil, 60, nil, nil, nil, nil, nil, nil,
199
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
200
- nil, nil, nil, 358, 359, 360, 362, 363, 365, 366,
201
- 367, 369, 392, nil, 84, nil, 7, 31, 2, 432,
202
- 433, 408, 435, 436, 424, 529, 544, 468, 559, 124,
203
- 295, 425, 479, 480, 480, 490, 574, nil, nil, 76,
204
- 487, 497, 498, 499, 500, 501, 508, 523, 538, 553,
205
- nil, 522, 112, nil, 65, 72, 563, 601, 593, 201,
206
- nil, nil, -36, nil, 226, 576, 514, 589, 221, 603,
207
- -16, 577, 628, nil, 575, 576, 577, 578, 579, -47,
208
- -36, -33, -21, -7, 68, nil, 37, nil, nil, nil,
209
- 101, nil, nil, 75, nil, 103, 117, nil, nil, 120,
210
- 81, nil, 17, nil, nil, 84, nil, 153, nil, nil,
211
- -27, nil, nil, nil, nil, nil, nil, nil, nil, nil,
212
- nil, 98, 164, 198, nil, 8, 15, 118, nil, 116,
213
- 178, 142, 180, 145, 147, nil, 148, 165, 182, -4,
214
- nil, nil, -2, 240, nil, 233, nil, nil, nil, nil,
215
- 83, nil, nil, 235, nil, 185, 215, nil, 243, nil,
216
- nil, 256, nil, 250, nil, nil, nil, 94, 202, 205,
217
- 238, nil, 156, -20, nil, nil, nil, 262, nil, 219,
218
- 225, 233, 238, 246, 248, 304, 255, 156, 70, 304,
219
- 312, 253, nil, 275, nil, 261, 265, nil, 279, nil,
220
- nil, 330, 285, 284, nil, nil, 285, nil, nil, 338,
221
- nil, nil, nil, 20, 291, 338, nil, 293, 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, 68, 78, 65, 123, 66, 77, 184,
268
- 2, 9, 40, 9, 40, 153, 274, 83, 189, 190,
269
- 194, 192, 193, 197, 107, 108, 261, 110, 39, 39,
270
- 310, 310, 71, 73, 79, 260, 233, 344, 39, 332,
271
- 40, 40, 104, 277, 109, 78, 171, 112, 322, 132,
272
- 40, 291, 309, 312, 226, 228, 1, 341, 133, 311,
273
- 311, 202, 272, 377, 316, 68, 343, 155, 167, 126,
274
- 172, 128, 129, 243, 264, 79, 150, 389, 232, 263,
275
- 266, 331, 365, 368, 322, 373, 387, 384, 160, 119,
276
- 261, 334, 183, 120, 149, 195, 196, 156, 198, 307,
277
- 168, 161, 162, 324, 222, 39, 163, 164, 158, 187,
278
- 322, 165, 166, 169, 170, nil, 206, 40, 388, nil,
279
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
280
- nil, nil, nil, nil, nil, nil, nil, nil, 258, nil,
281
- nil, nil, nil, nil, nil, 239, 240, nil, nil, nil,
282
- 280, nil, nil, nil, nil, 369, 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, 236, 237, nil, nil, nil, 156, nil, 39, nil,
286
- nil, nil, nil, nil, 256, nil, nil, 158, 225, 9,
287
- 40, nil, nil, nil, 267, nil, nil, nil, 78, 156,
288
- 280, nil, 270, nil, nil, 299, nil, nil, nil, nil,
289
- 158, nil, nil, nil, nil, 39, nil, nil, 65, 262,
290
- nil, nil, nil, nil, 268, nil, 9, 40, 79, 340,
291
- nil, 342, nil, 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, 68,
298
- nil, nil, 68, 329, nil, nil, 330, 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, 7, 39, 3, 86, 4, 29, 34,
309
- 2, 12, 43, 12, 43, 37, 89, 30, 5, 5,
310
- 34, 5, 5, 34, 30, 30, 47, 30, 40, 40,
311
- 36, 36, 28, 28, 40, 46, 50, 94, 40, 56,
312
- 43, 43, 28, 31, 40, 39, 84, 40, 75, 29,
313
- 43, 47, 52, 52, 45, 45, 1, 56, 30, 44,
314
- 44, 87, 88, 94, 90, 7, 93, 39, 39, 4,
315
- 85, 6, 27, 38, 50, 40, 30, 42, 48, 49,
316
- 51, 55, 57, 58, 75, 59, 60, 61, 62, 63,
317
- 47, 89, 67, 68, 71, 30, 30, 40, 30, 46,
318
- 73, 76, 77, 31, 37, 40, 78, 79, 12, 28,
319
- 75, 80, 81, 82, 83, nil, 30, 43, 36, nil,
320
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
321
- nil, nil, nil, nil, nil, nil, nil, nil, 5, nil,
322
- nil, nil, nil, nil, nil, 86, 86, nil, nil, nil,
323
- 34, nil, nil, nil, nil, 47, 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, 30, 30, nil, nil, nil, 40, nil, 40, nil,
327
- nil, nil, nil, nil, 39, nil, nil, 12, 2, 12,
328
- 43, nil, nil, nil, 39, nil, nil, nil, 39, 40,
329
- 34, nil, 29, nil, nil, 86, nil, nil, nil, nil,
330
- 12, nil, nil, nil, nil, 40, nil, nil, 3, 40,
331
- nil, nil, nil, nil, 40, nil, 12, 43, 40, 5,
332
- nil, 34, nil, 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, 7,
339
- nil, nil, 7, 4, nil, nil, 4, 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, 56, 10, 3, 4, -89, 3, 0, nil, nil,
350
- nil, nil, 11, nil, nil, nil, nil, nil, nil, nil,
351
- nil, nil, nil, nil, nil, nil, nil, 2, 4, -26,
352
- -18, -199, nil, nil, -92, -40, -265, -82, -136, -30,
353
- 0, nil, -306, 12, -236, -135, -194, -203, -116, -153,
354
- -158, -154, -243, nil, nil, -232, -274, -275, -275, -275,
355
- -297, -289, -10, 31, nil, nil, nil, -7, 35, nil,
356
- nil, 6, nil, 2, nil, -253, 3, 4, 8, 9,
357
- 13, 14, 15, 16, -52, -28, -57, -62, -178, -224,
358
- -237, nil, nil, -271, -300 ]
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