racc 1.4.15-java → 1.4.16-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/COPYING +22 -515
  3. data/Manifest.txt +3 -9
  4. data/README.ja.rdoc +3 -4
  5. data/README.rdoc +4 -4
  6. data/Rakefile +13 -55
  7. data/bin/racc +2 -4
  8. data/ext/racc/{cparse.c → cparse/cparse.c} +64 -31
  9. data/ext/racc/cparse/extconf.rb +8 -0
  10. data/lib/racc/cparse-jruby.jar +0 -0
  11. data/lib/racc/exception.rb +3 -5
  12. data/lib/racc/grammar.rb +5 -7
  13. data/lib/racc/grammarfileparser.rb +4 -3
  14. data/lib/racc/info.rb +4 -6
  15. data/lib/racc/iset.rb +2 -2
  16. data/lib/racc/logfilegenerator.rb +2 -2
  17. data/lib/racc/parser-text.rb +14 -11
  18. data/lib/racc/parser.rb +14 -11
  19. data/lib/racc/parserfilegenerator.rb +5 -7
  20. data/lib/racc/state.rb +11 -13
  21. data/test/assets/intp.y +4 -4
  22. data/test/assets/mailp.y +27 -27
  23. data/test/assets/mof.y +12 -12
  24. data/test/assets/nullbug2.y +2 -2
  25. data/test/assets/recv.y +20 -20
  26. data/test/assets/syntax.y +1 -1
  27. data/test/assets/twowaysql.y +1 -1
  28. data/test/helper.rb +65 -54
  29. data/test/regress/cadenza +60 -60
  30. data/test/regress/cast +8 -8
  31. data/test/regress/csspool +167 -167
  32. data/test/regress/edtf +115 -115
  33. data/test/regress/huia +75 -75
  34. data/test/regress/journey +12 -12
  35. data/test/regress/liquor +54 -54
  36. data/test/regress/machete +37 -37
  37. data/test/regress/mediacloth +83 -83
  38. data/test/regress/mof +60 -60
  39. data/test/regress/namae +29 -29
  40. data/test/regress/nasl +174 -174
  41. data/test/regress/nokogiri-css +59 -59
  42. data/test/regress/opal +352 -352
  43. data/test/regress/php_serialization +20 -20
  44. data/test/regress/riml +261 -261
  45. data/test/regress/ruby18 +353 -353
  46. data/test/regress/ruby22 +433 -433
  47. data/test/regress/tp_plus +125 -125
  48. data/test/regress/twowaysql +30 -30
  49. data/test/test_chk_y.rb +1 -0
  50. data/test/test_racc_command.rb +5 -24
  51. data/test/test_scan_y.rb +1 -0
  52. data/test/testscanner.rb +1 -1
  53. metadata +8 -75
  54. data/ext/racc/depend +0 -1
  55. data/ext/racc/extconf.rb +0 -7
  56. data/test/assets/bibtex.y +0 -141
  57. data/test/assets/rdblockparser.y +0 -576
  58. data/test/assets/rdinlineparser.y +0 -561
  59. data/test/regress/bibtex +0 -474
  60. data/test/regress/rdblockparser +0 -1061
  61. data/test/regress/rdinlineparser +0 -1243
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.14
4
- # from Racc grammer file "".
3
+ # This file is automatically generated by Racc 1.4.16.pre.1
4
+ # from Racc grammar file "".
5
5
  #
6
6
 
7
7
  require 'racc/parser.rb'
@@ -882,7 +882,7 @@ Racc_debug_parser = false
882
882
 
883
883
  module_eval(<<'.,.,', 'tp_plus.y', 35)
884
884
  def _reduce_1(val, _values, result)
885
- @interpreter.nodes = val[0]
885
+ @interpreter.nodes = val[0]
886
886
  result
887
887
  end
888
888
  .,.,
@@ -893,7 +893,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 42)
893
893
  def _reduce_3(val, _values, result)
894
894
  result = [val[0]]
895
895
  result << val[1] unless val[1].nil?
896
-
896
+
897
897
  result
898
898
  end
899
899
  .,.,
@@ -902,14 +902,14 @@ module_eval(<<'.,.,', 'tp_plus.y', 46)
902
902
  def _reduce_4(val, _values, result)
903
903
  result = val[0] << val[1]
904
904
  result << val[2] unless val[2].nil?
905
-
905
+
906
906
  result
907
907
  end
908
908
  .,.,
909
909
 
910
910
  module_eval(<<'.,.,', 'tp_plus.y', 52)
911
911
  def _reduce_5(val, _values, result)
912
- result = val[1]
912
+ result = val[1]
913
913
  result
914
914
  end
915
915
  .,.,
@@ -960,28 +960,28 @@ module_eval(<<'.,.,', 'tp_plus.y', 52)
960
960
 
961
961
  module_eval(<<'.,.,', 'tp_plus.y', 85)
962
962
  def _reduce_28(val, _values, result)
963
- result = PauseNode.new
963
+ result = PauseNode.new
964
964
  result
965
965
  end
966
966
  .,.,
967
967
 
968
968
  module_eval(<<'.,.,', 'tp_plus.y', 86)
969
969
  def _reduce_29(val, _values, result)
970
- result = AbortNode.new
970
+ result = AbortNode.new
971
971
  result
972
972
  end
973
973
  .,.,
974
974
 
975
975
  module_eval(<<'.,.,', 'tp_plus.y', 90)
976
976
  def _reduce_30(val, _values, result)
977
- result = EmptyStmtNode.new()
977
+ result = EmptyStmtNode.new()
978
978
  result
979
979
  end
980
980
  .,.,
981
981
 
982
982
  module_eval(<<'.,.,', 'tp_plus.y', 94)
983
983
  def _reduce_31(val, _values, result)
984
- result = HeaderNode.new(val[0],val[2])
984
+ result = HeaderNode.new(val[0],val[2])
985
985
  result
