@irrelon/battlescript 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/functionality.ts +10 -0
- package/bin/index.js +407 -318
- package/bin/index.js.map +1 -1
- package/bin/index.ts +2 -0
- package/dist/bin/functionality.d.ts.map +1 -1
- package/dist/index.js +397 -316
- package/dist/index.js.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts.map +1 -1
- package/dist/services/parser.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/ast/nodes/RootNode.d.ts.map +1 -1
- package/package.json +1 -1
package/bin/index.js
CHANGED
|
@@ -23836,7 +23836,7 @@ BattleScriptLexer._SYMBOLIC_NAMES = [
|
|
|
23836
23836
|
];
|
|
23837
23837
|
BattleScriptLexer.VOCABULARY = new VocabularyImplExports.VocabularyImpl(BattleScriptLexer._LITERAL_NAMES, BattleScriptLexer._SYMBOLIC_NAMES, []);
|
|
23838
23838
|
BattleScriptLexer._serializedATNSegments = 2;
|
|
23839
|
-
BattleScriptLexer._serializedATNSegment0 = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x02Y\
|
|
23839
|
+
BattleScriptLexer._serializedATNSegment0 = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x02Y\u02A8\b\x01" +
|
|
23840
23840
|
"\x04\x02\t\x02\x04\x03\t\x03\x04\x04\t\x04\x04\x05\t\x05\x04\x06\t\x06" +
|
|
23841
23841
|
"\x04\x07\t\x07\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\v\t\v\x04\f\t\f\x04\r" +
|
|
23842
23842
|
"\t\r\x04\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x04\x12\t" +
|
|
@@ -23884,170 +23884,171 @@ BattleScriptLexer._serializedATNSegment0 = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u
|
|
|
23884
23884
|
"\n2\r2\x0E2\u0205\x032\x032\x052\u020A\n2\x032\x062\u020D\n2\r2\x0E2\u020E" +
|
|
23885
23885
|
"\x052\u0211\n2\x052\u0213\n2\x033\x033\x033\x033\x033\x033\x033\x033\x03" +
|
|
23886
23886
|
"3\x053\u021E\n3\x034\x034\x074\u0222\n4\f4\x0E4\u0225\v4\x034\x034\x03" +
|
|
23887
|
-
"5\x035\x075\
|
|
23888
|
-
"\
|
|
23889
|
-
"\
|
|
23890
|
-
"
|
|
23891
|
-
"
|
|
23892
|
-
"
|
|
23893
|
-
"
|
|
23894
|
-
"
|
|
23895
|
-
"
|
|
23896
|
-
"\
|
|
23897
|
-
"\
|
|
23898
|
-
"\x02\x11
|
|
23899
|
-
"
|
|
23900
|
-
"
|
|
23901
|
-
"
|
|
23902
|
-
"
|
|
23903
|
-
"
|
|
23904
|
-
"
|
|
23905
|
-
"
|
|
23906
|
-
"\
|
|
23907
|
-
"\
|
|
23908
|
-
"\
|
|
23909
|
-
"\
|
|
23910
|
-
"\
|
|
23911
|
-
"\
|
|
23912
|
-
"\
|
|
23913
|
-
"
|
|
23914
|
-
"\x02\x02\x02\x02
|
|
23915
|
-
"\x02\x02
|
|
23916
|
-
"
|
|
23917
|
-
"\x02\x02\
|
|
23918
|
-
"\
|
|
23919
|
-
"\x02\x02\x02\
|
|
23920
|
-
"\x02\
|
|
23921
|
-
"
|
|
23922
|
-
"\x02\x02\
|
|
23923
|
-
"\
|
|
23924
|
-
"\x02\x02\x02\
|
|
23925
|
-
"\x02\
|
|
23926
|
-
"
|
|
23927
|
-
"\x02\x02\x02\x02\
|
|
23928
|
-
"\x02\x02\x02\x02\
|
|
23929
|
-
"\x02\x02\x02\x02\
|
|
23930
|
-
"\x02\x02\x02\x02\
|
|
23931
|
-
"\x02\x02\x02\x02\
|
|
23932
|
-
"\x02\x02\x02\x02\
|
|
23933
|
-
"\x02\x02\x02\x02\
|
|
23934
|
-
"\x02\x02\x02\x02\
|
|
23935
|
-
"\x02\x02\x02\
|
|
23936
|
-
"\x02\
|
|
23937
|
-
"\
|
|
23938
|
-
"\x02\x02\
|
|
23939
|
-
"\x02\x02\
|
|
23940
|
-
"\x03\x02\x02\x02
|
|
23941
|
-
"\x03\x02\x02\x02\
|
|
23942
|
-
"\x03\x02\x02\x02
|
|
23943
|
-
"\x03\x02\x02\
|
|
23944
|
-
"\x03\x02\x02\
|
|
23945
|
-
"\x03\x02\x02\
|
|
23946
|
-
"\x03\x02\x02\
|
|
23947
|
-
"\x03\x02\x02\
|
|
23948
|
-
"\x03\x02\x02\
|
|
23949
|
-
"\x03\x02\x02\
|
|
23950
|
-
"\x03\x02\x02\
|
|
23951
|
-
"\x03\x02\x02\
|
|
23952
|
-
"\x03\x02\x02\
|
|
23953
|
-
"\x03\x02\x02\
|
|
23954
|
-
"\x03\x02\x02\
|
|
23955
|
-
"\x03\x02\x02\
|
|
23956
|
-
"\x03\x02\x02\x02\
|
|
23957
|
-
"\
|
|
23958
|
-
"\x02\
|
|
23959
|
-
"\x02\x02\x02\
|
|
23960
|
-
"\x03\x02\x02\x02\
|
|
23961
|
-
"\
|
|
23962
|
-
"\x02\
|
|
23963
|
-
"\x02\x02\x02\
|
|
23964
|
-
"\x03\x02\x02\x02\
|
|
23965
|
-
"\
|
|
23966
|
-
"
|
|
23967
|
-
"\
|
|
23968
|
-
"\
|
|
23969
|
-
"
|
|
23970
|
-
"\x02\
|
|
23971
|
-
"\
|
|
23972
|
-
"
|
|
23973
|
-
"\
|
|
23974
|
-
"\
|
|
23975
|
-
"\x02\
|
|
23976
|
-
"\
|
|
23977
|
-
"
|
|
23978
|
-
"\x02\
|
|
23979
|
-
"\
|
|
23980
|
-
"\
|
|
23981
|
-
"
|
|
23982
|
-
"\
|
|
23983
|
-
"\
|
|
23984
|
-
"
|
|
23985
|
-
"\
|
|
23986
|
-
"\
|
|
23987
|
-
"
|
|
23988
|
-
"\x02\
|
|
23989
|
-
"\
|
|
23990
|
-
"
|
|
23991
|
-
"\
|
|
23992
|
-
"\
|
|
23993
|
-
"\
|
|
23994
|
-
"\x02\
|
|
23995
|
-
"
|
|
23996
|
-
"\
|
|
23997
|
-
"\
|
|
23998
|
-
"\
|
|
23999
|
-
"\
|
|
24000
|
-
"\x02\
|
|
24001
|
-
"\x02\x02\
|
|
24002
|
-
"\
|
|
24003
|
-
"\
|
|
24004
|
-
"\
|
|
24005
|
-
"\x02\
|
|
24006
|
-
"
|
|
24007
|
-
"\
|
|
24008
|
-
"\
|
|
24009
|
-
"\
|
|
24010
|
-
"\
|
|
24011
|
-
"\
|
|
24012
|
-
"\x02\
|
|
24013
|
-
"\x02\x02\
|
|
24014
|
-
"\x07g\x02\x02\
|
|
24015
|
-
"\x07g\x02\x02\
|
|
24016
|
-
"\
|
|
24017
|
-
"\
|
|
24018
|
-
"\
|
|
24019
|
-
"\x02\
|
|
24020
|
-
"
|
|
24021
|
-
"\
|
|
24022
|
-
"\
|
|
24023
|
-
"
|
|
24024
|
-
"\
|
|
24025
|
-
"\
|
|
24026
|
-
"\x02\
|
|
24027
|
-
"\x02\x02\
|
|
24028
|
-
"\
|
|
24029
|
-
"\
|
|
24030
|
-
"\
|
|
24031
|
-
"\x02\
|
|
24032
|
-
"\x02\x02\
|
|
24033
|
-
"\
|
|
24034
|
-
"
|
|
24035
|
-
"\
|
|
24036
|
-
"\
|
|
24037
|
-
"\x02\
|
|
24038
|
-
"\x02\x02\
|
|
24039
|
-
"\
|
|
24040
|
-
"\
|
|
24041
|
-
"\
|
|
24042
|
-
"\
|
|
24043
|
-
"\x02\
|
|
24044
|
-
"\x02\x02\
|
|
24045
|
-
"\
|
|
24046
|
-
"\
|
|
24047
|
-
"\
|
|
24048
|
-
"\
|
|
24049
|
-
"\x02\
|
|
24050
|
-
"
|
|
23887
|
+
"5\x035\x035\x035\x075\u022D\n5\f5\x0E5\u0230\v5\x035\x035\x035\x035\x07" +
|
|
23888
|
+
"5\u0236\n5\f5\x0E5\u0239\v5\x035\x035\x055\u023D\n5\x036\x036\x076\u0241" +
|
|
23889
|
+
"\n6\f6\x0E6\u0244\v6\x036\x066\u0247\n6\r6\x0E6\u0248\x036\x066\u024C" +
|
|
23890
|
+
"\n6\r6\x0E6\u024D\x056\u0250\n6\x037\x037\x037\x038\x038\x038\x039\x03" +
|
|
23891
|
+
"9\x039\x03:\x03:\x03;\x03;\x03<\x03<\x03=\x03=\x03>\x03>\x03?\x03?\x03" +
|
|
23892
|
+
"@\x03@\x03@\x03A\x03A\x03A\x03B\x03B\x03B\x03C\x03C\x03C\x03D\x03D\x03" +
|
|
23893
|
+
"E\x03E\x03E\x03F\x03F\x03F\x03G\x03G\x03H\x03H\x03I\x03I\x03I\x03J\x03" +
|
|
23894
|
+
"J\x03J\x03K\x03K\x03K\x03K\x03L\x03L\x03M\x03M\x03N\x03N\x03O\x03O\x03" +
|
|
23895
|
+
"P\x03P\x03Q\x03Q\x03R\x03R\x03S\x03S\x03T\x03T\x03U\x03U\x03U\x03V\x03" +
|
|
23896
|
+
"V\x03W\x03W\x03X\x06X\u02A3\nX\rX\x0EX\u02A4\x03X\x03X\x03\u0237\x02\x02" +
|
|
23897
|
+
"Y\x03\x02\x03\x05\x02\x04\x07\x02\x05\t\x02\x06\v\x02\x07\r\x02\b\x0F" +
|
|
23898
|
+
"\x02\t\x11\x02\n\x13\x02\v\x15\x02\f\x17\x02\r\x19\x02\x0E\x1B\x02\x0F" +
|
|
23899
|
+
"\x1D\x02\x10\x1F\x02\x11!\x02\x12#\x02\x13%\x02\x14\'\x02\x15)\x02\x16" +
|
|
23900
|
+
"+\x02\x17-\x02\x18/\x02\x191\x02\x1A3\x02\x1B5\x02\x1C7\x02\x1D9\x02\x1E" +
|
|
23901
|
+
";\x02\x1F=\x02 ?\x02!A\x02\"C\x02#E\x02$G\x02%I\x02&K\x02\'M\x02(O\x02" +
|
|
23902
|
+
")Q\x02*S\x02+U\x02,W\x02-Y\x02.[\x02/]\x020_\x021a\x022c\x023e\x024g\x02" +
|
|
23903
|
+
"5i\x026k\x027m\x028o\x029q\x02:s\x02;u\x02<w\x02=y\x02>{\x02?}\x02@\x7F" +
|
|
23904
|
+
"\x02A\x81\x02B\x83\x02C\x85\x02D\x87\x02E\x89\x02F\x8B\x02G\x8D\x02H\x8F" +
|
|
23905
|
+
"\x02I\x91\x02J\x93\x02K\x95\x02L\x97\x02M\x99\x02N\x9B\x02O\x9D\x02P\x9F" +
|
|
23906
|
+
"\x02Q\xA1\x02R\xA3\x02S\xA5\x02T\xA7\x02U\xA9\x02V\xAB\x02W\xAD\x02X\xAF" +
|
|
23907
|
+
"\x02Y\x03\x02\v\x03\x022;\x04\x02GGgg\x04\x02--//\x03\x02$$\x04\x02\f" +
|
|
23908
|
+
"\f\x0F\x0F\x04\x02C\\c|\x06\x022;C\\aac|\x03\x02aa\x05\x02\v\f\x0F\x0F" +
|
|
23909
|
+
"\"\"\x02\u02BC\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02\x02\x07" +
|
|
23910
|
+
"\x03\x02\x02\x02\x02\t\x03\x02\x02\x02\x02\v\x03\x02\x02\x02\x02\r\x03" +
|
|
23911
|
+
"\x02\x02\x02\x02\x0F\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02\x02\x13\x03" +
|
|
23912
|
+
"\x02\x02\x02\x02\x15\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02\x02\x19\x03" +
|
|
23913
|
+
"\x02\x02\x02\x02\x1B\x03\x02\x02\x02\x02\x1D\x03\x02\x02\x02\x02\x1F\x03" +
|
|
23914
|
+
"\x02\x02\x02\x02!\x03\x02\x02\x02\x02#\x03\x02\x02\x02\x02%\x03\x02\x02" +
|
|
23915
|
+
"\x02\x02\'\x03\x02\x02\x02\x02)\x03\x02\x02\x02\x02+\x03\x02\x02\x02\x02" +
|
|
23916
|
+
"-\x03\x02\x02\x02\x02/\x03\x02\x02\x02\x021\x03\x02\x02\x02\x023\x03\x02" +
|
|
23917
|
+
"\x02\x02\x025\x03\x02\x02\x02\x027\x03\x02\x02\x02\x029\x03\x02\x02\x02" +
|
|
23918
|
+
"\x02;\x03\x02\x02\x02\x02=\x03\x02\x02\x02\x02?\x03\x02\x02\x02\x02A\x03" +
|
|
23919
|
+
"\x02\x02\x02\x02C\x03\x02\x02\x02\x02E\x03\x02\x02\x02\x02G\x03\x02\x02" +
|
|
23920
|
+
"\x02\x02I\x03\x02\x02\x02\x02K\x03\x02\x02\x02\x02M\x03\x02\x02\x02\x02" +
|
|
23921
|
+
"O\x03\x02\x02\x02\x02Q\x03\x02\x02\x02\x02S\x03\x02\x02\x02\x02U\x03\x02" +
|
|
23922
|
+
"\x02\x02\x02W\x03\x02\x02\x02\x02Y\x03\x02\x02\x02\x02[\x03\x02\x02\x02" +
|
|
23923
|
+
"\x02]\x03\x02\x02\x02\x02_\x03\x02\x02\x02\x02a\x03\x02\x02\x02\x02c\x03" +
|
|
23924
|
+
"\x02\x02\x02\x02e\x03\x02\x02\x02\x02g\x03\x02\x02\x02\x02i\x03\x02\x02" +
|
|
23925
|
+
"\x02\x02k\x03\x02\x02\x02\x02m\x03\x02\x02\x02\x02o\x03\x02\x02\x02\x02" +
|
|
23926
|
+
"q\x03\x02\x02\x02\x02s\x03\x02\x02\x02\x02u\x03\x02\x02\x02\x02w\x03\x02" +
|
|
23927
|
+
"\x02\x02\x02y\x03\x02\x02\x02\x02{\x03\x02\x02\x02\x02}\x03\x02\x02\x02" +
|
|
23928
|
+
"\x02\x7F\x03\x02\x02\x02\x02\x81\x03\x02\x02\x02\x02\x83\x03\x02\x02\x02" +
|
|
23929
|
+
"\x02\x85\x03\x02\x02\x02\x02\x87\x03\x02\x02\x02\x02\x89\x03\x02\x02\x02" +
|
|
23930
|
+
"\x02\x8B\x03\x02\x02\x02\x02\x8D\x03\x02\x02\x02\x02\x8F\x03\x02\x02\x02" +
|
|
23931
|
+
"\x02\x91\x03\x02\x02\x02\x02\x93\x03\x02\x02\x02\x02\x95\x03\x02\x02\x02" +
|
|
23932
|
+
"\x02\x97\x03\x02\x02\x02\x02\x99\x03\x02\x02\x02\x02\x9B\x03\x02\x02\x02" +
|
|
23933
|
+
"\x02\x9D\x03\x02\x02\x02\x02\x9F\x03\x02\x02\x02\x02\xA1\x03\x02\x02\x02" +
|
|
23934
|
+
"\x02\xA3\x03\x02\x02\x02\x02\xA5\x03\x02\x02\x02\x02\xA7\x03\x02\x02\x02" +
|
|
23935
|
+
"\x02\xA9\x03\x02\x02\x02\x02\xAB\x03\x02\x02\x02\x02\xAD\x03\x02\x02\x02" +
|
|
23936
|
+
"\x02\xAF\x03\x02\x02\x02\x03\xB1\x03\x02\x02\x02\x05\xBA\x03\x02\x02\x02" +
|
|
23937
|
+
"\x07\xC1\x03\x02\x02\x02\t\xC6\x03\x02\x02\x02\v\xCE\x03\x02\x02\x02\r" +
|
|
23938
|
+
"\xD5\x03\x02\x02\x02\x0F\xDC\x03\x02\x02\x02\x11\xE0\x03\x02\x02\x02\x13" +
|
|
23939
|
+
"\xE5\x03\x02\x02\x02\x15\xEF\x03\x02\x02\x02\x17\xF6\x03\x02\x02\x02\x19" +
|
|
23940
|
+
"\xFE\x03\x02\x02\x02\x1B\u0105\x03\x02\x02\x02\x1D\u010B\x03\x02\x02\x02" +
|
|
23941
|
+
"\x1F\u0113\x03\x02\x02\x02!\u011A\x03\x02\x02\x02#\u0123\x03\x02\x02\x02" +
|
|
23942
|
+
"%\u012D\x03\x02\x02\x02\'\u0135\x03\x02\x02\x02)\u013B\x03\x02\x02\x02" +
|
|
23943
|
+
"+\u0141\x03\x02\x02\x02-\u0144\x03\x02\x02\x02/\u0149\x03\x02\x02\x02" +
|
|
23944
|
+
"1\u0150\x03\x02\x02\x023\u0156\x03\x02\x02\x025\u015C\x03\x02\x02\x02" +
|
|
23945
|
+
"7\u0162\x03\x02\x02\x029\u0169\x03\x02\x02\x02;\u016D\x03\x02\x02\x02" +
|
|
23946
|
+
"=\u0176\x03\x02\x02\x02?\u017B\x03\x02\x02\x02A\u0181\x03\x02\x02\x02" +
|
|
23947
|
+
"C\u018A\x03\x02\x02\x02E\u0193\x03\x02\x02\x02G\u0199\x03\x02\x02\x02" +
|
|
23948
|
+
"I\u019C\x03\x02\x02\x02K\u01A2\x03\x02\x02\x02M\u01A9\x03\x02\x02\x02" +
|
|
23949
|
+
"O\u01AF\x03\x02\x02\x02Q\u01B6\x03\x02\x02\x02S\u01BA\x03\x02\x02\x02" +
|
|
23950
|
+
"U\u01BF\x03\x02\x02\x02W\u01C5\x03\x02\x02\x02Y\u01CC\x03\x02\x02\x02" +
|
|
23951
|
+
"[\u01D1\x03\x02\x02\x02]\u01D6\x03\x02\x02\x02_\u01DB\x03\x02\x02\x02" +
|
|
23952
|
+
"a\u01E5\x03\x02\x02\x02c\u0212\x03\x02\x02\x02e\u021D\x03\x02\x02\x02" +
|
|
23953
|
+
"g\u021F\x03\x02\x02\x02i\u023C\x03\x02\x02\x02k\u024F\x03\x02\x02\x02" +
|
|
23954
|
+
"m\u0251\x03\x02\x02\x02o\u0254\x03\x02\x02\x02q\u0257\x03\x02\x02\x02" +
|
|
23955
|
+
"s\u025A\x03\x02\x02\x02u\u025C\x03\x02\x02\x02w\u025E\x03\x02\x02\x02" +
|
|
23956
|
+
"y\u0260\x03\x02\x02\x02{\u0262\x03\x02\x02\x02}\u0264\x03\x02\x02\x02" +
|
|
23957
|
+
"\x7F\u0266\x03\x02\x02\x02\x81\u0269\x03\x02\x02\x02\x83\u026C\x03\x02" +
|
|
23958
|
+
"\x02\x02\x85\u026F\x03\x02\x02\x02\x87\u0272\x03\x02\x02\x02\x89\u0274" +
|
|
23959
|
+
"\x03\x02\x02\x02\x8B\u0277\x03\x02\x02\x02\x8D\u027A\x03\x02\x02\x02\x8F" +
|
|
23960
|
+
"\u027C\x03\x02\x02\x02\x91\u027E\x03\x02\x02\x02\x93\u0281\x03\x02\x02" +
|
|
23961
|
+
"\x02\x95\u0284\x03\x02\x02\x02\x97\u0288\x03\x02\x02\x02\x99\u028A\x03" +
|
|
23962
|
+
"\x02\x02\x02\x9B\u028C\x03\x02\x02\x02\x9D\u028E\x03\x02\x02\x02\x9F\u0290" +
|
|
23963
|
+
"\x03\x02\x02\x02\xA1\u0292\x03\x02\x02\x02\xA3\u0294\x03\x02\x02\x02\xA5" +
|
|
23964
|
+
"\u0296\x03\x02\x02\x02\xA7\u0298\x03\x02\x02\x02\xA9\u029A\x03\x02\x02" +
|
|
23965
|
+
"\x02\xAB\u029D\x03\x02\x02\x02\xAD\u029F\x03\x02\x02\x02\xAF\u02A2\x03" +
|
|
23966
|
+
"\x02\x02\x02\xB1\xB2\x07g\x02\x02\xB2\xB3\x07z\x02\x02\xB3\xB4\x07v\x02" +
|
|
23967
|
+
"\x02\xB4\xB5\x07g\x02\x02\xB5\xB6\x07t\x02\x02\xB6\xB7\x07p\x02\x02\xB7" +
|
|
23968
|
+
"\xB8\x07c\x02\x02\xB8\xB9\x07n\x02\x02\xB9\x04\x03\x02\x02\x02\xBA\xBB" +
|
|
23969
|
+
"\x07p\x02\x02\xBB\xBC\x07c\x02\x02\xBC\xBD\x07v\x02\x02\xBD\xBE\x07k\x02" +
|
|
23970
|
+
"\x02\xBE\xBF\x07x\x02\x02\xBF\xC0\x07g\x02\x02\xC0\x06\x03\x02\x02\x02" +
|
|
23971
|
+
"\xC1\xC2\x07r\x02\x02\xC2\xC3\x07w\x02\x02\xC3\xC4\x07t\x02\x02\xC4\xC5" +
|
|
23972
|
+
"\x07g\x02\x02\xC5\b\x03\x02\x02\x02\xC6\xC7\x07f\x02\x02\xC7\xC8\x07g" +
|
|
23973
|
+
"\x02\x02\xC8\xC9\x07e\x02\x02\xC9\xCA\x07n\x02\x02\xCA\xCB\x07c\x02\x02" +
|
|
23974
|
+
"\xCB\xCC\x07t\x02\x02\xCC\xCD\x07g\x02\x02\xCD\n\x03\x02\x02\x02\xCE\xCF" +
|
|
23975
|
+
"\x07k\x02\x02\xCF\xD0\x07o\x02\x02\xD0\xD1\x07r\x02\x02\xD1\xD2\x07q\x02" +
|
|
23976
|
+
"\x02\xD2\xD3\x07t\x02\x02\xD3\xD4\x07v\x02\x02\xD4\f\x03\x02\x02\x02\xD5" +
|
|
23977
|
+
"\xD6\x07g\x02\x02\xD6\xD7\x07z\x02\x02\xD7\xD8\x07r\x02\x02\xD8\xD9\x07" +
|
|
23978
|
+
"q\x02\x02\xD9\xDA\x07t\x02\x02\xDA\xDB\x07v\x02\x02\xDB\x0E\x03\x02\x02" +
|
|
23979
|
+
"\x02\xDC\xDD\x07w\x02\x02\xDD\xDE\x07u\x02\x02\xDE\xDF\x07g\x02\x02\xDF" +
|
|
23980
|
+
"\x10\x03\x02\x02\x02\xE0\xE1\x07h\x02\x02\xE1\xE2\x07t\x02\x02\xE2\xE3" +
|
|
23981
|
+
"\x07q\x02\x02\xE3\xE4\x07o\x02\x02\xE4\x12\x03\x02\x02\x02\xE5\xE6\x07" +
|
|
23982
|
+
"p\x02\x02\xE6\xE7\x07c\x02\x02\xE7\xE8\x07o\x02\x02\xE8\xE9\x07g\x02\x02" +
|
|
23983
|
+
"\xE9\xEA\x07u\x02\x02\xEA\xEB\x07r\x02\x02\xEB\xEC\x07c\x02\x02\xEC\xED" +
|
|
23984
|
+
"\x07e\x02\x02\xED\xEE\x07g\x02\x02\xEE\x14\x03\x02\x02\x02\xEF\xF0\x07" +
|
|
23985
|
+
"f\x02\x02\xF0\xF1\x07g\x02\x02\xF1\xF2\x07h\x02\x02\xF2\xF3\x07k\x02\x02" +
|
|
23986
|
+
"\xF3\xF4\x07p\x02\x02\xF4\xF5\x07g\x02\x02\xF5\x16\x03\x02\x02\x02\xF6" +
|
|
23987
|
+
"\xF7\x07r\x02\x02\xF7\xF8\x07t\x02\x02\xF8\xF9\x07q\x02\x02\xF9\xFA\x07" +
|
|
23988
|
+
"i\x02\x02\xFA\xFB\x07t\x02\x02\xFB\xFC\x07c\x02\x02\xFC\xFD\x07o\x02\x02" +
|
|
23989
|
+
"\xFD\x18\x03\x02\x02\x02\xFE\xFF\x07g\x02\x02\xFF\u0100\x07z\x02\x02\u0100" +
|
|
23990
|
+
"\u0101\x07r\x02\x02\u0101\u0102\x07q\x02\x02\u0102\u0103\x07u\x02\x02" +
|
|
23991
|
+
"\u0103\u0104\x07g\x02\x02\u0104\x1A\x03\x02\x02\x02\u0105\u0106\x07i\x02" +
|
|
23992
|
+
"\x02\u0106\u0107\x07t\x02\x02\u0107\u0108\x07q\x02\x02\u0108\u0109\x07" +
|
|
23993
|
+
"w\x02\x02\u0109\u010A\x07r\x02\x02\u010A\x1C\x03\x02\x02\x02\u010B\u010C" +
|
|
23994
|
+
"\x07f\x02\x02\u010C\u010D\x07g\x02\x02\u010D\u010E\x07h\x02\x02\u010E" +
|
|
23995
|
+
"\u010F\x07c\x02\x02\u010F\u0110\x07w\x02\x02\u0110\u0111\x07n\x02\x02" +
|
|
23996
|
+
"\u0111\u0112\x07v\x02\x02\u0112\x1E\x03\x02\x02\x02\u0113\u0114\x07u\x02" +
|
|
23997
|
+
"\x02\u0114\u0115\x07y\x02\x02\u0115\u0116\x07k\x02\x02\u0116\u0117\x07" +
|
|
23998
|
+
"v\x02\x02\u0117\u0118\x07e\x02\x02\u0118\u0119\x07j\x02\x02\u0119 \x03" +
|
|
23999
|
+
"\x02\x02\x02\u011A\u011B\x07h\x02\x02\u011B\u011C\x07w\x02\x02\u011C\u011D" +
|
|
24000
|
+
"\x07p\x02\x02\u011D\u011E\x07e\x02\x02\u011E\u011F\x07v\x02\x02\u011F" +
|
|
24001
|
+
"\u0120\x07k\x02\x02\u0120\u0121\x07q\x02\x02\u0121\u0122\x07p\x02\x02" +
|
|
24002
|
+
"\u0122\"\x03\x02\x02\x02\u0123\u0124\x07k\x02\x02\u0124\u0125\x07p\x02" +
|
|
24003
|
+
"\x02\u0125\u0126\x07v\x02\x02\u0126\u0127\x07g\x02\x02\u0127\u0128\x07" +
|
|
24004
|
+
"t\x02\x02\u0128\u0129\x07h\x02\x02\u0129\u012A\x07c\x02\x02\u012A\u012B" +
|
|
24005
|
+
"\x07e\x02\x02\u012B\u012C\x07g\x02\x02\u012C$\x03\x02\x02\x02\u012D\u012E" +
|
|
24006
|
+
"\x07g\x02\x02\u012E\u012F\x07z\x02\x02\u012F\u0130\x07v\x02\x02\u0130" +
|
|
24007
|
+
"\u0131\x07g\x02\x02\u0131\u0132\x07p\x02\x02\u0132\u0133\x07f\x02\x02" +
|
|
24008
|
+
"\u0133\u0134\x07u\x02\x02\u0134&\x03\x02\x02\x02\u0135\u0136\x07u\x02" +
|
|
24009
|
+
"\x02\u0136\u0137\x07v\x02\x02\u0137\u0138\x07c\x02\x02\u0138\u0139\x07" +
|
|
24010
|
+
"v\x02\x02\u0139\u013A\x07g\x02\x02\u013A(\x03\x02\x02\x02\u013B\u013C" +
|
|
24011
|
+
"\x07g\x02\x02\u013C\u013D\x07x\x02\x02\u013D\u013E\x07g\x02\x02\u013E" +
|
|
24012
|
+
"\u013F\x07p\x02\x02\u013F\u0140\x07v\x02\x02\u0140*\x03\x02\x02\x02\u0141" +
|
|
24013
|
+
"\u0142\x07k\x02\x02\u0142\u0143\x07h\x02\x02\u0143,\x03\x02\x02\x02\u0144" +
|
|
24014
|
+
"\u0145\x07g\x02\x02\u0145\u0146\x07n\x02\x02\u0146\u0147\x07u\x02\x02" +
|
|
24015
|
+
"\u0147\u0148\x07g\x02\x02\u0148.\x03\x02\x02\x02\u0149\u014A\x07t\x02" +
|
|
24016
|
+
"\x02\u014A\u014B\x07g\x02\x02\u014B\u014C\x07v\x02\x02\u014C\u014D\x07" +
|
|
24017
|
+
"w\x02\x02\u014D\u014E\x07t\x02\x02\u014E\u014F\x07p\x02\x02\u014F0\x03" +
|
|
24018
|
+
"\x02\x02\x02\u0150\u0151\x07g\x02\x02\u0151\u0152\x07x\x02\x02\u0152\u0153" +
|
|
24019
|
+
"\x07g\x02\x02\u0153\u0154\x07t\x02\x02\u0154\u0155\x07{\x02\x02\u0155" +
|
|
24020
|
+
"2\x03\x02\x02\x02\u0156\u0157\x07n\x02\x02\u0157\u0158\x07k\x02\x02\u0158" +
|
|
24021
|
+
"\u0159\x07o\x02\x02\u0159\u015A\x07k\x02\x02\u015A\u015B\x07v\x02\x02" +
|
|
24022
|
+
"\u015B4\x03\x02\x02\x02\u015C\u015D\x07c\x02\x02\u015D\u015E\x07h\x02" +
|
|
24023
|
+
"\x02\u015E\u015F\x07v\x02\x02\u015F\u0160\x07g\x02\x02\u0160\u0161\x07" +
|
|
24024
|
+
"t\x02\x02\u01616\x03\x02\x02\x02\u0162\u0163\x07e\x02\x02\u0163\u0164" +
|
|
24025
|
+
"\x07c\x02\x02\u0164\u0165\x07p\x02\x02\u0165\u0166\x07e\x02\x02\u0166" +
|
|
24026
|
+
"\u0167\x07g\x02\x02\u0167\u0168\x07n\x02\x02\u01688\x03\x02\x02\x02\u0169" +
|
|
24027
|
+
"\u016A\x07h\x02\x02\u016A\u016B\x07q\x02\x02\u016B\u016C\x07t\x02\x02" +
|
|
24028
|
+
"\u016C:\x03\x02\x02\x02\u016D\u016E\x07g\x02\x02\u016E\u016F\x07x\x02" +
|
|
24029
|
+
"\x02\u016F\u0170\x07c\x02\x02\u0170\u0171\x07n\x02\x02\u0171\u0172\x07" +
|
|
24030
|
+
"w\x02\x02\u0172\u0173\x07c\x02\x02\u0173\u0174\x07v\x02\x02\u0174\u0175" +
|
|
24031
|
+
"\x07g\x02\x02\u0175<\x03\x02\x02\x02\u0176\u0177\x07e\x02\x02\u0177\u0178" +
|
|
24032
|
+
"\x07c\x02\x02\u0178\u0179\x07u\x02\x02\u0179\u017A\x07g\x02\x02\u017A" +
|
|
24033
|
+
">\x03\x02\x02\x02\u017B\u017C\x07d\x02\x02\u017C\u017D\x07t\x02\x02\u017D" +
|
|
24034
|
+
"\u017E\x07g\x02\x02\u017E\u017F\x07c\x02\x02\u017F\u0180\x07m\x02\x02" +
|
|
24035
|
+
"\u0180@\x03\x02\x02\x02\u0181\u0182\x07e\x02\x02\u0182\u0183\x07q\x02" +
|
|
24036
|
+
"\x02\u0183\u0184\x07p\x02\x02\u0184\u0185\x07v\x02\x02\u0185\u0186\x07" +
|
|
24037
|
+
"k\x02\x02\u0186\u0187\x07p\x02\x02\u0187\u0188\x07w\x02\x02\u0188\u0189" +
|
|
24038
|
+
"\x07g\x02\x02\u0189B\x03\x02\x02\x02\u018A\u018B\x07h\x02\x02\u018B\u018C" +
|
|
24039
|
+
"\x07c\x02\x02\u018C\u018D\x07n\x02\x02\u018D\u018E\x07n\x02\x02\u018E" +
|
|
24040
|
+
"\u018F\x07d\x02\x02\u018F\u0190\x07c\x02\x02\u0190\u0191\x07e\x02\x02" +
|
|
24041
|
+
"\u0191\u0192\x07m\x02\x02\u0192D\x03\x02\x02\x02\u0193\u0194\x07e\x02" +
|
|
24042
|
+
"\x02\u0194\u0195\x07c\x02\x02\u0195\u0196\x07v\x02\x02\u0196\u0197\x07" +
|
|
24043
|
+
"e\x02\x02\u0197\u0198\x07j\x02\x02\u0198F\x03\x02\x02\x02\u0199\u019A" +
|
|
24044
|
+
"\x07c\x02\x02\u019A\u019B\x07u\x02\x02\u019BH\x03\x02\x02\x02\u019C\u019D" +
|
|
24045
|
+
"\x07e\x02\x02\u019D\u019E\x07q\x02\x02\u019E\u019F\x07p\x02\x02\u019F" +
|
|
24046
|
+
"\u01A0\x07u\x02\x02\u01A0\u01A1\x07v\x02\x02\u01A1J\x03\x02\x02\x02\u01A2" +
|
|
24047
|
+
"\u01A3\x07q\x02\x02\u01A3\u01A4\x07d\x02\x02\u01A4\u01A5\x07l\x02\x02" +
|
|
24048
|
+
"\u01A5\u01A6\x07g\x02\x02\u01A6\u01A7\x07e\x02\x02\u01A7\u01A8\x07v\x02" +
|
|
24049
|
+
"\x02\u01A8L\x03\x02\x02\x02\u01A9\u01AA\x07c\x02\x02\u01AA\u01AB\x07t" +
|
|
24050
|
+
"\x02\x02\u01AB\u01AC\x07t\x02\x02\u01AC\u01AD\x07c\x02\x02\u01AD\u01AE" +
|
|
24051
|
+
"\x07{\x02\x02\u01AEN\x03\x02\x02\x02\u01AF\u01B0\x07u\x02\x02\u01B0\u01B1" +
|
|
24051
24052
|
"\x07v\x02\x02\u01B1\u01B2\x07t\x02\x02\u01B2\u01B3\x07k\x02\x02\u01B3" +
|
|
24052
24053
|
"\u01B4\x07p\x02\x02\u01B4\u01B5\x07i\x02\x02\u01B5P\x03\x02\x02\x02\u01B6" +
|
|
24053
24054
|
"\u01B7\x07k\x02\x02\u01B7\u01B8\x07p\x02\x02\u01B8\u01B9\x07v\x02\x02" +
|
|
@@ -24090,59 +24091,65 @@ BattleScriptLexer._serializedATNSegment0 = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u
|
|
|
24090
24091
|
"\x02\x02\x02\u0211\u0213\x03\x02\x02\x02\u0212\u01EA\x03\x02\x02\x02\u0212" +
|
|
24091
24092
|
"\u0201\x03\x02\x02\x02\u0213d\x03\x02\x02\x02\u0214\u0215\x07v\x02\x02" +
|
|
24092
24093
|
"\u0215\u0216\x07t\x02\x02\u0216\u0217\x07w\x02\x02\u0217\u021E\x07g\x02" +
|
|
24093
|
-
"\x02\u0218\u0219\x07h\x02\x02\u0219\u021A\x07c
|
|
24094
|
-
|
|
24095
|
-
"\x03\x02\x02\x02\u021D\u0218\x03\x02\x02\x02
|
|
24096
|
-
|
|
24097
|
-
"\u0220\x03\x02\x02\x02\u0222\u0225\x03\x02\x02\x02\u0223\u0221
|
|
24098
|
-
"\x02\x02\u0223\u0224\x03\x02\x02\x02\u0224\u0226\x03\x02\x02\x02
|
|
24099
|
-
"\u0223\x03\x02\x02\x02\u0226\u0227\x07$\x02\x02\u0227h\x03\x02\x02
|
|
24100
|
-
"\u0228\
|
|
24101
|
-
"\x02\x02\u022B\
|
|
24102
|
-
"\
|
|
24103
|
-
"\x02\u022F\
|
|
24104
|
-
"\
|
|
24105
|
-
"\u0234\
|
|
24106
|
-
"\x02\x02\
|
|
24107
|
-
"\x03\x02\x02\x02\u0239\u0237\x03\x02\x02\x02\
|
|
24108
|
-
"\
|
|
24109
|
-
"\x02\x02\
|
|
24110
|
-
"\
|
|
24111
|
-
"\x02\
|
|
24112
|
-
"\
|
|
24113
|
-
"\
|
|
24114
|
-
"\
|
|
24115
|
-
"\
|
|
24116
|
-
"\x02\
|
|
24117
|
-
"\
|
|
24118
|
-
"\x03\x02\x02\x02\
|
|
24119
|
-
"\
|
|
24120
|
-
"\
|
|
24121
|
-
"\x02\
|
|
24122
|
-
"\x02\x02\
|
|
24123
|
-
"\x02\x02\
|
|
24124
|
-
"\
|
|
24125
|
-
"\
|
|
24126
|
-
"\
|
|
24127
|
-
"
|
|
24128
|
-
"\x07
|
|
24129
|
-
"\
|
|
24130
|
-
"
|
|
24131
|
-
"\x02\
|
|
24132
|
-
"
|
|
24133
|
-
"\x03\x02\x02\x02\
|
|
24134
|
-
"\
|
|
24135
|
-
"\
|
|
24136
|
-
"\x02\x02\
|
|
24137
|
-
"\
|
|
24138
|
-
"\
|
|
24139
|
-
"\
|
|
24140
|
-
"\x02\x02\
|
|
24141
|
-
"\x03\x02\x02\x02\
|
|
24142
|
-
"\
|
|
24143
|
-
"\x02\x02\
|
|
24144
|
-
"\
|
|
24145
|
-
"\x02"
|
|
24094
|
+
"\x02\u0218\u0219\x07h\x02\x02\u0219\u021A\x07c";
|
|
24095
|
+
BattleScriptLexer._serializedATNSegment1 = "\x02\x02\u021A\u021B\x07n\x02\x02\u021B\u021C\x07u\x02\x02\u021C\u021E" +
|
|
24096
|
+
"\x07g\x02\x02\u021D\u0214\x03\x02\x02\x02\u021D\u0218\x03\x02\x02\x02" +
|
|
24097
|
+
"\u021Ef\x03\x02\x02\x02\u021F\u0223\x07$\x02\x02\u0220\u0222\n\x05\x02" +
|
|
24098
|
+
"\x02\u0221\u0220\x03\x02\x02\x02\u0222\u0225\x03\x02\x02\x02\u0223\u0221" +
|
|
24099
|
+
"\x03\x02\x02\x02\u0223\u0224\x03\x02\x02\x02\u0224\u0226\x03\x02\x02\x02" +
|
|
24100
|
+
"\u0225\u0223\x03\x02\x02\x02\u0226\u0227\x07$\x02\x02\u0227h\x03\x02\x02" +
|
|
24101
|
+
"\x02\u0228\u0229\x071\x02\x02\u0229\u022A\x071\x02\x02\u022A\u022E\x03" +
|
|
24102
|
+
"\x02\x02\x02\u022B\u022D\n\x06\x02\x02\u022C\u022B\x03\x02\x02\x02\u022D" +
|
|
24103
|
+
"\u0230\x03\x02\x02\x02\u022E\u022C\x03\x02\x02\x02\u022E\u022F\x03\x02" +
|
|
24104
|
+
"\x02\x02\u022F\u023D\x03\x02\x02\x02\u0230\u022E\x03\x02\x02\x02\u0231" +
|
|
24105
|
+
"\u0232\x071\x02\x02\u0232\u0233\x07,\x02\x02\u0233\u0237\x03\x02\x02\x02" +
|
|
24106
|
+
"\u0234\u0236\v\x02\x02\x02\u0235\u0234\x03\x02\x02\x02\u0236\u0239\x03" +
|
|
24107
|
+
"\x02\x02\x02\u0237\u0238\x03\x02\x02\x02\u0237\u0235\x03\x02\x02\x02\u0238" +
|
|
24108
|
+
"\u023A\x03\x02\x02\x02\u0239\u0237\x03\x02\x02\x02\u023A\u023B\x07,\x02" +
|
|
24109
|
+
"\x02\u023B\u023D\x071\x02\x02\u023C\u0228\x03\x02\x02\x02\u023C\u0231" +
|
|
24110
|
+
"\x03\x02\x02\x02\u023Dj\x03\x02\x02\x02\u023E\u0242\t\x07\x02\x02\u023F" +
|
|
24111
|
+
"\u0241\t\b\x02\x02\u0240\u023F\x03\x02\x02\x02\u0241\u0244\x03\x02\x02" +
|
|
24112
|
+
"\x02\u0242\u0240\x03\x02\x02\x02\u0242\u0243\x03\x02\x02\x02\u0243\u0250" +
|
|
24113
|
+
"\x03\x02\x02\x02\u0244\u0242\x03\x02\x02\x02\u0245\u0247\t\t\x02\x02\u0246" +
|
|
24114
|
+
"\u0245\x03\x02\x02\x02\u0247\u0248\x03\x02\x02\x02\u0248\u0246\x03\x02" +
|
|
24115
|
+
"\x02\x02\u0248\u0249\x03\x02\x02\x02\u0249\u024B\x03\x02\x02\x02\u024A" +
|
|
24116
|
+
"\u024C\t\b\x02\x02\u024B\u024A\x03\x02\x02\x02\u024C\u024D\x03\x02\x02" +
|
|
24117
|
+
"\x02\u024D\u024B\x03\x02\x02\x02\u024D\u024E\x03\x02\x02\x02\u024E\u0250" +
|
|
24118
|
+
"\x03\x02\x02\x02\u024F\u023E\x03\x02\x02\x02\u024F\u0246\x03\x02\x02\x02" +
|
|
24119
|
+
"\u0250l\x03\x02\x02\x02\u0251\u0252\x07?\x02\x02\u0252\u0253\x07@\x02" +
|
|
24120
|
+
"\x02\u0253n\x03\x02\x02\x02\u0254\u0255\x07-\x02\x02\u0255\u0256\x07-" +
|
|
24121
|
+
"\x02\x02\u0256p\x03\x02\x02\x02\u0257\u0258\x07/\x02\x02\u0258\u0259\x07" +
|
|
24122
|
+
"/\x02\x02\u0259r\x03\x02\x02\x02\u025A\u025B\x07-\x02\x02\u025Bt\x03\x02" +
|
|
24123
|
+
"\x02\x02\u025C\u025D\x07/\x02\x02\u025Dv\x03\x02\x02\x02\u025E\u025F\x07" +
|
|
24124
|
+
"1\x02\x02\u025Fx\x03\x02\x02\x02\u0260\u0261\x07,\x02\x02\u0261z\x03\x02" +
|
|
24125
|
+
"\x02\x02\u0262\u0263\x07\'\x02\x02\u0263|\x03\x02\x02\x02\u0264\u0265" +
|
|
24126
|
+
"\x07?\x02\x02\u0265~\x03\x02\x02\x02\u0266\u0267\x07-\x02\x02\u0267\u0268" +
|
|
24127
|
+
"\x07?\x02\x02\u0268\x80\x03\x02\x02\x02\u0269\u026A\x07/\x02\x02\u026A" +
|
|
24128
|
+
"\u026B\x07?\x02\x02\u026B\x82\x03\x02\x02\x02\u026C\u026D\x07(\x02\x02" +
|
|
24129
|
+
"\u026D\u026E\x07(\x02\x02\u026E\x84\x03\x02\x02\x02\u026F\u0270\x07~\x02" +
|
|
24130
|
+
"\x02\u0270\u0271\x07~\x02\x02\u0271\x86\x03\x02\x02\x02\u0272\u0273\x07" +
|
|
24131
|
+
"#\x02\x02\u0273\x88\x03\x02\x02\x02\u0274\u0275\x07?\x02\x02\u0275\u0276" +
|
|
24132
|
+
"\x07?\x02\x02\u0276\x8A\x03\x02\x02\x02\u0277\u0278\x07#\x02\x02\u0278" +
|
|
24133
|
+
"\u0279\x07?\x02\x02\u0279\x8C\x03\x02\x02\x02\u027A\u027B\x07@\x02\x02" +
|
|
24134
|
+
"\u027B\x8E\x03\x02\x02\x02\u027C\u027D\x07>\x02\x02\u027D\x90\x03\x02" +
|
|
24135
|
+
"\x02\x02\u027E\u027F\x07@\x02\x02\u027F\u0280\x07?\x02\x02\u0280\x92\x03" +
|
|
24136
|
+
"\x02\x02\x02\u0281\u0282\x07>\x02\x02\u0282\u0283\x07?\x02\x02\u0283\x94" +
|
|
24137
|
+
"\x03\x02\x02\x02\u0284\u0285\x070\x02\x02\u0285\u0286\x070\x02\x02\u0286" +
|
|
24138
|
+
"\u0287\x070\x02\x02\u0287\x96\x03\x02\x02\x02\u0288\u0289\x070\x02\x02" +
|
|
24139
|
+
"\u0289\x98\x03\x02\x02\x02\u028A\u028B\x07.\x02\x02\u028B\x9A\x03\x02" +
|
|
24140
|
+
"\x02\x02\u028C\u028D\x07a\x02\x02\u028D\x9C\x03\x02\x02\x02\u028E\u028F" +
|
|
24141
|
+
"\x07*\x02\x02\u028F\x9E\x03\x02\x02\x02\u0290\u0291\x07+\x02\x02\u0291" +
|
|
24142
|
+
"\xA0\x03\x02\x02\x02\u0292\u0293\x07}\x02\x02\u0293\xA2\x03\x02\x02\x02" +
|
|
24143
|
+
"\u0294\u0295\x07\x7F\x02\x02\u0295\xA4\x03\x02\x02\x02\u0296\u0297\x07" +
|
|
24144
|
+
"]\x02\x02\u0297\xA6\x03\x02\x02\x02\u0298\u0299\x07_\x02\x02\u0299\xA8" +
|
|
24145
|
+
"\x03\x02\x02\x02\u029A\u029B\x07<\x02\x02\u029B\u029C\x07<\x02\x02\u029C" +
|
|
24146
|
+
"\xAA\x03\x02\x02\x02\u029D\u029E\x07=\x02\x02\u029E\xAC\x03\x02\x02\x02" +
|
|
24147
|
+
"\u029F\u02A0\x07<\x02\x02\u02A0\xAE\x03\x02\x02\x02\u02A1\u02A3\t\n\x02" +
|
|
24148
|
+
"\x02\u02A2\u02A1\x03\x02\x02\x02\u02A3\u02A4\x03\x02\x02\x02\u02A4\u02A2" +
|
|
24149
|
+
"\x03\x02\x02\x02\u02A4\u02A5\x03\x02\x02\x02\u02A5\u02A6\x03\x02\x02\x02" +
|
|
24150
|
+
"\u02A6\u02A7\bX\x02\x02\u02A7\xB0\x03\x02\x02\x02\x18\x02\u01EC\u01F2" +
|
|
24151
|
+
"\u01F4\u01F8\u01FD\u01FF\u0205\u0209\u020E\u0210\u0212\u021D\u0223\u022E" +
|
|
24152
|
+
"\u0237\u023C\u0242\u0248\u024D\u024F\u02A4\x03\b\x02\x02";
|
|
24146
24153
|
BattleScriptLexer._serializedATN = UtilsExports.join([
|
|
24147
24154
|
BattleScriptLexer._serializedATNSegment0,
|
|
24148
24155
|
BattleScriptLexer._serializedATNSegment1,
|
|
@@ -24365,10 +24372,10 @@ class BattleScriptFromAST {
|
|
|
24365
24372
|
return this.multiLine(this.inline(`${this.getTokenLiteralText(BattleScriptLexer.INTERFACE)} `, this.visit(node.name), node.extends ? ` ${this.getTokenLiteralText(BattleScriptLexer.EXTENDS)} ${this.visit(node.extends)}` : null, " {"), this.newLine(), this.indent(), this.visit(node.properties), this.dedent(), "}", this.newLine());
|
|
24366
24373
|
}
|
|
24367
24374
|
visitStateDeclaration(node, options) {
|
|
24368
|
-
return this.multiLine(this.inline(`${this.getTokenLiteralText(BattleScriptLexer.STATE)} `, this.visit(node.condition)), this.visit(node.body), node.comment ? "
|
|
24375
|
+
return this.multiLine(this.inline(`${this.getTokenLiteralText(BattleScriptLexer.STATE)} `, this.visit(node.condition)), this.visit(node.body), node.comment ? " // " + node.comment : null, this.newLine(), this.newLine());
|
|
24369
24376
|
}
|
|
24370
24377
|
visitEventDeclaration(node, options = {}) {
|
|
24371
|
-
return this.multiLine(this.inline(`${this.getTokenLiteralText(BattleScriptLexer.EVENT)} `, this.visit(node.event), "(", this.visit(node.arguments), ") => "), this.visit(node.body), node.comment ? "
|
|
24378
|
+
return this.multiLine(this.inline(`${this.getTokenLiteralText(BattleScriptLexer.EVENT)} `, this.visit(node.event), "(", this.visit(node.arguments), ") => "), this.visit(node.body), node.comment ? " // " + node.comment : null, this.newLine());
|
|
24372
24379
|
}
|
|
24373
24380
|
visitBlockStatement(node, options = {}) {
|
|
24374
24381
|
return this.raw("{", this.newLine(), this.indent(), this.visit(node.body), this.dedent(), this.inline("}"));
|
|
@@ -24447,13 +24454,13 @@ class BattleScriptFromAST {
|
|
|
24447
24454
|
return this.raw(this.inline(`${this.getTokenLiteralText(BattleScriptLexer.FALLBACK)}`, " ", this.visit(node.body), this.newLine()));
|
|
24448
24455
|
}
|
|
24449
24456
|
visitConstantDeclaration(node, options = {}) {
|
|
24450
|
-
return this.inline(this.getTokenLiteralText(BattleScriptLexer.CONST), " ", this.commaSeparatedList(node.declarations), ";", node.comment ? "
|
|
24457
|
+
return this.inline(this.getTokenLiteralText(BattleScriptLexer.CONST), " ", this.commaSeparatedList(node.declarations), ";", node.comment ? " // " + node.comment : null, this.newLine());
|
|
24451
24458
|
}
|
|
24452
24459
|
visitConstantDeclarator(node, options = {}) {
|
|
24453
24460
|
return this.raw(this.visit(node.type), " ", this.visit(node.id), node.init ? " = " + this.visit(node.init) : null);
|
|
24454
24461
|
}
|
|
24455
24462
|
visitVariableDeclaration(node, options = {}) {
|
|
24456
|
-
return this.inline(this.commaSeparatedList(node.declarations), ";", node.comment ? "
|
|
24463
|
+
return this.inline(this.commaSeparatedList(node.declarations), ";", node.comment ? " // " + node.comment : null, this.newLine());
|
|
24457
24464
|
}
|
|
24458
24465
|
visitVariableDeclarator(node, options = {}) {
|
|
24459
24466
|
return this.raw(this.visit(node.type), " ", this.visit(node.id), node.init ? " = " + this.visit(node.init) : null);
|
|
@@ -24477,7 +24484,7 @@ class BattleScriptFromAST {
|
|
|
24477
24484
|
return this.inline(node.text, this.newLine());
|
|
24478
24485
|
}
|
|
24479
24486
|
visitReturn(node, options) {
|
|
24480
|
-
return this.inline(this.getTokenLiteralText(BattleScriptLexer.RETURN), node.argument !== null ? " " + this.visit(node.argument) : null, ";", node.comment ? "
|
|
24487
|
+
return this.inline(this.getTokenLiteralText(BattleScriptLexer.RETURN), node.argument !== null ? " " + this.visit(node.argument) : null, ";", node.comment ? " // " + node.comment : null, this.newLine());
|
|
24481
24488
|
}
|
|
24482
24489
|
visitLiteral(node, options) {
|
|
24483
24490
|
return node.raw;
|
|
@@ -25772,7 +25779,7 @@ var body$3 = [
|
|
|
25772
25779
|
kind: "FUNCTION_DECLARATION",
|
|
25773
25780
|
returnType: {
|
|
25774
25781
|
kind: "DATA_TYPE",
|
|
25775
|
-
value: "
|
|
25782
|
+
value: "void",
|
|
25776
25783
|
meta: {
|
|
25777
25784
|
start: {
|
|
25778
25785
|
line: 1,
|
|
@@ -25781,8 +25788,8 @@ var body$3 = [
|
|
|
25781
25788
|
},
|
|
25782
25789
|
stop: {
|
|
25783
25790
|
line: 1,
|
|
25784
|
-
column:
|
|
25785
|
-
offset:
|
|
25791
|
+
column: 11,
|
|
25792
|
+
offset: 10
|
|
25786
25793
|
}
|
|
25787
25794
|
}
|
|
25788
25795
|
},
|
|
@@ -25792,13 +25799,13 @@ var body$3 = [
|
|
|
25792
25799
|
meta: {
|
|
25793
25800
|
start: {
|
|
25794
25801
|
line: 1,
|
|
25795
|
-
column:
|
|
25796
|
-
offset:
|
|
25802
|
+
column: 12,
|
|
25803
|
+
offset: 12
|
|
25797
25804
|
},
|
|
25798
25805
|
stop: {
|
|
25799
25806
|
line: 1,
|
|
25800
|
-
column:
|
|
25801
|
-
offset:
|
|
25807
|
+
column: 29,
|
|
25808
|
+
offset: 28
|
|
25802
25809
|
}
|
|
25803
25810
|
}
|
|
25804
25811
|
},
|
|
@@ -25811,26 +25818,26 @@ var body$3 = [
|
|
|
25811
25818
|
meta: {
|
|
25812
25819
|
start: {
|
|
25813
25820
|
line: 1,
|
|
25814
|
-
column:
|
|
25815
|
-
offset:
|
|
25821
|
+
column: 38,
|
|
25822
|
+
offset: 38
|
|
25816
25823
|
},
|
|
25817
25824
|
stop: {
|
|
25818
25825
|
line: 1,
|
|
25819
|
-
column:
|
|
25820
|
-
offset:
|
|
25826
|
+
column: 42,
|
|
25827
|
+
offset: 41
|
|
25821
25828
|
}
|
|
25822
25829
|
}
|
|
25823
25830
|
},
|
|
25824
25831
|
meta: {
|
|
25825
25832
|
start: {
|
|
25826
25833
|
line: 1,
|
|
25827
|
-
column:
|
|
25828
|
-
offset:
|
|
25834
|
+
column: 35,
|
|
25835
|
+
offset: 35
|
|
25829
25836
|
},
|
|
25830
25837
|
stop: {
|
|
25831
25838
|
line: 1,
|
|
25832
|
-
column:
|
|
25833
|
-
offset:
|
|
25839
|
+
column: 42,
|
|
25840
|
+
offset: 41
|
|
25834
25841
|
}
|
|
25835
25842
|
},
|
|
25836
25843
|
type: {
|
|
@@ -25839,13 +25846,13 @@ var body$3 = [
|
|
|
25839
25846
|
meta: {
|
|
25840
25847
|
start: {
|
|
25841
25848
|
line: 1,
|
|
25842
|
-
column:
|
|
25843
|
-
offset:
|
|
25849
|
+
column: 31,
|
|
25850
|
+
offset: 31
|
|
25844
25851
|
},
|
|
25845
25852
|
stop: {
|
|
25846
25853
|
line: 1,
|
|
25847
|
-
column:
|
|
25848
|
-
offset:
|
|
25854
|
+
column: 34,
|
|
25855
|
+
offset: 33
|
|
25849
25856
|
}
|
|
25850
25857
|
}
|
|
25851
25858
|
}
|
|
@@ -25861,8 +25868,8 @@ var body$3 = [
|
|
|
25861
25868
|
},
|
|
25862
25869
|
stop: {
|
|
25863
25870
|
line: 1,
|
|
25864
|
-
column:
|
|
25865
|
-
offset:
|
|
25871
|
+
column: 44,
|
|
25872
|
+
offset: 43
|
|
25866
25873
|
}
|
|
25867
25874
|
}
|
|
25868
25875
|
},
|
|
@@ -25870,17 +25877,17 @@ var body$3 = [
|
|
|
25870
25877
|
kind: "FUNCTION_DECLARATION",
|
|
25871
25878
|
returnType: {
|
|
25872
25879
|
kind: "DATA_TYPE",
|
|
25873
|
-
value: "
|
|
25880
|
+
value: "void",
|
|
25874
25881
|
meta: {
|
|
25875
25882
|
start: {
|
|
25876
25883
|
line: 2,
|
|
25877
25884
|
column: 7,
|
|
25878
|
-
offset:
|
|
25885
|
+
offset: 52
|
|
25879
25886
|
},
|
|
25880
25887
|
stop: {
|
|
25881
25888
|
line: 2,
|
|
25882
|
-
column:
|
|
25883
|
-
offset:
|
|
25889
|
+
column: 11,
|
|
25890
|
+
offset: 55
|
|
25884
25891
|
}
|
|
25885
25892
|
}
|
|
25886
25893
|
},
|
|
@@ -25890,13 +25897,13 @@ var body$3 = [
|
|
|
25890
25897
|
meta: {
|
|
25891
25898
|
start: {
|
|
25892
25899
|
line: 2,
|
|
25893
|
-
column:
|
|
25894
|
-
offset:
|
|
25900
|
+
column: 12,
|
|
25901
|
+
offset: 57
|
|
25895
25902
|
},
|
|
25896
25903
|
stop: {
|
|
25897
25904
|
line: 2,
|
|
25898
|
-
column:
|
|
25899
|
-
offset:
|
|
25905
|
+
column: 28,
|
|
25906
|
+
offset: 72
|
|
25900
25907
|
}
|
|
25901
25908
|
}
|
|
25902
25909
|
},
|
|
@@ -25907,13 +25914,13 @@ var body$3 = [
|
|
|
25907
25914
|
meta: {
|
|
25908
25915
|
start: {
|
|
25909
25916
|
line: 2,
|
|
25910
|
-
column:
|
|
25911
|
-
offset:
|
|
25917
|
+
column: 37,
|
|
25918
|
+
offset: 82
|
|
25912
25919
|
},
|
|
25913
25920
|
stop: {
|
|
25914
25921
|
line: 2,
|
|
25915
|
-
column:
|
|
25916
|
-
offset:
|
|
25922
|
+
column: 47,
|
|
25923
|
+
offset: 91
|
|
25917
25924
|
}
|
|
25918
25925
|
},
|
|
25919
25926
|
type: {
|
|
@@ -25922,13 +25929,13 @@ var body$3 = [
|
|
|
25922
25929
|
meta: {
|
|
25923
25930
|
start: {
|
|
25924
25931
|
line: 2,
|
|
25925
|
-
column:
|
|
25926
|
-
offset:
|
|
25932
|
+
column: 30,
|
|
25933
|
+
offset: 75
|
|
25927
25934
|
},
|
|
25928
25935
|
stop: {
|
|
25929
25936
|
line: 2,
|
|
25930
|
-
column:
|
|
25931
|
-
offset:
|
|
25937
|
+
column: 36,
|
|
25938
|
+
offset: 80
|
|
25932
25939
|
}
|
|
25933
25940
|
}
|
|
25934
25941
|
}
|
|
@@ -25940,12 +25947,12 @@ var body$3 = [
|
|
|
25940
25947
|
start: {
|
|
25941
25948
|
line: 2,
|
|
25942
25949
|
column: 0,
|
|
25943
|
-
offset:
|
|
25950
|
+
offset: 45
|
|
25944
25951
|
},
|
|
25945
25952
|
stop: {
|
|
25946
25953
|
line: 2,
|
|
25947
|
-
column:
|
|
25948
|
-
offset:
|
|
25954
|
+
column: 49,
|
|
25955
|
+
offset: 93
|
|
25949
25956
|
}
|
|
25950
25957
|
}
|
|
25951
25958
|
},
|
|
@@ -25953,17 +25960,17 @@ var body$3 = [
|
|
|
25953
25960
|
kind: "FUNCTION_DECLARATION",
|
|
25954
25961
|
returnType: {
|
|
25955
25962
|
kind: "DATA_TYPE",
|
|
25956
|
-
value: "
|
|
25963
|
+
value: "void",
|
|
25957
25964
|
meta: {
|
|
25958
25965
|
start: {
|
|
25959
25966
|
line: 3,
|
|
25960
25967
|
column: 7,
|
|
25961
|
-
offset:
|
|
25968
|
+
offset: 102
|
|
25962
25969
|
},
|
|
25963
25970
|
stop: {
|
|
25964
25971
|
line: 3,
|
|
25965
|
-
column:
|
|
25966
|
-
offset:
|
|
25972
|
+
column: 11,
|
|
25973
|
+
offset: 105
|
|
25967
25974
|
}
|
|
25968
25975
|
}
|
|
25969
25976
|
},
|
|
@@ -25973,13 +25980,13 @@ var body$3 = [
|
|
|
25973
25980
|
meta: {
|
|
25974
25981
|
start: {
|
|
25975
25982
|
line: 3,
|
|
25976
|
-
column:
|
|
25977
|
-
offset:
|
|
25983
|
+
column: 12,
|
|
25984
|
+
offset: 107
|
|
25978
25985
|
},
|
|
25979
25986
|
stop: {
|
|
25980
25987
|
line: 3,
|
|
25981
|
-
column:
|
|
25982
|
-
offset:
|
|
25988
|
+
column: 26,
|
|
25989
|
+
offset: 120
|
|
25983
25990
|
}
|
|
25984
25991
|
}
|
|
25985
25992
|
},
|
|
@@ -25991,12 +25998,12 @@ var body$3 = [
|
|
|
25991
25998
|
start: {
|
|
25992
25999
|
line: 3,
|
|
25993
26000
|
column: 0,
|
|
25994
|
-
offset:
|
|
26001
|
+
offset: 95
|
|
25995
26002
|
},
|
|
25996
26003
|
stop: {
|
|
25997
26004
|
line: 3,
|
|
25998
|
-
column:
|
|
25999
|
-
offset:
|
|
26005
|
+
column: 30,
|
|
26006
|
+
offset: 124
|
|
26000
26007
|
}
|
|
26001
26008
|
}
|
|
26002
26009
|
},
|
|
@@ -26004,17 +26011,17 @@ var body$3 = [
|
|
|
26004
26011
|
kind: "FUNCTION_DECLARATION",
|
|
26005
26012
|
returnType: {
|
|
26006
26013
|
kind: "DATA_TYPE",
|
|
26007
|
-
value: "
|
|
26014
|
+
value: "void",
|
|
26008
26015
|
meta: {
|
|
26009
26016
|
start: {
|
|
26010
26017
|
line: 4,
|
|
26011
26018
|
column: 7,
|
|
26012
|
-
offset:
|
|
26019
|
+
offset: 133
|
|
26013
26020
|
},
|
|
26014
26021
|
stop: {
|
|
26015
26022
|
line: 4,
|
|
26016
|
-
column:
|
|
26017
|
-
offset:
|
|
26023
|
+
column: 11,
|
|
26024
|
+
offset: 136
|
|
26018
26025
|
}
|
|
26019
26026
|
}
|
|
26020
26027
|
},
|
|
@@ -26024,13 +26031,13 @@ var body$3 = [
|
|
|
26024
26031
|
meta: {
|
|
26025
26032
|
start: {
|
|
26026
26033
|
line: 4,
|
|
26027
|
-
column:
|
|
26028
|
-
offset:
|
|
26034
|
+
column: 12,
|
|
26035
|
+
offset: 138
|
|
26029
26036
|
},
|
|
26030
26037
|
stop: {
|
|
26031
26038
|
line: 4,
|
|
26032
|
-
column:
|
|
26033
|
-
offset:
|
|
26039
|
+
column: 29,
|
|
26040
|
+
offset: 154
|
|
26034
26041
|
}
|
|
26035
26042
|
}
|
|
26036
26043
|
},
|
|
@@ -26041,13 +26048,13 @@ var body$3 = [
|
|
|
26041
26048
|
meta: {
|
|
26042
26049
|
start: {
|
|
26043
26050
|
line: 4,
|
|
26044
|
-
column:
|
|
26045
|
-
offset:
|
|
26051
|
+
column: 35,
|
|
26052
|
+
offset: 161
|
|
26046
26053
|
},
|
|
26047
26054
|
stop: {
|
|
26048
26055
|
line: 4,
|
|
26049
|
-
column:
|
|
26050
|
-
offset:
|
|
26056
|
+
column: 43,
|
|
26057
|
+
offset: 168
|
|
26051
26058
|
}
|
|
26052
26059
|
},
|
|
26053
26060
|
type: {
|
|
@@ -26056,13 +26063,13 @@ var body$3 = [
|
|
|
26056
26063
|
meta: {
|
|
26057
26064
|
start: {
|
|
26058
26065
|
line: 4,
|
|
26059
|
-
column:
|
|
26060
|
-
offset:
|
|
26066
|
+
column: 31,
|
|
26067
|
+
offset: 157
|
|
26061
26068
|
},
|
|
26062
26069
|
stop: {
|
|
26063
26070
|
line: 4,
|
|
26064
|
-
column:
|
|
26065
|
-
offset:
|
|
26071
|
+
column: 34,
|
|
26072
|
+
offset: 159
|
|
26066
26073
|
}
|
|
26067
26074
|
}
|
|
26068
26075
|
}
|
|
@@ -26073,13 +26080,13 @@ var body$3 = [
|
|
|
26073
26080
|
meta: {
|
|
26074
26081
|
start: {
|
|
26075
26082
|
line: 4,
|
|
26076
|
-
column:
|
|
26077
|
-
offset:
|
|
26083
|
+
column: 49,
|
|
26084
|
+
offset: 175
|
|
26078
26085
|
},
|
|
26079
26086
|
stop: {
|
|
26080
26087
|
line: 4,
|
|
26081
|
-
column:
|
|
26082
|
-
offset:
|
|
26088
|
+
column: 55,
|
|
26089
|
+
offset: 180
|
|
26083
26090
|
}
|
|
26084
26091
|
},
|
|
26085
26092
|
type: {
|
|
@@ -26088,13 +26095,13 @@ var body$3 = [
|
|
|
26088
26095
|
meta: {
|
|
26089
26096
|
start: {
|
|
26090
26097
|
line: 4,
|
|
26091
|
-
column:
|
|
26092
|
-
offset:
|
|
26098
|
+
column: 45,
|
|
26099
|
+
offset: 171
|
|
26093
26100
|
},
|
|
26094
26101
|
stop: {
|
|
26095
26102
|
line: 4,
|
|
26096
|
-
column:
|
|
26097
|
-
offset:
|
|
26103
|
+
column: 48,
|
|
26104
|
+
offset: 173
|
|
26098
26105
|
}
|
|
26099
26106
|
}
|
|
26100
26107
|
}
|
|
@@ -26105,13 +26112,13 @@ var body$3 = [
|
|
|
26105
26112
|
meta: {
|
|
26106
26113
|
start: {
|
|
26107
26114
|
line: 4,
|
|
26108
|
-
column:
|
|
26109
|
-
offset:
|
|
26115
|
+
column: 64,
|
|
26116
|
+
offset: 190
|
|
26110
26117
|
},
|
|
26111
26118
|
stop: {
|
|
26112
26119
|
line: 4,
|
|
26113
|
-
column:
|
|
26114
|
-
offset:
|
|
26120
|
+
column: 76,
|
|
26121
|
+
offset: 201
|
|
26115
26122
|
}
|
|
26116
26123
|
},
|
|
26117
26124
|
type: {
|
|
@@ -26120,13 +26127,13 @@ var body$3 = [
|
|
|
26120
26127
|
meta: {
|
|
26121
26128
|
start: {
|
|
26122
26129
|
line: 4,
|
|
26123
|
-
column:
|
|
26124
|
-
offset:
|
|
26130
|
+
column: 57,
|
|
26131
|
+
offset: 183
|
|
26125
26132
|
},
|
|
26126
26133
|
stop: {
|
|
26127
26134
|
line: 4,
|
|
26128
|
-
column:
|
|
26129
|
-
offset:
|
|
26135
|
+
column: 63,
|
|
26136
|
+
offset: 188
|
|
26130
26137
|
}
|
|
26131
26138
|
}
|
|
26132
26139
|
}
|
|
@@ -26138,28 +26145,95 @@ var body$3 = [
|
|
|
26138
26145
|
start: {
|
|
26139
26146
|
line: 4,
|
|
26140
26147
|
column: 0,
|
|
26141
|
-
offset:
|
|
26148
|
+
offset: 126
|
|
26142
26149
|
},
|
|
26143
26150
|
stop: {
|
|
26144
26151
|
line: 4,
|
|
26145
|
-
column:
|
|
26146
|
-
offset:
|
|
26152
|
+
column: 78,
|
|
26153
|
+
offset: 203
|
|
26147
26154
|
}
|
|
26148
26155
|
}
|
|
26149
26156
|
},
|
|
26150
26157
|
{
|
|
26151
|
-
kind: "
|
|
26152
|
-
|
|
26158
|
+
kind: "FUNCTION_DECLARATION",
|
|
26159
|
+
returnType: {
|
|
26160
|
+
kind: "DATA_TYPE",
|
|
26161
|
+
value: "bool",
|
|
26162
|
+
meta: {
|
|
26163
|
+
start: {
|
|
26164
|
+
line: 5,
|
|
26165
|
+
column: 7,
|
|
26166
|
+
offset: 212
|
|
26167
|
+
},
|
|
26168
|
+
stop: {
|
|
26169
|
+
line: 5,
|
|
26170
|
+
column: 11,
|
|
26171
|
+
offset: 215
|
|
26172
|
+
}
|
|
26173
|
+
}
|
|
26174
|
+
},
|
|
26175
|
+
id: {
|
|
26176
|
+
kind: "IDENTIFIER",
|
|
26177
|
+
value: "std::debug.setSerialLogEnabled",
|
|
26178
|
+
meta: {
|
|
26179
|
+
start: {
|
|
26180
|
+
line: 5,
|
|
26181
|
+
column: 12,
|
|
26182
|
+
offset: 217
|
|
26183
|
+
},
|
|
26184
|
+
stop: {
|
|
26185
|
+
line: 5,
|
|
26186
|
+
column: 42,
|
|
26187
|
+
offset: 246
|
|
26188
|
+
}
|
|
26189
|
+
}
|
|
26190
|
+
},
|
|
26191
|
+
params: [
|
|
26192
|
+
{
|
|
26193
|
+
kind: "IDENTIFIER",
|
|
26194
|
+
value: "newVal",
|
|
26195
|
+
meta: {
|
|
26196
|
+
start: {
|
|
26197
|
+
line: 5,
|
|
26198
|
+
column: 49,
|
|
26199
|
+
offset: 254
|
|
26200
|
+
},
|
|
26201
|
+
stop: {
|
|
26202
|
+
line: 5,
|
|
26203
|
+
column: 55,
|
|
26204
|
+
offset: 259
|
|
26205
|
+
}
|
|
26206
|
+
},
|
|
26207
|
+
type: {
|
|
26208
|
+
kind: "DATA_TYPE",
|
|
26209
|
+
value: "bool",
|
|
26210
|
+
meta: {
|
|
26211
|
+
start: {
|
|
26212
|
+
line: 5,
|
|
26213
|
+
column: 44,
|
|
26214
|
+
offset: 249
|
|
26215
|
+
},
|
|
26216
|
+
stop: {
|
|
26217
|
+
line: 5,
|
|
26218
|
+
column: 48,
|
|
26219
|
+
offset: 252
|
|
26220
|
+
}
|
|
26221
|
+
}
|
|
26222
|
+
}
|
|
26223
|
+
}
|
|
26224
|
+
],
|
|
26225
|
+
isNative: true,
|
|
26226
|
+
isPure: false,
|
|
26153
26227
|
meta: {
|
|
26154
26228
|
start: {
|
|
26155
26229
|
line: 5,
|
|
26156
26230
|
column: 0,
|
|
26157
|
-
offset:
|
|
26231
|
+
offset: 205
|
|
26158
26232
|
},
|
|
26159
26233
|
stop: {
|
|
26160
26234
|
line: 5,
|
|
26161
|
-
column:
|
|
26162
|
-
offset:
|
|
26235
|
+
column: 57,
|
|
26236
|
+
offset: 261
|
|
26163
26237
|
}
|
|
26164
26238
|
}
|
|
26165
26239
|
}
|
|
@@ -27828,6 +27902,9 @@ function getAllNativeLibraryFunctions(rootNode) {
|
|
|
27828
27902
|
];
|
|
27829
27903
|
}
|
|
27830
27904
|
|
|
27905
|
+
var version = "3.1.5";
|
|
27906
|
+
var binaryVersion = 7;
|
|
27907
|
+
|
|
27831
27908
|
const RootNodeLayout = [{
|
|
27832
27909
|
key: "kind",
|
|
27833
27910
|
shape: [EnumNodeLayoutEntry.LAYOUT_POINTER_KIND],
|
|
@@ -27863,6 +27940,7 @@ const rootToAstNode = (instance, ctx) => {
|
|
|
27863
27940
|
}
|
|
27864
27941
|
// Non-native import (source is a local file)
|
|
27865
27942
|
// Check we can locate the file
|
|
27943
|
+
console.log(`[BattleScript ${version}] Processing import compilation unit: `, importNode.source.value);
|
|
27866
27944
|
const filePath = join(dirname(instance._filePath), importNode.source.value);
|
|
27867
27945
|
const importedAst = toAstSync(filePath);
|
|
27868
27946
|
return importedAst.body;
|
|
@@ -28136,7 +28214,7 @@ class BattleScriptToAST extends AbstractParseTreeVisitorExports.AbstractParseTre
|
|
|
28136
28214
|
const inlineComment = this.optional(lineEnd, "inlineComment");
|
|
28137
28215
|
if (!inlineComment)
|
|
28138
28216
|
return;
|
|
28139
|
-
return inlineComment ? inlineComment.text.replace(
|
|
28217
|
+
return inlineComment ? inlineComment.text.replace(/^\/\/\s*/, "") : undefined;
|
|
28140
28218
|
};
|
|
28141
28219
|
this.optional = (ctx, key) => {
|
|
28142
28220
|
return ctx[key] ? ctx[key]() : null;
|
|
@@ -29442,9 +29520,6 @@ function miniAstFromBinaryBuffer(data) {
|
|
|
29442
29520
|
};
|
|
29443
29521
|
}
|
|
29444
29522
|
|
|
29445
|
-
var version = "3.1.4";
|
|
29446
|
-
var binaryVersion = 7;
|
|
29447
|
-
|
|
29448
29523
|
function miniAstToBinary$1(json, options = {}) {
|
|
29449
29524
|
const stringTable = json.stringTable;
|
|
29450
29525
|
const nodes = json.ast;
|
|
@@ -38717,19 +38792,23 @@ function getParser(inputText) {
|
|
|
38717
38792
|
}
|
|
38718
38793
|
// Function to Parse and Convert BattleScript to JSON
|
|
38719
38794
|
function fromSourceCodeToFullAst(inputText, options) {
|
|
38795
|
+
console.log(`[BattleScript ${version}] Parsing source code...`);
|
|
38720
38796
|
const parser = getParser(inputText);
|
|
38721
38797
|
const tree = parser.root();
|
|
38798
|
+
console.log(`[BattleScript ${version}] Transforming source code -> AST...`);
|
|
38722
38799
|
const transformer = new BattleScriptToAST(options?.filePath || "-", inputText);
|
|
38723
38800
|
transformer.filePath(options?.filePath);
|
|
38724
38801
|
transformer.sourceCode(inputText);
|
|
38725
38802
|
return transformer.visit(tree, options);
|
|
38726
38803
|
}
|
|
38727
38804
|
function fromFullAstToSourceCode(ast, options = { includeMetaData: true }) {
|
|
38805
|
+
console.log(`[BattleScript ${version}] Transforming AST -> Source code...`);
|
|
38728
38806
|
const transformer = new BattleScriptFromAST(options.filePath || "-", JSON.stringify(ast, null, 4));
|
|
38729
38807
|
return transformer.visit(ast);
|
|
38730
38808
|
}
|
|
38731
38809
|
function fromSourceCodeToMiniAst(source, options = { includeMetaData: true }) {
|
|
38732
38810
|
const ast = fromSourceCodeToFullAst(source, options);
|
|
38811
|
+
console.log(`[BattleScript ${version}] Transforming AST -> MiniAST...`);
|
|
38733
38812
|
const transformer = new BattleScriptToMiniAST(options?.filePath || "-", source);
|
|
38734
38813
|
transformer.filePath(options?.filePath);
|
|
38735
38814
|
transformer.sourceCode(source); // Add for debugging purposes
|
|
@@ -38740,6 +38819,7 @@ function fromMiniAstToBinary(miniAst, options = { includeMetaData: true }) {
|
|
|
38740
38819
|
}
|
|
38741
38820
|
function fromSourceCodeToBinary(source, options = { includeMetaData: true }) {
|
|
38742
38821
|
const miniAstJson = fromSourceCodeToMiniAst(source, options);
|
|
38822
|
+
console.log(`[BattleScript ${version}] Transforming MiniAST -> Binary...`);
|
|
38743
38823
|
return fromMiniAstToBinary(miniAstJson, options);
|
|
38744
38824
|
}
|
|
38745
38825
|
// export function decompileBattleScript(json: ByteCodeJson) {
|
|
@@ -38834,6 +38914,7 @@ function disassembleBytecode([stringTable, bytecode]) {
|
|
|
38834
38914
|
}
|
|
38835
38915
|
|
|
38836
38916
|
async function toAst(inputPath, outputPath) {
|
|
38917
|
+
console.log(`[BattleScript ${version}] toAst: ${inputPath}`);
|
|
38837
38918
|
try {
|
|
38838
38919
|
const sourceCode = await readFile(inputPath, "utf-8");
|
|
38839
38920
|
const ast = fromSourceCodeToFullAst(sourceCode, { filePath: inputPath, includeMetaData: true });
|
|
@@ -38851,6 +38932,7 @@ async function toAst(inputPath, outputPath) {
|
|
|
38851
38932
|
}
|
|
38852
38933
|
}
|
|
38853
38934
|
function toAstSync(inputPath, outputPath) {
|
|
38935
|
+
console.log(`[BattleScript ${version}] toAstSync: ${inputPath}`);
|
|
38854
38936
|
try {
|
|
38855
38937
|
const sourceCode = readFileSync(inputPath, "utf-8");
|
|
38856
38938
|
const ast = fromSourceCodeToFullAst(sourceCode, { filePath: inputPath, includeMetaData: true });
|
|
@@ -38865,6 +38947,7 @@ function toAstSync(inputPath, outputPath) {
|
|
|
38865
38947
|
}
|
|
38866
38948
|
}
|
|
38867
38949
|
async function fromAst(inputPath, outputPath) {
|
|
38950
|
+
console.log(`[BattleScript ${version}] fromAst: ${inputPath}`);
|
|
38868
38951
|
try {
|
|
38869
38952
|
const astString = await readFile(inputPath, "utf-8");
|
|
38870
38953
|
const ast = JSON.parse(astString);
|
|
@@ -38878,6 +38961,7 @@ async function fromAst(inputPath, outputPath) {
|
|
|
38878
38961
|
}
|
|
38879
38962
|
}
|
|
38880
38963
|
async function toMiniAst(inputPath, outputPath) {
|
|
38964
|
+
console.log(`[BattleScript ${version}] toMiniAst: ${inputPath}`);
|
|
38881
38965
|
try {
|
|
38882
38966
|
const sourceCode = await readFile(inputPath, "utf-8");
|
|
38883
38967
|
const ast = fromSourceCodeToMiniAst(sourceCode, { filePath: inputPath, includeMetaData: true });
|
|
@@ -38890,9 +38974,13 @@ async function toMiniAst(inputPath, outputPath) {
|
|
|
38890
38974
|
}
|
|
38891
38975
|
}
|
|
38892
38976
|
async function toBinary(inputPath, outputPath) {
|
|
38977
|
+
console.log(`[BattleScript ${version}] toBinary: ${inputPath}`);
|
|
38893
38978
|
try {
|
|
38979
|
+
console.log(`[BattleScript ${version}] Reading file contents: ${inputPath}`);
|
|
38894
38980
|
const sourceCode = await readFile(inputPath, "utf-8");
|
|
38981
|
+
console.log(`[BattleScript ${version}] fromSourceCodeToBinary: ${inputPath}`);
|
|
38895
38982
|
const binary = fromSourceCodeToBinary(sourceCode, { includeMetaData: true, flatten: true, filePath: inputPath });
|
|
38983
|
+
console.log(`[BattleScript ${version}] Writing file contents: ${outputPath}`);
|
|
38896
38984
|
await writeFile(outputPath, Buffer.concat(binary));
|
|
38897
38985
|
console.log(`[BattleScript ${version}] Compiled to ${outputPath}`);
|
|
38898
38986
|
}
|
|
@@ -38960,6 +39048,7 @@ function changeExtension(filePath, newExt) {
|
|
|
38960
39048
|
}
|
|
38961
39049
|
|
|
38962
39050
|
async function main() {
|
|
39051
|
+
console.log(`[BattleScript ${version}]`);
|
|
38963
39052
|
const args = process.argv.slice(2); // Ignore node and script path
|
|
38964
39053
|
if (args.length === 0) {
|
|
38965
39054
|
console.error("Usage:\tnpx @irrelon/battlescript <command> <input file> <output file>");
|