986
986
  end
987
987
  .,.,
@@ -992,49 +992,49 @@ module_eval(<<'.,.,', 'tp_plus.y', 94)
992
992
 
993
993
  module_eval(<<'.,.,', 'tp_plus.y', 103)
994
994
  def _reduce_34(val, _values, result)
995
- result = RaiseNode.new(val[1])
995
+ result = RaiseNode.new(val[1])
996
996
  result
997
997
  end
998
998
  .,.,
999
999
 
1000
1000
  module_eval(<<'.,.,', 'tp_plus.y', 107)
1001
1001
  def _reduce_35(val, _values, result)
1002
- result = TimerMethodNode.new(val[0],val[1])
1002
+ result = TimerMethodNode.new(val[0],val[1])
1003
1003
  result
1004
1004
  end
1005
1005
  .,.,
1006
1006
 
1007
1007
  module_eval(<<'.,.,', 'tp_plus.y', 111)
1008
1008
  def _reduce_36(val, _values, result)
1009
- result = EvalNode.new(val[1])
1009
+ result = EvalNode.new(val[1])
1010
1010
  result
1011
1011
  end
1012
1012
  .,.,
1013
1013
 
1014
1014
  module_eval(<<'.,.,', 'tp_plus.y', 116)
1015
1015
  def _reduce_37(val, _values, result)
1016
- result = WaitForNode.new(val[2], val[4])
1016
+ result = WaitForNode.new(val[2], val[4])
1017
1017
  result
1018
1018
  end
1019
1019
  .,.,
1020
1020
 
1021
1021
  module_eval(<<'.,.,', 'tp_plus.y', 118)
1022
1022
  def _reduce_38(val, _values, result)
1023
- result = WaitUntilNode.new(val[2], nil)
1023
+ result = WaitUntilNode.new(val[2], nil)
1024
1024
  result
1025
1025
  end
1026
1026
  .,.,
1027
1027
 
1028
1028
  module_eval(<<'.,.,', 'tp_plus.y', 120)
1029
1029
  def _reduce_39(val, _values, result)
1030
- result = WaitUntilNode.new(val[2],val[5])
1030
+ result = WaitUntilNode.new(val[2],val[5])
1031
1031
  result
1032
1032
  end
1033
1033
  .,.,
1034
1034
 
1035
1035
  module_eval(<<'.,.,', 'tp_plus.y', 122)
1036
1036
  def _reduce_40(val, _values, result)
1037
- result = WaitUntilNode.new(val[2],val[5].merge(val[7]))
1037
+ result = WaitUntilNode.new(val[2],val[5].merge(val[7]))
1038
1038
  result
1039
1039
  end
1040
1040
  .,.,
@@ -1045,70 +1045,70 @@ module_eval(<<'.,.,', 'tp_plus.y', 122)
1045
1045
 
1046
1046
  module_eval(<<'.,.,', 'tp_plus.y', 132)
1047
1047
  def _reduce_43(val, _values, result)
1048
- result = { label: val[3] }
1048
+ result = { label: val[3] }
1049
1049
  result
1050
1050
  end
1051
1051
  .,.,
1052
1052
 
1053
1053
  module_eval(<<'.,.,', 'tp_plus.y', 137)
1054
1054
  def _reduce_44(val, _values, result)
1055
- result = { timeout: [val[3],val[5]] }
1055
+ result = { timeout: [val[3],val[5]] }
1056
1056
  result
1057
1057
  end
1058
1058
  .,.,
1059
1059
 
1060
1060
  module_eval(<<'.,.,', 'tp_plus.y', 141)
1061
1061
  def _reduce_45(val, _values, result)
1062
- result = val[0]
1062
+ result = val[0]
1063
1063
  result
1064
1064
  end
1065
1065
  .,.,
1066
1066
 
1067
1067
  module_eval(<<'.,.,', 'tp_plus.y', 145)
1068
1068
  def _reduce_46(val, _values, result)
1069
- result = UseNode.new(val[0],val[1])
1069
+ result = UseNode.new(val[0],val[1])
1070
1070
  result
1071
1071
  end
1072
1072
  .,.,
1073
1073
 
1074
1074
  module_eval(<<'.,.,', 'tp_plus.y', 150)
1075
1075
  def _reduce_47(val, _values, result)
1076
- result = SetSkipNode.new(val[1])
1076
+ result = SetSkipNode.new(val[1])
1077
1077
  result
1078
1078
  end
1079
1079
  .,.,
1080
1080
 
1081
1081
  module_eval(<<'.,.,', 'tp_plus.y', 154)
1082
1082
  def _reduce_48(val, _values, result)
1083
- result = CallNode.new(val[0],val[2])
1083
+ result = CallNode.new(val[0],val[2])
1084
1084
  result
1085
1085
  end
1086
1086
  .,.,
1087
1087
 
1088
1088
  module_eval(<<'.,.,', 'tp_plus.y', 155)
1089
1089
  def _reduce_49(val, _values, result)
1090
- result = CallNode.new(val[1],val[3],async: true)
1090
+ result = CallNode.new(val[1],val[3],async: true)
1091
1091
  result
1092
1092
  end
1093
1093
  .,.,
1094
1094
 
1095
1095
  module_eval(<<'.,.,', 'tp_plus.y', 159)
1096
1096
  def _reduce_50(val, _values, result)
1097
- result = [val[0]]
1097
+ result = [val[0]]
1098
1098
  result
1099
1099
  end
1100
1100
  .,.,
1101
1101
 
1102
1102
  module_eval(<<'.,.,', 'tp_plus.y', 160)
1103
1103
  def _reduce_51(val, _values, result)
1104
- result = val[0] << val[2]
1104
+ result = val[0] << val[2]
1105
1105
  result
1106
1106
  end
1107
1107
  .,.,
1108
1108
 
1109
1109
  module_eval(<<'.,.,', 'tp_plus.y', 161)
1110
1110
  def _reduce_52(val, _values, result)
1111
- result = []
1111
+ result = []
1112
1112
  result
1113
1113
  end
1114
1114
  .,.,
@@ -1123,28 +1123,28 @@ module_eval(<<'.,.,', 'tp_plus.y', 161)
1123
1123
 
1124
1124
  module_eval(<<'.,.,', 'tp_plus.y', 172)
1125
1125
  def _reduce_57(val, _values, result)
1126
- result = StringNode.new(val[0])
1126
+ result = StringNode.new(val[0])
1127
1127
  result
1128
1128
  end
1129
1129
  .,.,
1130
1130
 
1131
1131
  module_eval(<<'.,.,', 'tp_plus.y', 176)
1132
1132
  def _reduce_58(val, _values, result)
1133
- result = IOMethodNode.new(val[0],val[1])
1133
+ result = IOMethodNode.new(val[0],val[1])
1134
1134
  result
1135
1135
  end
1136
1136
  .,.,
1137
1137
 
1138
1138
  module_eval(<<'.,.,', 'tp_plus.y', 178)
1139
1139
  def _reduce_59(val, _values, result)
1140
- result = IOMethodNode.new(val[0],val[2])
1140
+ result = IOMethodNode.new(val[0],val[2])
1141
1141
  result
1142
1142
  end
1143
1143
  .,.,
1144
1144
 
1145
1145
  module_eval(<<'.,.,', 'tp_plus.y', 180)
1146
1146
  def _reduce_60(val, _values, result)
1147
- result = IOMethodNode.new(val[0],val[2],{ pulse_time: val[4], pulse_units: val[6] })
1147
+ result = IOMethodNode.new(val[0],val[2],{ pulse_time: val[4], pulse_units: val[6] })
1148
1148
  result
1149
1149
  end
1150
1150
  .,.,
@@ -1155,35 +1155,35 @@ module_eval(<<'.,.,', 'tp_plus.y', 180)
1155
1155
 
1156
1156
  module_eval(<<'.,.,', 'tp_plus.y', 190)
1157
1157
  def _reduce_63(val, _values, result)
1158
- result = JumpNode.new(val[1])
1158
+ result = JumpNode.new(val[1])
1159
1159
  result
1160
1160
  end
1161
1161
  .,.,
1162
1162
 
1163
1163
  module_eval(<<'.,.,', 'tp_plus.y', 195)
1164
1164
  def _reduce_64(val, _values, result)
1165
- result = ConditionalNode.new("if",val[1],val[2],val[3])
1165
+ result = ConditionalNode.new("if",val[1],val[2],val[3])
1166
1166
  result
1167
1167
  end
1168
1168
  .,.,
1169
1169
 
1170
1170
  module_eval(<<'.,.,', 'tp_plus.y', 197)
1171
1171
  def _reduce_65(val, _values, result)
1172
- result = ConditionalNode.new("unless",val[1],val[2],val[3])
1172
+ result = ConditionalNode.new("unless",val[1],val[2],val[3])
1173
1173
  result
1174
1174
  end
1175
1175
  .,.,
1176
1176
 
1177
1177
  module_eval(<<'.,.,', 'tp_plus.y', 202)
1178
1178
  def _reduce_66(val, _values, result)
1179
- result = ForNode.new(val[1],val[4],val[6],val[8])
1179
+ result = ForNode.new(val[1],val[4],val[6],val[8])
1180
1180
  result
1181
1181
  end
1182
1182
  .,.,
1183
1183
 
1184
1184
  module_eval(<<'.,.,', 'tp_plus.y', 206)
1185
1185
  def _reduce_67(val, _values, result)
1186
- result = WhileNode.new(val[1],val[2])
1186
+ result = WhileNode.new(val[1],val[2])
1187
1187
  result
1188
1188
  end
1189
1189
  .,.,
@@ -1194,35 +1194,35 @@ module_eval(<<'.,.,', 'tp_plus.y', 206)
1194
1194
 
1195
1195
  module_eval(<<'.,.,', 'tp_plus.y', 215)
1196
1196
  def _reduce_70(val, _values, result)
1197
- result = NamespaceNode.new(val[1],val[2])
1197
+ result = NamespaceNode.new(val[1],val[2])
1198
1198
  result
1199
1199
  end
1200
1200
  .,.,
1201
1201
 
1202
1202
  module_eval(<<'.,.,', 'tp_plus.y', 222)
1203
1203
  def _reduce_71(val, _values, result)
1204
- result = CaseNode.new(val[1],val[3],val[4])
1204
+ result = CaseNode.new(val[1],val[3],val[4])
1205
1205
  result
1206
1206
  end
1207
1207
  .,.,
1208
1208
 
1209
1209
  module_eval(<<'.,.,', 'tp_plus.y', 226)
1210
1210
  def _reduce_72(val, _values, result)
1211
- result = val
1211
+ result = val
1212
1212
  result
1213
1213
  end
1214
1214
  .,.,
1215
1215
 
1216
1216
  module_eval(<<'.,.,', 'tp_plus.y', 228)
1217
1217
  def _reduce_73(val, _values, result)
1218
- result = val[0] << val[1] << val[2]
1218
+ result = val[0] << val[1] << val[2]
1219
1219
  result
1220
1220
  end
1221
1221
  .,.,
1222
1222
 
1223
1223
  module_eval(<<'.,.,', 'tp_plus.y', 233)
1224
1224
  def _reduce_74(val, _values, result)
1225
- result = CaseConditionNode.new(val[1],val[3])
1225
+ result = CaseConditionNode.new(val[1],val[3])
1226
1226
  result
1227
1227
  end
1228
1228
  .,.,
@@ -1233,7 +1233,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 233)
1233
1233
 
1234
1234
  module_eval(<<'.,.,', 'tp_plus.y', 243)
1235
1235
  def _reduce_77(val, _values, result)
1236
- result = CaseConditionNode.new(nil,val[2])
1236
+ result = CaseConditionNode.new(nil,val[2])
1237
1237
  result
1238
1238
  end
1239
1239
  .,.,
@@ -1248,14 +1248,14 @@ module_eval(<<'.,.,', 'tp_plus.y', 243)
1248
1248
 
1249
1249
  module_eval(<<'.,.,', 'tp_plus.y', 254)
1250
1250
  def _reduce_82(val, _values, result)
1251
- result = InlineConditionalNode.new(val[1], val[2], val[0])
1251
+ result = InlineConditionalNode.new(val[1], val[2], val[0])
1252
1252
  result
1253
1253
  end
1254
1254
  .,.,
1255
1255
 
1256
1256
  module_eval(<<'.,.,', 'tp_plus.y', 255)
1257
1257
  def _reduce_83(val, _values, result)
1258
- result = InlineConditionalNode.new(val[1], val[2], val[0])
1258
+ result = InlineConditionalNode.new(val[1], val[2], val[0])
1259
1259
  result
1260
1260
  end
1261
1261
  .,.,
@@ -1270,70 +1270,70 @@ module_eval(<<'.,.,', 'tp_plus.y', 255)
1270
1270
 
1271
1271
  module_eval(<<'.,.,', 'tp_plus.y', 266)
1272
1272
  def _reduce_88(val, _values, result)
1273
- result = val[1]
1273
+ result = val[1]
1274
1274
  result
1275
1275
  end
1276
1276
  .,.,
1277
1277
 
1278
1278
  module_eval(<<'.,.,', 'tp_plus.y', 267)
1279
1279
  def _reduce_89(val, _values, result)
1280
- result = []
1280
+ result = []
1281
1281
  result
1282
1282
  end
1283
1283
  .,.,
1284
1284
 
1285
1285
  module_eval(<<'.,.,', 'tp_plus.y', 272)
1286
1286
  def _reduce_90(val, _values, result)
1287
- result = MotionNode.new(val[0],val[5],val[7])
1287
+ result = MotionNode.new(val[0],val[5],val[7])
1288
1288
  result
1289
1289
  end
1290
1290
  .,.,
1291
1291
 
1292
1292
  module_eval(<<'.,.,', 'tp_plus.y', 276)
1293
1293
  def _reduce_91(val, _values, result)
1294
- result = val
1294
+ result = val
1295
1295
  result
1296
1296
  end
1297
1297
  .,.,
1298
1298
 
1299
1299
  module_eval(<<'.,.,', 'tp_plus.y', 278)
1300
1300
  def _reduce_92(val, _values, result)
1301
- result = val[0] << val[1]
1301
+ result = val[0] << val[1]
1302
1302
  result
1303
1303
  end
1304
1304
  .,.,
1305
1305
 
1306
1306
  module_eval(<<'.,.,', 'tp_plus.y', 283)
1307
1307
  def _reduce_93(val, _values, result)
1308
- result = SpeedNode.new(val[4])
1308
+ result = SpeedNode.new(val[4])
1309
1309
  result
1310
1310
  end
1311
1311
  .,.,
1312
1312
 
1313
1313
  module_eval(<<'.,.,', 'tp_plus.y', 285)
1314
1314
  def _reduce_94(val, _values, result)
1315
- result = TerminationNode.new(val[4])
1315
+ result = TerminationNode.new(val[4])
1316
1316
  result
1317
1317
  end
1318
1318
  .,.,
1319
1319
 
1320
1320
  module_eval(<<'.,.,', 'tp_plus.y', 287)
1321
1321
  def _reduce_95(val, _values, result)
1322
- result = OffsetNode.new(val[2],val[4])
1322
+ result = OffsetNode.new(val[2],val[4])
1323
1323
  result
1324
1324
  end
1325
1325
  .,.,
1326
1326
 
1327
1327
  module_eval(<<'.,.,', 'tp_plus.y', 289)
1328
1328
  def _reduce_96(val, _values, result)
1329
- result = TimeNode.new(val[2],val[4],val[6])
1329
+ result = TimeNode.new(val[2],val[4],val[6])
1330
1330
  result
1331
1331
  end
1332
1332
  .,.,
1333
1333
 
1334
1334
  module_eval(<<'.,.,', 'tp_plus.y', 291)
1335
1335
  def _reduce_97(val, _values, result)
1336
- result = SkipNode.new(val[4],val[5])
1336
+ result = SkipNode.new(val[4],val[5])
1337
1337
  result
1338
1338
  end
1339
1339
  .,.,
@@ -1347,14 +1347,14 @@ module_eval(<<'.,.,', 'tp_plus.y', 298)
1347
1347
  raise Racc::ParseError, sprintf("\ninvalid termination type: (%s)", val[1]) if val[1] != 1
1348
1348
 
1349
1349
  result = DigitNode.new(val[1].to_i * -1)
1350
-
1350
+
1351
1351
  result
1352
1352
  end
1353
1353
  .,.,
1354
1354
 
1355
1355
  module_eval(<<'.,.,', 'tp_plus.y', 305)
1356
1356
  def _reduce_101(val, _values, result)
1357
- result = val[1]
1357
+ result = val[1]
1358
1358
  result
1359
1359
  end
1360
1360
  .,.,
@@ -1375,35 +1375,35 @@ module_eval(<<'.,.,', 'tp_plus.y', 305)
1375
1375
 
1376
1376
  module_eval(<<'.,.,', 'tp_plus.y', 325)
1377
1377
  def _reduce_109(val, _values, result)
1378
- result = { speed: val[0], units: val[2] }
1378
+ result = { speed: val[0], units: val[2] }
1379
1379
  result
1380
1380
  end
1381
1381
  .,.,
1382
1382
 
1383
1383
  module_eval(<<'.,.,', 'tp_plus.y', 326)
1384
1384
  def _reduce_110(val, _values, result)
1385
- result = { speed: val[0], units: nil }
1385
+ result = { speed: val[0], units: nil }
1386
1386
  result
1387
1387
  end
1388
1388
  .,.,
1389
1389
 
1390
1390
  module_eval(<<'.,.,', 'tp_plus.y', 330)
1391
1391
  def _reduce_111(val, _values, result)
1392
- result = LabelDefinitionNode.new(val[0])
1392
+ result = LabelDefinitionNode.new(val[0])
1393
1393
  result
1394
1394
  end
1395
1395
  .,.,
1396
1396
 
1397
1397
  module_eval(<<'.,.,', 'tp_plus.y', 334)
1398
1398
  def _reduce_112(val, _values, result)
1399
- result = DefinitionNode.new(val[0],val[2])
1399
+ result = DefinitionNode.new(val[0],val[2])
1400
1400
  result
1401
1401
  end
1402
1402
  .,.,
1403
1403
 
1404
1404
  module_eval(<<'.,.,', 'tp_plus.y', 338)
1405
1405
  def _reduce_113(val, _values, result)
1406
- result = AssignmentNode.new(val[0],val[2])
1406
+ result = AssignmentNode.new(val[0],val[2])
1407
1407
  result
1408
1408
  end
1409
1409
  .,.,
@@ -1414,7 +1414,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 339)
1414
1414
  val[0],
1415
1415
  ExpressionNode.new(val[0],"+",val[3])
1416
1416
  )
1417
-
1417
+
1418
1418
  result
1419
1419
  end
1420
1420
  .,.,
@@ -1425,7 +1425,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 344)
1425
1425
  val[0],
1426
1426
  ExpressionNode.new(val[0],"-",val[3])
1427
1427
  )
1428
-
1428
+
1429
1429
  result
1430
1430
  end
1431
1431
  .,.,
@@ -1436,70 +1436,70 @@ module_eval(<<'.,.,', 'tp_plus.y', 344)
1436
1436
 
1437
1437
  module_eval(<<'.,.,', 'tp_plus.y', 357)
1438
1438
  def _reduce_118(val, _values, result)
1439
- result = VarNode.new(val[0])
1439
+ result = VarNode.new(val[0])
1440
1440
  result
1441
1441
  end
1442
1442
  .,.,
1443
1443
 
1444
1444
  module_eval(<<'.,.,', 'tp_plus.y', 358)
1445
1445
  def _reduce_119(val, _values, result)
1446
- result = VarMethodNode.new(val[0],val[1])
1446
+ result = VarMethodNode.new(val[0],val[1])
1447
1447
  result
1448
1448
  end
1449
1449
  .,.,
1450
1450
 
1451
1451
  module_eval(<<'.,.,', 'tp_plus.y', 363)
1452
1452
  def _reduce_120(val, _values, result)
1453
- result = NamespacedVarNode.new(val[0],val[1])
1453
+ result = NamespacedVarNode.new(val[0],val[1])
1454
1454
  result
1455
1455
  end
1456
1456
  .,.,
1457
1457
 
1458
1458
  module_eval(<<'.,.,', 'tp_plus.y', 367)
1459
1459
  def _reduce_121(val, _values, result)
1460
- result = val[0]
1460
+ result = val[0]
1461
1461
  result
1462
1462
  end
1463
1463
  .,.,
1464
1464
 
1465
1465
  module_eval(<<'.,.,', 'tp_plus.y', 369)
1466
1466
  def _reduce_122(val, _values, result)
1467
- result = val[0].merge(val[1])
1467
+ result = val[0].merge(val[1])
1468
1468
  result
1469
1469
  end
1470
1470
  .,.,
1471
1471
 
1472
1472
  module_eval(<<'.,.,', 'tp_plus.y', 373)
1473
1473
  def _reduce_123(val, _values, result)
1474
- result = { method: val[2] }
1474
+ result = { method: val[2] }
1475
1475
  result
1476
1476
  end
1477
1477
  .,.,
1478
1478
 
1479
1479
  module_eval(<<'.,.,', 'tp_plus.y', 375)
1480
1480
  def _reduce_124(val, _values, result)
1481
- result = { group: val[4] }
1481
+ result = { group: val[4] }
1482
1482
  result
1483
1483
  end
1484
1484
  .,.,
1485
1485
 
1486
1486
  module_eval(<<'.,.,', 'tp_plus.y', 379)
1487
1487
  def _reduce_125(val, _values, result)
1488
- result = [val[0]]
1488
+ result = [val[0]]
1489
1489
  result
1490
1490
  end
1491
1491
  .,.,
1492
1492
 
1493
1493
  module_eval(<<'.,.,', 'tp_plus.y', 380)
1494
1494
  def _reduce_126(val, _values, result)
1495
- result = val[0] << val[1]
1495
+ result = val[0] << val[1]
1496
1496
  result
1497
1497
  end
1498
1498
  .,.,
1499
1499
 
1500
1500
  module_eval(<<'.,.,', 'tp_plus.y', 384)
1501
1501
  def _reduce_127(val, _values, result)
1502
- result = val[0]
1502
+ result = val[0]
1503
1503
  result
1504
1504
  end
1505
1505
  .,.,
@@ -1510,7 +1510,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 384)
1510
1510
 
1511
1511
  module_eval(<<'.,.,', 'tp_plus.y', 394)
1512
1512
  def _reduce_130(val, _values, result)
1513
- result = val[0]
1513
+ result = val[0]
1514
1514
  result
1515
1515
  end
1516
1516
  .,.,
@@ -1519,112 +1519,112 @@ module_eval(<<'.,.,', 'tp_plus.y', 394)
1519
1519
 
1520
1520
  module_eval(<<'.,.,', 'tp_plus.y', 396)
1521
1521
  def _reduce_132(val, _values, result)
1522
- result = ExpressionNode.new(val[1], "!", nil)
1522
+ result = ExpressionNode.new(val[1], "!", nil)
1523
1523
  result
1524
1524
  end
1525
1525
  .,.,
1526
1526
 
1527
1527
  module_eval(<<'.,.,', 'tp_plus.y', 401)
1528
1528
  def _reduce_133(val, _values, result)
1529
- result = ExpressionNode.new(val[0], val[1], val[2])
1529
+ result = ExpressionNode.new(val[0], val[1], val[2])
1530
1530
  result
1531
1531
  end
1532
1532
  .,.,
1533
1533
 
1534
1534
  module_eval(<<'.,.,', 'tp_plus.y', 405)
1535
1535
  def _reduce_134(val, _values, result)
1536
- result = "=="
1536
+ result = "=="
1537
1537
  result
1538
1538
  end
1539
1539
  .,.,
1540
1540
 
1541
1541
  module_eval(<<'.,.,', 'tp_plus.y', 406)
1542
1542
  def _reduce_135(val, _values, result)
1543
- result = "<>"
1543
+ result = "<>"
1544
1544
  result
1545
1545
  end
1546
1546
  .,.,
1547
1547
 
1548
1548
  module_eval(<<'.,.,', 'tp_plus.y', 407)
1549
1549
  def _reduce_136(val, _values, result)
1550
- result = "<"
1550
+ result = "<"
1551
1551
  result
1552
1552
  end
1553
1553
  .,.,
1554
1554
 
1555
1555
  module_eval(<<'.,.,', 'tp_plus.y', 408)
1556
1556
  def _reduce_137(val, _values, result)
1557
- result = ">"
1557
+ result = ">"
1558
1558
  result
1559
1559
  end
1560
1560
  .,.,
1561
1561
 
1562
1562
  module_eval(<<'.,.,', 'tp_plus.y', 409)
1563
1563
  def _reduce_138(val, _values, result)
1564
- result = ">="
1564
+ result = ">="
1565
1565
  result
1566
1566
  end
1567
1567
  .,.,
1568
1568
 
1569
1569
  module_eval(<<'.,.,', 'tp_plus.y', 410)
1570
1570
  def _reduce_139(val, _values, result)
1571
- result = "<="
1571
+ result = "<="
1572
1572
  result
1573
1573
  end
1574
1574
  .,.,
1575
1575
 
1576
1576
  module_eval(<<'.,.,', 'tp_plus.y', 411)
1577
1577
  def _reduce_140(val, _values, result)
1578
- result = "+"
1578
+ result = "+"
1579
1579
  result
1580
1580
  end
1581
1581
  .,.,
1582
1582
 
1583
1583
  module_eval(<<'.,.,', 'tp_plus.y', 412)
1584
1584
  def _reduce_141(val, _values, result)
1585
- result = "-"
1585
+ result = "-"
1586
1586
  result
1587
1587
  end
1588
1588
  .,.,
1589
1589
 
1590
1590
  module_eval(<<'.,.,', 'tp_plus.y', 413)
1591
1591
  def _reduce_142(val, _values, result)
1592
- result = "||"
1592
+ result = "||"
1593
1593
  result
1594
1594
  end
1595
1595
  .,.,
1596
1596
 
1597
1597
  module_eval(<<'.,.,', 'tp_plus.y', 414)
1598
1598
  def _reduce_143(val, _values, result)
1599
- result = "*"
1599
+ result = "*"
1600
1600
  result
1601
1601
  end
1602
1602
  .,.,
1603
1603
 
1604
1604
  module_eval(<<'.,.,', 'tp_plus.y', 415)
1605
1605
  def _reduce_144(val, _values, result)
1606
- result = "/"
1606
+ result = "/"
1607
1607
  result
1608
1608
  end
1609
1609
  .,.,
1610
1610
 
1611
1611
  module_eval(<<'.,.,', 'tp_plus.y', 416)
1612
1612
  def _reduce_145(val, _values, result)
1613
- result = "DIV"
1613
+ result = "DIV"
1614
1614
  result
1615
1615
  end
1616
1616
  .,.,
1617
1617
 
1618
1618
  module_eval(<<'.,.,', 'tp_plus.y', 417)
1619
1619
  def _reduce_146(val, _values, result)
1620
- result = "%"
1620
+ result = "%"
1621
1621
  result
1622
1622
  end
1623
1623
  .,.,
1624
1624
 
1625
1625
  module_eval(<<'.,.,', 'tp_plus.y', 418)
1626
1626
  def _reduce_147(val, _values, result)
1627
- result = "&&"
1627
+ result = "&&"
1628
1628
  result
1629
1629
  end
1630
1630
  .,.,
@@ -1641,14 +1641,14 @@ module_eval(<<'.,.,', 'tp_plus.y', 418)
1641
1641
 
1642
1642
  module_eval(<<'.,.,', 'tp_plus.y', 430)
1643
1643
  def _reduce_153(val, _values, result)
1644
- result = ParenExpressionNode.new(val[1])
1644
+ result = ParenExpressionNode.new(val[1])
1645
1645
  result
1646
1646
  end
1647
1647
  .,.,
1648
1648
 
1649
1649
  module_eval(<<'.,.,', 'tp_plus.y', 435)
1650
1650
  def _reduce_154(val, _values, result)
1651
- result = IndirectNode.new(val[2].to_sym, val[4])
1651
+ result = IndirectNode.new(val[2].to_sym, val[4])
1652
1652
  result
1653
1653
  end
1654
1654
  .,.,
@@ -1657,21 +1657,21 @@ module_eval(<<'.,.,', 'tp_plus.y', 440)
1657
1657
  def _reduce_155(val, _values, result)
1658
1658
  val[1] = val[1].to_i * -1 if val[0] == "-"
1659
1659
  result = DigitNode.new(val[1])
1660
-
1660
+
1661
1661
  result
1662
1662
  end
1663
1663
  .,.,
1664
1664
 
1665
1665
  module_eval(<<'.,.,', 'tp_plus.y', 443)
1666
1666
  def _reduce_156(val, _values, result)
1667
- val[1] = val[1].to_f * -1 if val[0] == "-"; result = RealNode.new(val[1])
1667
+ val[1] = val[1].to_f * -1 if val[0] == "-"; result = RealNode.new(val[1])
1668
1668
  result
1669
1669
  end
1670
1670
  .,.,
1671
1671
 
1672
1672
  module_eval(<<'.,.,', 'tp_plus.y', 447)
1673
1673
  def _reduce_157(val, _values, result)
1674
- result = "-"
1674
+ result = "-"
1675
1675
  result
1676
1676
  end
1677
1677
  .,.,
@@ -1680,14 +1680,14 @@ module_eval(<<'.,.,', 'tp_plus.y', 447)
1680
1680
 
1681
1681
  module_eval(<<'.,.,', 'tp_plus.y', 452)
1682
1682
  def _reduce_159(val, _values, result)
1683
- result = RealNode.new(val[0])
1683
+ result = RealNode.new(val[0])
1684
1684
  result
1685
1685
  end
1686
1686
  .,.,
1687
1687
 
1688
1688
  module_eval(<<'.,.,', 'tp_plus.y', 456)
1689
1689
  def _reduce_160(val, _values, result)
1690
- result = DigitNode.new(val[0])
1690
+ result = DigitNode.new(val[0])
1691
1691
  result
1692
1692
  end
1693
1693
  .,.,
@@ -1718,98 +1718,98 @@ module_eval(<<'.,.,', 'tp_plus.y', 456)
1718
1718
 
1719
1719
  module_eval(<<'.,.,', 'tp_plus.y', 476)
1720
1720
  def _reduce_173(val, _values, result)
1721
- result = StringRegisterNode.new(val[2].to_i)
1721
+ result = StringRegisterNode.new(val[2].to_i)
1722
1722
  result
1723
1723
  end
1724
1724
  .,.,
1725
1725
 
1726
1726
  module_eval(<<'.,.,', 'tp_plus.y', 480)
1727
1727
  def _reduce_174(val, _values, result)
1728
- result = UserAlarmNode.new(val[2].to_i)
1728
+ result = UserAlarmNode.new(val[2].to_i)
1729
1729
  result
1730
1730
  end
1731
1731
  .,.,
1732
1732
 
1733
1733
  module_eval(<<'.,.,', 'tp_plus.y', 484)
1734
1734
  def _reduce_175(val, _values, result)
1735
- result = TimerNode.new(val[2].to_i)
1735
+ result = TimerNode.new(val[2].to_i)
1736
1736
  result
1737
1737
  end
1738
1738
  .,.,
1739
1739
 
1740
1740
  module_eval(<<'.,.,', 'tp_plus.y', 488)
1741
1741
  def _reduce_176(val, _values, result)
1742
- result = ArgumentNode.new(val[2].to_i)
1742
+ result = ArgumentNode.new(val[2].to_i)
1743
1743
  result
1744
1744
  end
1745
1745
  .,.,
1746
1746
 
1747
1747
  module_eval(<<'.,.,', 'tp_plus.y', 492)
1748
1748
  def _reduce_177(val, _values, result)
1749
- result = VisionRegisterNode.new(val[2].to_i)
1749
+ result = VisionRegisterNode.new(val[2].to_i)
1750
1750
  result
1751
1751
  end
1752
1752
  .,.,
1753
1753
 
1754
1754
  module_eval(<<'.,.,', 'tp_plus.y', 496)
1755
1755
  def _reduce_178(val, _values, result)
1756
- result = PositionNode.new(val[2].to_i)
1756
+ result = PositionNode.new(val[2].to_i)
1757
1757
  result
1758
1758
  end
1759
1759
  .,.,
1760
1760
 
1761
1761
  module_eval(<<'.,.,', 'tp_plus.y', 500)
1762
1762
  def _reduce_179(val, _values, result)
1763
- result = NumregNode.new(val[2].to_i)
1763
+ result = NumregNode.new(val[2].to_i)
1764
1764
  result
1765
1765
  end
1766
1766
  .,.,
1767
1767
 
1768
1768
  module_eval(<<'.,.,', 'tp_plus.y', 504)
1769
1769
  def _reduce_180(val, _values, result)
1770
- result = PosregNode.new(val[2].to_i)
1770
+ result = PosregNode.new(val[2].to_i)
1771
1771
  result
1772
1772
  end
1773
1773
  .,.,
1774
1774
 
1775
1775
  module_eval(<<'.,.,', 'tp_plus.y', 508)
1776
1776
  def _reduce_181(val, _values, result)
1777
- result = IONode.new(val[0], val[2].to_i)
1777
+ result = IONode.new(val[0], val[2].to_i)
1778
1778
  result
1779
1779
  end
1780
1780
  .,.,
1781
1781
 
1782
1782
  module_eval(<<'.,.,', 'tp_plus.y', 512)
1783
1783
  def _reduce_182(val, _values, result)
1784
- result = IONode.new(val[0], val[2].to_i)
1784
+ result = IONode.new(val[0], val[2].to_i)
1785
1785
  result
1786
1786
  end
1787
1787
  .,.,
1788
1788
 
1789
1789
  module_eval(<<'.,.,', 'tp_plus.y', 516)
1790
1790
  def _reduce_183(val, _values, result)
1791
- result = AddressNode.new(val[0])
1791
+ result = AddressNode.new(val[0])
1792
1792
  result
1793
1793
  end
1794
1794
  .,.,
1795
1795
 
1796
1796
  module_eval(<<'.,.,', 'tp_plus.y', 520)
1797
1797
  def _reduce_184(val, _values, result)
1798
- result = CommentNode.new(val[0])
1798
+ result = CommentNode.new(val[0])
1799
1799
  result
1800
1800
  end
1801
1801
  .,.,
1802
1802
 
1803
1803
  module_eval(<<'.,.,', 'tp_plus.y', 524)
1804
1804
  def _reduce_185(val, _values, result)
1805
- result = TerminatorNode.new
1805
+ result = TerminatorNode.new
1806
1806
  result
1807
1807
  end
1808
1808
  .,.,
1809
1809
 
1810
1810
  module_eval(<<'.,.,', 'tp_plus.y', 525)
1811
1811
  def _reduce_186(val, _values, result)
1812
- result = val[0]
1812
+ result = val[0]
1813
1813
  result
1814
1814
  end
1815
1815
  .,.,
@@ -1820,7 +1820,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 525)
1820
1820
 
1821
1821
  module_eval(<<'.,.,', 'tp_plus.y', 532)
1822
1822
  def _reduce_189(val, _values, result)
1823
- result = TerminatorNode.new
1823
+ result = TerminatorNode.new
1824
1824
  result
1825
1825
  end
1826
1826
  .,.,
@@ -1829,7 +1829,7 @@ module_eval(<<'.,.,', 'tp_plus.y', 532)
1829
1829
 
1830
1830
  module_eval(<<'.,.,', 'tp_plus.y', 538)
1831
1831
  def _reduce_191(val, _values, result)
1832
- result = PositionDataNode.new(val[2])
1832
+ result = PositionDataNode.new(val[2])
1833
1833
  result
1834
1834
  end
1835
1835
  .,.,
@@ -1838,35 +1838,35 @@ module_eval(<<'.,.,', 'tp_plus.y', 538)
1838
1838
 
1839
1839
  module_eval(<<'.,.,', 'tp_plus.y', 546)
1840
1840
  def _reduce_193(val, _values, result)
1841
- result = val[2]
1841
+ result = val[2]
1842
1842
  result
1843
1843
  end
1844
1844
  .,.,
1845
1845
 
1846
1846
  module_eval(<<'.,.,', 'tp_plus.y', 547)
1847
1847
  def _reduce_194(val, _values, result)
1848
- result = {}
1848
+ result = {}
1849
1849
  result
1850
1850
  end
1851
1851
  .,.,
1852
1852
 
1853
1853
  module_eval(<<'.,.,', 'tp_plus.y', 551)
1854
1854
  def _reduce_195(val, _values, result)
1855
- result = val[0]
1855
+ result = val[0]
1856
1856
  result
1857
1857
  end
1858
1858
  .,.,
1859
1859
 
1860
1860
  module_eval(<<'.,.,', 'tp_plus.y', 553)
1861
1861
  def _reduce_196(val, _values, result)
1862
- result = val[0].merge(val[3])
1862
+ result = val[0].merge(val[3])
1863
1863
  result
1864
1864
  end
1865
1865
  .,.,
1866
1866
 
1867
1867
  module_eval(<<'.,.,', 'tp_plus.y', 557)
1868
1868
  def _reduce_197(val, _values, result)
1869
- result = { val[0].to_sym => val[2] }
1869
+ result = { val[0].to_sym => val[2] }
1870
1870
  result
1871
1871
  end
1872
1872
  .,.,
@@ -1879,21 +1879,21 @@ module_eval(<<'.,.,', 'tp_plus.y', 557)
1879
1879
 
1880
1880
  module_eval(<<'.,.,', 'tp_plus.y', 564)
1881
1881
  def _reduce_201(val, _values, result)
1882
- val[1] = val[1].to_i * -1 if val[0] == "-"; result = val[1]
1882
+ val[1] = val[1].to_i * -1 if val[0] == "-"; result = val[1]
1883
1883
  result
1884
1884
  end
1885
1885
  .,.,
1886
1886
 
1887
1887
  module_eval(<<'.,.,', 'tp_plus.y', 565)
1888
1888
  def _reduce_202(val, _values, result)
1889
- val[1] = val[1].to_f * -1 if val[0] == "-"; result = val[1]
1889
+ val[1] = val[1].to_f * -1 if val[0] == "-"; result = val[1]
1890
1890
  result
1891
1891
  end
1892
1892
  .,.,
1893
1893
 
1894
1894
  module_eval(<<'.,.,', 'tp_plus.y', 566)
1895
1895
  def _reduce_203(val, _values, result)
1896
- result = val[0] == "true"
1896
+ result = val[0] == "true"
1897
1897
  result
1898
1898
  end
1899
1899
  .,.,
@@ -1904,21 +1904,21 @@ module_eval(<<'.,.,', 'tp_plus.y', 566)
1904
1904
 
1905
1905
  module_eval(<<'.,.,', 'tp_plus.y', 575)
1906
1906
  def _reduce_206(val, _values, result)
1907
- result = val[2]
1907
+ result = val[2]
1908
1908
  result
1909
1909
  end
1910
1910
  .,.,
1911
1911
 
1912
1912
  module_eval(<<'.,.,', 'tp_plus.y', 579)
1913
1913
  def _reduce_207(val, _values, result)
1914
- result = val
1914
+ result = val
1915
1915
  result
1916
1916
  end
1917
1917
  .,.,
1918
1918
 
1919
1919
  module_eval(<<'.,.,', 'tp_plus.y', 580)
1920
1920
  def _reduce_208(val, _values, result)
1921
- result = val[0] << val[3]
1921
+ result = val[0] << val[3]
1922
1922
  result
1923
1923
  end
1924
1924
  .,.,
@@ -1930,4 +1930,4 @@ def _reduce_none(val, _values, result)
1930
1930
  end
1931
1931
 
1932
1932
  end # class Parser
1933
- end # module TPPlus
1933
+ end # module TPPlus