@irrelon/battlescript 3.1.7 → 3.2.2
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 +15 -27
- package/bin/index.js +5538 -5256
- package/bin/index.js.map +1 -1
- package/bin/index.ts +16 -28
- package/dist/bin/functionality.d.ts +1 -1
- package/dist/bin/functionality.d.ts.map +1 -1
- package/dist/exports/typescript/enums/EnumNodeKind.d.ts +7 -1
- package/dist/exports/typescript/enums/EnumNodeKind.d.ts.map +1 -1
- package/dist/exports/typescript/enums/EnumNodeProp.d.ts +3 -1
- package/dist/exports/typescript/enums/EnumNodeProp.d.ts.map +1 -1
- package/dist/exports/typescript/helpers/miniAstLayout.d.ts +4 -0
- package/dist/exports/typescript/helpers/miniAstLayout.d.ts.map +1 -0
- package/dist/index.cjs +39982 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{index.js → index.mjs} +5677 -5499
- package/dist/index.mjs.map +1 -0
- package/dist/scripts/createAstNode.d.ts +2 -0
- package/dist/scripts/createAstNode.d.ts.map +1 -0
- package/dist/scripts/exportGen/helpers/generateHelpers.d.ts.map +1 -1
- package/dist/services/fullAst/BattleScriptFromAST.d.ts +9 -2
- package/dist/services/fullAst/BattleScriptFromAST.d.ts.map +1 -1
- package/dist/services/fullAst/BattleScriptToAST.d.ts +10 -2
- package/dist/services/fullAst/BattleScriptToAST.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts +88 -78
- package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptListener.d.ts +121 -0
- package/dist/services/grammar/ts/language/BattleScriptListener.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptParser.d.ts +258 -95
- package/dist/services/grammar/ts/language/BattleScriptParser.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts +77 -0
- package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts.map +1 -1
- package/dist/services/index.d.ts +0 -1
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/miniAst/BattleScriptToMiniAST.d.ts.map +1 -1
- package/dist/services/miniAst/MiniAstToFullAst.d.ts +28 -0
- package/dist/services/miniAst/MiniAstToFullAst.d.ts.map +1 -0
- package/dist/services/miniAst/index.d.ts +1 -0
- package/dist/services/miniAst/index.d.ts.map +1 -1
- package/dist/services/miniAst/miniAstLayout.d.ts.map +1 -1
- package/dist/services/parser.d.ts +1 -3
- package/dist/services/parser.d.ts.map +1 -1
- package/dist/types/ast/nodes/AfterDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/AfterDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/AfterExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/AfterExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ArrayExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/ArrayExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/AssignmentExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/AssignmentExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/AssignmentPatternNode.d.ts +3 -0
- package/dist/types/ast/nodes/AssignmentPatternNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/AstNode.d.ts +2 -2
- package/dist/types/ast/nodes/AstNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/BinaryExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/BinaryExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/BlockStatementNode.d.ts +3 -0
- package/dist/types/ast/nodes/BlockStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/BreakStatementNode.d.ts +3 -0
- package/dist/types/ast/nodes/BreakStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/CallExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/CallExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/CancelStatementNode.d.ts +3 -0
- package/dist/types/ast/nodes/CancelStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/CatchStatementNode.d.ts +3 -0
- package/dist/types/ast/nodes/CatchStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/CommentNode.d.ts +3 -0
- package/dist/types/ast/nodes/CommentNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ConstantDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/ConstantDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ConstantDeclaratorNode.d.ts +3 -0
- package/dist/types/ast/nodes/ConstantDeclaratorNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ContinueStatementNode.d.ts +3 -0
- package/dist/types/ast/nodes/ContinueStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/CustomTypeNode.d.ts +3 -0
- package/dist/types/ast/nodes/CustomTypeNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/DataTypeNode.d.ts +3 -0
- package/dist/types/ast/nodes/DataTypeNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/DefineStatementNode.d.ts +14 -0
- package/dist/types/ast/nodes/DefineStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/EnumDeclarationNode.d.ts +14 -0
- package/dist/types/ast/nodes/EnumDeclarationNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/EvaluateCaseNode.d.ts +3 -0
- package/dist/types/ast/nodes/EvaluateCaseNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EvaluateFallbackNode.d.ts +3 -0
- package/dist/types/ast/nodes/EvaluateFallbackNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EvaluateStatementNode.d.ts +3 -0
- package/dist/types/ast/nodes/EvaluateStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EventDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/EventDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EveryDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/EveryDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EveryExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/EveryExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ExpressionStatementNode.d.ts +3 -0
- package/dist/types/ast/nodes/ExpressionStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ForStatementNode.d.ts +3 -0
- package/dist/types/ast/nodes/ForStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/FunctionDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/FunctionDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/FunctionDefinitionNode.d.ts +3 -0
- package/dist/types/ast/nodes/FunctionDefinitionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/IdentifierNode.d.ts +3 -0
- package/dist/types/ast/nodes/IdentifierNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/IfStatementNode.d.ts +3 -0
- package/dist/types/ast/nodes/IfStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ImportDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/ImportDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/InterfaceNode.d.ts +3 -0
- package/dist/types/ast/nodes/InterfaceNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/InterfacePropertyDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/InterfacePropertyDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/LiteralBooleanNode.d.ts +2 -1
- package/dist/types/ast/nodes/LiteralBooleanNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/LiteralDoubleNode.d.ts +2 -0
- package/dist/types/ast/nodes/LiteralDoubleNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/LiteralFloatNode.d.ts +2 -0
- package/dist/types/ast/nodes/LiteralFloatNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/LiteralIntNode.d.ts +2 -1
- package/dist/types/ast/nodes/LiteralIntNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/LiteralNullNode.d.ts +2 -1
- package/dist/types/ast/nodes/LiteralNullNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/LiteralStringNode.d.ts +2 -1
- package/dist/types/ast/nodes/LiteralStringNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/LiteralUndefinedNode.d.ts +2 -1
- package/dist/types/ast/nodes/LiteralUndefinedNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/MemberExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/MemberExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ObjectExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/ObjectExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ObjectPropertyNode.d.ts +3 -0
- package/dist/types/ast/nodes/ObjectPropertyNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/OptimisedAssignmentExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/OptimisedAssignmentExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/OptimisedBinaryExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/OptimisedBinaryExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/OptimisedMemberExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/OptimisedMemberExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/OptimisedUpdateExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/OptimisedUpdateExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ProgramDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/ProgramDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ProgramPropertyDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/ProgramPropertyDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ProtocolDeclarationNode.d.ts +16 -0
- package/dist/types/ast/nodes/ProtocolDeclarationNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/ProtocolTypeNode.d.ts +13 -0
- package/dist/types/ast/nodes/ProtocolTypeNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/RequireStatementNode.d.ts +15 -0
- package/dist/types/ast/nodes/RequireStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/RestElementNode.d.ts +3 -0
- package/dist/types/ast/nodes/RestElementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ReturnStatementNode.d.ts +3 -0
- package/dist/types/ast/nodes/ReturnStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/RootNode.d.ts +3 -0
- package/dist/types/ast/nodes/RootNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/StateDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/StateDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/StepDeclarationNode.d.ts +14 -0
- package/dist/types/ast/nodes/StepDeclarationNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/TransportStatementNode.d.ts +13 -0
- package/dist/types/ast/nodes/TransportStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/UnaryExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/UnaryExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/UpdateExpressionNode.d.ts +3 -0
- package/dist/types/ast/nodes/UpdateExpressionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/VariableDeclarationNode.d.ts +3 -0
- package/dist/types/ast/nodes/VariableDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/VariableDeclaratorNode.d.ts +3 -0
- package/dist/types/ast/nodes/VariableDeclaratorNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/WildcardNode.d.ts +3 -0
- package/dist/types/ast/nodes/WildcardNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/index.d.ts +6 -0
- package/dist/types/ast/nodes/index.d.ts.map +1 -1
- package/dist/types/ast/unions/ProtocolBodyUnion.d.ts +3 -0
- package/dist/types/ast/unions/ProtocolBodyUnion.d.ts.map +1 -0
- package/dist/types/ast/unions/StepBodyUnion.d.ts +3 -0
- package/dist/types/ast/unions/StepBodyUnion.d.ts.map +1 -0
- package/dist/types/ast/unions/TypeUnion.d.ts +2 -2
- package/dist/types/ast/unions/TypeUnion.d.ts.map +1 -1
- package/package.json +21 -14
- package/dist/index.js.map +0 -1
- package/dist/tsconfig.types.tsbuildinfo +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AfterExpressionNode, AstNodeBase, AstNodeLayout, EveryExpressionNode, ExpressionUnion, IdentifierNode, TypeUnion } from "@/types";
|
|
2
2
|
import type { VariableDeclaratorContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
3
3
|
import type { BattleScriptToAST } from "@/services";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface ConstantDeclaratorNode extends AstNodeBase {
|
|
5
7
|
kind: "CONSTANT_DECLARATOR";
|
|
6
8
|
id: IdentifierNode;
|
|
@@ -9,4 +11,5 @@ export interface ConstantDeclaratorNode extends AstNodeBase {
|
|
|
9
11
|
}
|
|
10
12
|
export declare const ConstantDeclaratorNodeLayout: AstNodeLayout<ConstantDeclaratorNode>[];
|
|
11
13
|
export declare const constantDeclaratorToAstNode: (instance: BattleScriptToAST, ctx: VariableDeclaratorContext) => ConstantDeclaratorNode;
|
|
14
|
+
export declare const constantDeclaratorFromAstNode: (instance: BattleScriptFromAST, node: ConstantDeclaratorNode, options?: VisitOptions) => string;
|
|
12
15
|
//# sourceMappingURL=ConstantDeclaratorNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConstantDeclaratorNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ConstantDeclaratorNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,SAAS,EACT,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,mDAAmD,CAAC;AACjG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ConstantDeclaratorNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ConstantDeclaratorNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,SAAS,EACT,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,mDAAmD,CAAC;AACjG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IAC1D,IAAI,EAAE,qBAAqB,CAAC;IAC5B,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,eAAe,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;IAClE,IAAI,EAAE,SAAS,CAAC;CAChB;AAED,eAAO,MAAM,4BAA4B,EAAE,aAAa,CAAC,sBAAsB,CAAC,EAY9E,CAAC;AAEH,eAAO,MAAM,2BAA2B,GAAI,UAAU,iBAAiB,EAAE,KAAK,yBAAyB,KAAG,sBAczG,CAAA;AAED,eAAO,MAAM,6BAA6B,GAAI,UAAU,mBAAmB,EAAE,MAAM,sBAAsB,EAAE,UAAS,YAAiB,WAOpI,CAAA"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout } from "@/types";
|
|
2
2
|
import type { ContinueStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
3
3
|
import type { BattleScriptToAST } from "@/services";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface ContinueStatementNode extends AstNodeBase {
|
|
5
7
|
kind: "CONTINUE_STATEMENT";
|
|
6
8
|
}
|
|
7
9
|
export declare const ContinueStatementNodeLayout: AstNodeLayout<ContinueStatementNode>[];
|
|
8
10
|
export declare const continueStatementToAstNode: (instance: BattleScriptToAST, ctx: ContinueStatementContext) => ContinueStatementNode;
|
|
11
|
+
export declare const continueStatementFromAstNode: (instance: BattleScriptFromAST, node: ContinueStatementNode, options?: VisitOptions) => string;
|
|
9
12
|
//# sourceMappingURL=ContinueStatementNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContinueStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ContinueStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ContinueStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ContinueStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACzD,IAAI,EAAE,oBAAoB,CAAC;CAC3B;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,qBAAqB,CAAC,EAG5E,CAAC;AAEH,eAAO,MAAM,0BAA0B,GAAI,UAAU,iBAAiB,EAAE,KAAK,wBAAwB,KAAG,qBAKvG,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,UAAU,mBAAmB,EAAE,MAAM,qBAAqB,EAAE,UAAS,YAAiB,WAKjI,CAAA"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout } from "@/types";
|
|
2
2
|
import type { CustomTypeContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
3
3
|
import type { BattleScriptToAST } from "@/services";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface CustomTypeNode extends AstNodeBase {
|
|
5
7
|
kind: "CUSTOM_TYPE";
|
|
6
8
|
value: string;
|
|
7
9
|
}
|
|
8
10
|
export declare const CustomTypeNodeLayout: AstNodeLayout<CustomTypeNode>[];
|
|
9
11
|
export declare const customTypeToAstNode: (instance: BattleScriptToAST, ctx: CustomTypeContext) => CustomTypeNode;
|
|
12
|
+
export declare const customTypeFromAstNode: (instance: BattleScriptFromAST, node: CustomTypeNode, options?: VisitOptions) => string;
|
|
10
13
|
//# sourceMappingURL=CustomTypeNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomTypeNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CustomTypeNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,mDAAmD,CAAC;AACzF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomTypeNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CustomTypeNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,mDAAmD,CAAC;AACzF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,cAAe,SAAQ,WAAW;IAClD,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,cAAc,CAAC,EAM9D,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,KAAG,cAMzF,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,UAAU,mBAAmB,EAAE,MAAM,cAAc,EAAE,UAAS,YAAiB,WAEpH,CAAA"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { DataTypeContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface DataTypeNode extends AstNodeBase {
|
|
5
7
|
kind: "DATA_TYPE";
|
|
6
8
|
value: string;
|
|
7
9
|
}
|
|
8
10
|
export declare const DataTypeNodeLayout: AstNodeLayout<DataTypeNode>[];
|
|
9
11
|
export declare const dataTypeToAstNode: (instance: BattleScriptToAST, ctx: DataTypeContext) => DataTypeNode;
|
|
12
|
+
export declare const dataTypeFromAstNode: (instance: BattleScriptFromAST, node: DataTypeNode, options?: VisitOptions) => string;
|
|
10
13
|
//# sourceMappingURL=DataTypeNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTypeNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/DataTypeNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"DataTypeNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/DataTypeNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,mDAAmD,CAAC;AACvF,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,YAAa,SAAQ,WAAW;IAChD,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,YAAY,CAAC,EAM1D,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,UAAU,iBAAiB,EAAE,KAAK,eAAe,KAAG,YAMrF,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,UAAU,mBAAmB,EAAE,MAAM,YAAY,EAAE,UAAS,YAAiB,WAE/G,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AstNodeBase, AstNodeLayout, LiteralStringNode, ProtocolTypeNode } from "@/types";
|
|
2
|
+
import type { BattleScriptToAST } from "@/services";
|
|
3
|
+
import type { DefineStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
6
|
+
export interface DefineStatementNode extends AstNodeBase {
|
|
7
|
+
kind: "DEFINE_STATEMENT";
|
|
8
|
+
type: ProtocolTypeNode;
|
|
9
|
+
id: LiteralStringNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const DefineStatementNodeLayout: AstNodeLayout<DefineStatementNode>[];
|
|
12
|
+
export declare const defineStatementToAstNode: (instance: BattleScriptToAST, ctx: DefineStatementContext) => DefineStatementNode;
|
|
13
|
+
export declare const defineStatementFromAstNode: (instance: BattleScriptFromAST, node: DefineStatementNode, options?: VisitOptions) => string;
|
|
14
|
+
//# sourceMappingURL=DefineStatementNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefineStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/DefineStatementNode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAC7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,iBAAiB,CAAC;CACtB;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EASxE,CAAC;AAEH,eAAO,MAAM,wBAAwB,GAAI,UAAU,iBAAiB,EAAE,KAAK,sBAAsB,KAAG,mBAOnG,CAAA;AAGD,eAAO,MAAM,0BAA0B,GAAI,UAAU,mBAAmB,EAAE,MAAM,mBAAmB,EAAE,UAAS,YAAiB,WAU9H,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AstNode, AstNodeBase, AstNodeLayout, IdentifierNode } from "@/types";
|
|
2
|
+
import type { BattleScriptToAST } from "@/services";
|
|
3
|
+
import type { EnumDeclarationContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
6
|
+
export interface EnumDeclarationNode extends AstNodeBase {
|
|
7
|
+
kind: "ENUM_DECLARATION";
|
|
8
|
+
id: IdentifierNode;
|
|
9
|
+
body: AstNode[];
|
|
10
|
+
}
|
|
11
|
+
export declare const EnumDeclarationNodeLayout: AstNodeLayout<EnumDeclarationNode>[];
|
|
12
|
+
export declare const enumDeclarationToAstNode: (instance: BattleScriptToAST, ctx: EnumDeclarationContext) => EnumDeclarationNode;
|
|
13
|
+
export declare const enumDeclarationFromAstNode: (instance: BattleScriptFromAST, node: EnumDeclarationNode, options?: VisitOptions) => string;
|
|
14
|
+
//# sourceMappingURL=EnumDeclarationNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnumDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EnumDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEjF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,OAAO,EAAE,CAAC;CAChB;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EASxE,CAAC;AAEH,eAAO,MAAM,wBAAwB,GAAI,UAAU,iBAAiB,EAAE,KAAK,sBAAsB,KAAG,mBAOnG,CAAA;AAGD,eAAO,MAAM,0BAA0B,GAAI,UAAU,mBAAmB,EAAE,MAAM,mBAAmB,EAAE,UAAS,YAAiB,WAc7H,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, BlockStatementNode, ExpressionUnion } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { EvaluateCaseContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface EvaluateCaseNode extends AstNodeBase {
|
|
5
7
|
kind: "EVALUATE_CASE";
|
|
6
8
|
tests: ExpressionUnion[];
|
|
@@ -8,4 +10,5 @@ export interface EvaluateCaseNode extends AstNodeBase {
|
|
|
8
10
|
}
|
|
9
11
|
export declare const EvaluateCaseNodeLayout: AstNodeLayout<EvaluateCaseNode>[];
|
|
10
12
|
export declare const evaluateCaseToAstNode: (instance: BattleScriptToAST, ctx: EvaluateCaseContext) => EvaluateCaseNode;
|
|
13
|
+
export declare const evaluateCaseFromAstNode: (instance: BattleScriptFromAST, node: EvaluateCaseNode, options?: VisitOptions) => string;
|
|
11
14
|
//# sourceMappingURL=EvaluateCaseNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EvaluateCaseNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateCaseNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"EvaluateCaseNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateCaseNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,mDAAmD,CAAC;AAC3F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACpD,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,gBAAgB,CAAC,EASlE,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,UAAU,iBAAiB,EAAE,KAAK,mBAAmB,KAAG,gBAU7F,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,UAAU,mBAAmB,EAAE,MAAM,gBAAgB,EAAE,UAAS,YAAiB,WAUvH,CAAA"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, BlockStatementNode } from "@/types";
|
|
2
2
|
import type { EvaluateFallbackContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
3
3
|
import type { BattleScriptToAST } from "@/services";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface EvaluateFallbackNode extends AstNodeBase {
|
|
5
7
|
kind: "EVALUATE_FALLBACK";
|
|
6
8
|
body: BlockStatementNode;
|
|
7
9
|
}
|
|
8
10
|
export declare const EvaluateFallbackNodeLayout: AstNodeLayout<EvaluateFallbackNode>[];
|
|
9
11
|
export declare const evaluateFallbackToAstNode: (instance: BattleScriptToAST, ctx: EvaluateFallbackContext) => EvaluateFallbackNode;
|
|
12
|
+
export declare const evaluateFallbackFromAstNode: (instance: BattleScriptFromAST, node: EvaluateFallbackNode, options?: VisitOptions) => string;
|
|
10
13
|
//# sourceMappingURL=EvaluateFallbackNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EvaluateFallbackNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateFallbackNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAE5E,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"EvaluateFallbackNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateFallbackNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAE5E,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAM1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAMrG,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,UAAU,mBAAmB,EAAE,MAAM,oBAAoB,EAAE,UAAS,YAAiB,WAS/H,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, EvaluateBranchUnion, ExpressionUnion } from "@/types";
|
|
2
2
|
import type { EvaluateStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
3
3
|
import type { BattleScriptToAST } from "@/services";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface EvaluateStatementNode extends AstNodeBase {
|
|
5
7
|
kind: "EVALUATE_STATEMENT";
|
|
6
8
|
discriminants: ExpressionUnion[] | null;
|
|
@@ -8,4 +10,5 @@ export interface EvaluateStatementNode extends AstNodeBase {
|
|
|
8
10
|
}
|
|
9
11
|
export declare const EvaluateStatementNodeLayout: AstNodeLayout<EvaluateStatementNode>[];
|
|
10
12
|
export declare const evaluateStatementToAstNode: (instance: BattleScriptToAST, ctx: EvaluateStatementContext) => EvaluateStatementNode;
|
|
13
|
+
export declare const evaluateStatementFromAstNode: (instance: BattleScriptFromAST, node: EvaluateStatementNode, options?: VisitOptions) => string;
|
|
11
14
|
//# sourceMappingURL=EvaluateStatementNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EvaluateStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE9F,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"EvaluateStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE9F,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACzD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,aAAa,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IACxC,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,qBAAqB,CAAC,EAS5E,CAAC;AAEH,eAAO,MAAM,0BAA0B,GAAI,UAAU,iBAAiB,EAAE,KAAK,wBAAwB,KAAG,qBASvG,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,UAAU,mBAAmB,EAAE,MAAM,qBAAqB,EAAE,UAAS,YAAiB,WAejI,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, BlockStatementNode, IdentifierNode, LiteralStringNode, LiteralUnion, MemberExpressionNode } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { EventDeclarationContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface EventDeclarationNode extends AstNodeBase {
|
|
5
7
|
kind: "EVENT_DECLARATION";
|
|
6
8
|
event: IdentifierNode | MemberExpressionNode | LiteralStringNode;
|
|
@@ -9,4 +11,5 @@ export interface EventDeclarationNode extends AstNodeBase {
|
|
|
9
11
|
}
|
|
10
12
|
export declare const EventDeclarationNodeLayout: AstNodeLayout<EventDeclarationNode>[];
|
|
11
13
|
export declare const eventDeclarationToAstNode: (instance: BattleScriptToAST, ctx: EventDeclarationContext) => EventDeclarationNode;
|
|
14
|
+
export declare const eventDeclarationFromAstNode: (instance: BattleScriptFromAST, node: EventDeclarationNode, options?: VisitOptions) => string;
|
|
12
15
|
//# sourceMappingURL=EventDeclarationNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EventDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"EventDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EventDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,cAAc,GAAG,oBAAoB,GAAG,iBAAiB,CAAC;IACjE,SAAS,EAAE,CAAC,cAAc,GAAG,oBAAoB,GAAG,YAAY,CAAC,EAAE,CAAC;IACpE,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAY1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAUrG,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,UAAU,mBAAmB,EAAE,MAAM,oBAAoB,EAAE,UAAS,YAAiB,WAahI,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, BlockStatementNode, ExpressionUnion } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { EveryDeclarationContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface EveryDeclarationNode extends AstNodeBase {
|
|
5
7
|
kind: "EVERY_DECLARATION";
|
|
6
8
|
interval: ExpressionUnion;
|
|
@@ -9,4 +11,5 @@ export interface EveryDeclarationNode extends AstNodeBase {
|
|
|
9
11
|
}
|
|
10
12
|
export declare const EveryDeclarationNodeLayout: AstNodeLayout<EveryDeclarationNode>[];
|
|
11
13
|
export declare const everyDeclarationToAstNode: (instance: BattleScriptToAST, ctx: EveryDeclarationContext) => EveryDeclarationNode;
|
|
14
|
+
export declare const everyDeclarationFromAstNode: (instance: BattleScriptFromAST, node: EveryDeclarationNode, options?: VisitOptions) => string;
|
|
12
15
|
//# sourceMappingURL=EveryDeclarationNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EveryDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EveryDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"EveryDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EveryDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAa1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAkBrG,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,UAAU,mBAAmB,EAAE,MAAM,oBAAoB,EAAE,UAAS,YAAiB,WAW/H,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, BlockStatementNode, ExpressionUnion } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { EveryExpressionContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface EveryExpressionNode extends AstNodeBase {
|
|
5
7
|
kind: "EVERY_EXPRESSION";
|
|
6
8
|
interval: ExpressionUnion;
|
|
@@ -9,4 +11,5 @@ export interface EveryExpressionNode extends AstNodeBase {
|
|
|
9
11
|
}
|
|
10
12
|
export declare const EveryExpressionNodeLayout: AstNodeLayout<EveryExpressionNode>[];
|
|
11
13
|
export declare const everyExpressionToAstNode: (instance: BattleScriptToAST, ctx: EveryExpressionContext) => EveryExpressionNode;
|
|
14
|
+
export declare const everyExpressionFromAstNode: (instance: BattleScriptFromAST, node: EveryExpressionNode, options?: VisitOptions) => string;
|
|
12
15
|
//# sourceMappingURL=EveryExpressionNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EveryExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EveryExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"EveryExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EveryExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAaxE,CAAC;AAEH,eAAO,MAAM,wBAAwB,GAAI,UAAU,iBAAiB,EAAE,KAAK,sBAAsB,KAAG,mBAkBnG,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,UAAU,mBAAmB,EAAE,MAAM,mBAAmB,EAAE,UAAS,YAAiB,WAU9H,CAAA"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, ExpressionUnion } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { ExpressionStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface ExpressionStatementNode extends AstNodeBase {
|
|
5
7
|
kind: "EXPRESSION_STATEMENT";
|
|
6
8
|
expression: ExpressionUnion;
|
|
7
9
|
}
|
|
8
10
|
export declare const ExpressionStatementNodeLayout: AstNodeLayout<ExpressionStatementNode>[];
|
|
9
11
|
export declare const expressionStatementToAstNode: (instance: BattleScriptToAST, ctx: ExpressionStatementContext) => ExpressionStatementNode;
|
|
12
|
+
export declare const expressionStatementFromAstNode: (instance: BattleScriptFromAST, node: ExpressionStatementNode, options?: VisitOptions) => string;
|
|
10
13
|
//# sourceMappingURL=ExpressionStatementNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpressionStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ExpressionStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAEzE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"ExpressionStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ExpressionStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAEzE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,mDAAmD,CAAC;AAClG,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC3D,IAAI,EAAE,sBAAsB,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;CAC5B;AAED,eAAO,MAAM,6BAA6B,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAMhF,CAAC;AAEH,eAAO,MAAM,4BAA4B,GAAI,UAAU,iBAAiB,EAAE,KAAK,0BAA0B,KAAG,uBAO3G,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,UAAU,mBAAmB,EAAE,MAAM,uBAAuB,EAAE,UAAS,YAAiB,WAKrI,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, BlockStatementNode, ExpressionUnion, VariableDeclaratorNode } from "@/types";
|
|
2
2
|
import type { ForStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
3
3
|
import type { BattleScriptToAST } from "@/services";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface ForStatementNode extends AstNodeBase {
|
|
5
7
|
kind: "FOR_STATEMENT";
|
|
6
8
|
init: VariableDeclaratorNode;
|
|
@@ -10,4 +12,5 @@ export interface ForStatementNode extends AstNodeBase {
|
|
|
10
12
|
}
|
|
11
13
|
export declare const ForStatementNodeLayout: AstNodeLayout<ForStatementNode>[];
|
|
12
14
|
export declare const forStatementToAstNode: (instance: BattleScriptToAST, ctx: ForStatementContext) => ForStatementNode;
|
|
15
|
+
export declare const forStatementFromAstNode: (instance: BattleScriptFromAST, node: ForStatementNode, options?: VisitOptions) => string;
|
|
13
16
|
//# sourceMappingURL=ForStatementNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ForStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAErH,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,mDAAmD,CAAC;AAC3F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ForStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ForStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAE,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAErH,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,mDAAmD,CAAC;AAC3F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACpD,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,sBAAsB,CAAC;IAC7B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,gBAAgB,CAAC,EAelE,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,UAAU,iBAAiB,EAAE,KAAK,mBAAmB,KAAG,gBAS7F,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,UAAU,mBAAmB,EAAE,MAAM,gBAAgB,EAAE,UAAS,YAAiB,WAKvH,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, DataTypeNode, FunctionParameterUnion, IdentifierNode } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { FunctionDeclarationContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface FunctionDeclarationNode extends AstNodeBase {
|
|
5
7
|
kind: "FUNCTION_DECLARATION";
|
|
6
8
|
returnType: DataTypeNode;
|
|
@@ -11,4 +13,5 @@ export interface FunctionDeclarationNode extends AstNodeBase {
|
|
|
11
13
|
}
|
|
12
14
|
export declare const FunctionDeclarationNodeLayout: AstNodeLayout<FunctionDeclarationNode>[];
|
|
13
15
|
export declare const functionDeclarationToAstNode: (instance: BattleScriptToAST, ctx: FunctionDeclarationContext) => FunctionDeclarationNode;
|
|
16
|
+
export declare const functionDeclarationFromAstNode: (instance: BattleScriptFromAST, node: FunctionDeclarationNode, options?: VisitOptions) => string;
|
|
14
17
|
//# sourceMappingURL=FunctionDeclarationNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/FunctionDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,sBAAsB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE9G,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"FunctionDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/FunctionDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,sBAAsB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE9G,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,mDAAmD,CAAC;AAClG,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC3D,IAAI,EAAE,sBAAsB,CAAC;IAC7B,UAAU,EAAE,YAAY,CAAC;IACzB,EAAE,EAAE,cAAc,CAAC;IACnB,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,6BAA6B,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAehF,CAAC;AAEH,eAAO,MAAM,4BAA4B,GAAI,UAAU,iBAAiB,EAAE,KAAK,0BAA0B,KAAG,uBAU3G,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,UAAU,mBAAmB,EAAE,MAAM,uBAAuB,EAAE,UAAS,YAAiB,WAgBtI,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, BlockStatementNode, DataTypeNode, IdentifierNode, TokenUnion } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { FunctionDefinitionContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface FunctionDefinitionNode extends AstNodeBase {
|
|
5
7
|
kind: "FUNCTION_DEFINITION";
|
|
6
8
|
returnType: DataTypeNode;
|
|
@@ -11,4 +13,5 @@ export interface FunctionDefinitionNode extends AstNodeBase {
|
|
|
11
13
|
}
|
|
12
14
|
export declare const FunctionDefinitionNodeLayout: AstNodeLayout<FunctionDefinitionNode>[];
|
|
13
15
|
export declare const functionDefinitionToAstNode: (instance: BattleScriptToAST, ctx: FunctionDefinitionContext) => FunctionDefinitionNode;
|
|
16
|
+
export declare const functionDefinitionFromAstNode: (instance: BattleScriptFromAST, node: FunctionDefinitionNode, options?: VisitOptions) => string;
|
|
14
17
|
//# sourceMappingURL=FunctionDefinitionNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionDefinitionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/FunctionDefinitionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"FunctionDefinitionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/FunctionDefinitionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AAEtH,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,mDAAmD,CAAC;AACjG,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IAC1D,IAAI,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,YAAY,CAAC;IACzB,EAAE,EAAE,UAAU,CAAC;IACf,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,4BAA4B,EAAE,aAAa,CAAC,sBAAsB,CAAC,EAe9E,CAAC;AAEH,eAAO,MAAM,2BAA2B,GAAI,UAAU,iBAAiB,EAAE,KAAK,yBAAyB,KAAG,sBAUzG,CAAA;AAED,eAAO,MAAM,6BAA6B,GAAI,UAAU,mBAAmB,EAAE,MAAM,sBAAsB,EAAE,UAAS,YAAiB,WAenI,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, TypeUnion } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { FunctionNameIdentifierContext, IdentifierContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface IdentifierNode extends AstNodeBase {
|
|
5
7
|
kind: "IDENTIFIER";
|
|
6
8
|
type?: TypeUnion;
|
|
@@ -9,4 +11,5 @@ export interface IdentifierNode extends AstNodeBase {
|
|
|
9
11
|
export declare const IdentifierNodeLayout: AstNodeLayout<IdentifierNode>[];
|
|
10
12
|
export declare const identifierToAstNode: (instance: BattleScriptToAST, ctx: IdentifierContext) => IdentifierNode;
|
|
11
13
|
export declare const functionNameIdentifierToAstNode: (instance: BattleScriptToAST, ctx: FunctionNameIdentifierContext) => IdentifierNode;
|
|
14
|
+
export declare const identifierFromAstNode: (instance: BattleScriptFromAST, node: IdentifierNode, options?: VisitOptions) => string;
|
|
12
15
|
//# sourceMappingURL=IdentifierNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentifierNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/IdentifierNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAEnE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EACX,6BAA6B,EAC7B,iBAAiB,EACjB,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"IdentifierNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/IdentifierNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,SAAS,EAAC,MAAM,SAAS,CAAC;AAEnE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EACX,6BAA6B,EAC7B,iBAAiB,EACjB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,cAAe,SAAQ,WAAW;IAClD,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,cAAc,CAAC,EAU9D,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,KAAG,cAMzF,CAAA;AAED,eAAO,MAAM,+BAA+B,GAAI,UAAU,iBAAiB,EAAE,KAAK,6BAA6B,KAAG,cAMjH,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,UAAU,mBAAmB,EAAE,MAAM,cAAc,EAAE,UAAS,YAAiB,WAKpH,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, BinaryExpressionNode, BlockStatementNode } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { IfStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface IfStatementNode extends AstNodeBase {
|
|
5
7
|
kind: "IF_STATEMENT";
|
|
6
8
|
test: BinaryExpressionNode;
|
|
@@ -9,4 +11,5 @@ export interface IfStatementNode extends AstNodeBase {
|
|
|
9
11
|
}
|
|
10
12
|
export declare const IfStatementNodeLayout: AstNodeLayout<IfStatementNode>[];
|
|
11
13
|
export declare const ifStatementToAstNode: (instance: BattleScriptToAST, ctx: IfStatementContext) => IfStatementNode;
|
|
14
|
+
export declare const ifStatementFromAstNode: (instance: BattleScriptFromAST, node: IfStatementNode, options?: VisitOptions) => string;
|
|
12
15
|
//# sourceMappingURL=IfStatementNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IfStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/IfStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,oBAAoB,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAElG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"IfStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/IfStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,oBAAoB,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAElG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mDAAmD,CAAC;AAC1F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,eAAgB,SAAQ,WAAW;IACnD,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,SAAS,EAAE,kBAAkB,GAAG,eAAe,GAAG,IAAI,CAAC;CACvD;AAED,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,eAAe,CAAC,EAYhE,CAAC;AAEH,eAAO,MAAM,oBAAoB,GAAI,UAAU,iBAAiB,EAAE,KAAK,kBAAkB,KAAG,eAkB3F,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,UAAU,mBAAmB,EAAE,MAAM,eAAe,EAAE,UAAS,YAAiB,WAMrH,CAAA"}
|
|
@@ -2,6 +2,8 @@ import type { AstNodeBase, AstNodeLayout, IdentifierNode, LiteralStringNode } fr
|
|
|
2
2
|
import type { ImportNativeContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
3
3
|
import { type ImportExternalContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
4
|
import type { BattleScriptToAST } from "@/services";
|
|
5
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
6
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
5
7
|
export interface ImportDeclarationNode extends AstNodeBase {
|
|
6
8
|
kind: "IMPORT_DECLARATION";
|
|
7
9
|
isNamespace: boolean;
|
|
@@ -11,4 +13,5 @@ export interface ImportDeclarationNode extends AstNodeBase {
|
|
|
11
13
|
export declare const ImportDeclarationNodeLayout: AstNodeLayout<ImportDeclarationNode>[];
|
|
12
14
|
export declare const importNativeToAstNode: (instance: BattleScriptToAST, ctx: ImportNativeContext) => ImportDeclarationNode;
|
|
13
15
|
export declare const importExternalToAstNode: (instance: BattleScriptToAST, ctx: ImportExternalContext) => ImportDeclarationNode;
|
|
16
|
+
export declare const importDeclarationFromAstNode: (instance: BattleScriptFromAST, node: ImportDeclarationNode, options?: VisitOptions) => string;
|
|
14
17
|
//# sourceMappingURL=ImportDeclarationNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ImportDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAE3F,OAAO,KAAK,EAAoB,mBAAmB,EAAC,MAAM,mDAAmD,CAAC;AAC9G,OAAO,EAAC,KAAK,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AAC7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ImportDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ImportDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAE3F,OAAO,KAAK,EAAoB,mBAAmB,EAAC,MAAM,mDAAmD,CAAC;AAC9G,OAAO,EAAC,KAAK,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AAC7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACzD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,iBAAiB,GAAG,cAAc,CAAC;CAC3C;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,qBAAqB,CAAC,EAY5E,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,UAAU,iBAAiB,EAAE,KAAK,mBAAmB,KAAG,qBAgB7F,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,UAAU,iBAAiB,EAAE,KAAK,qBAAqB,KAAG,qBAQjG,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,UAAU,mBAAmB,EAAE,MAAM,qBAAqB,EAAE,UAAS,YAAiB,WAQjI,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNode, AstNodeBase, AstNodeLayout } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { InterfaceDeclarationContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface InterfaceNode extends AstNodeBase {
|
|
5
7
|
kind: "INTERFACE";
|
|
6
8
|
name: AstNode;
|
|
@@ -9,4 +11,5 @@ export interface InterfaceNode extends AstNodeBase {
|
|
|
9
11
|
}
|
|
10
12
|
export declare const InterfaceNodeLayout: AstNodeLayout<InterfaceNode>[];
|
|
11
13
|
export declare const interfaceDeclarationToAstNode: (instance: BattleScriptToAST, ctx: InterfaceDeclarationContext) => InterfaceNode;
|
|
14
|
+
export declare const interfaceDeclarationFromAstNode: (instance: BattleScriptFromAST, node: InterfaceNode, options?: VisitOptions) => string;
|
|
12
15
|
//# sourceMappingURL=InterfaceNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InterfaceNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/InterfaceNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAEjE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,2BAA2B,EAAC,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"InterfaceNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/InterfaceNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAEjE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,2BAA2B,EAAC,MAAM,mDAAmD,CAAC;AACnG,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,aAAc,SAAQ,WAAW;IACjD,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,OAAO,EAAE,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,aAAa,CAAC,aAAa,CAAC,EAY5D,CAAC;AAEH,eAAO,MAAM,6BAA6B,GAAI,UAAU,iBAAiB,EAAE,KAAK,2BAA2B,KAAG,aAQ7G,CAAA;AAED,eAAO,MAAM,+BAA+B,GAAI,UAAU,mBAAmB,EAAE,MAAM,aAAa,EAAE,UAAS,YAAiB,WAe5H,CAAA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, DataTypeNode, IdentifierNode } from "@/types";
|
|
2
2
|
import type { BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { InterfacePropertyContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
|
+
import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
|
|
5
|
+
import type { VisitOptions } from "@/types/VisitOptions";
|
|
4
6
|
export interface InterfacePropertyDeclarationNode extends AstNodeBase {
|
|
5
7
|
kind: "INTERFACE_PROPERTY";
|
|
6
8
|
type: DataTypeNode;
|
|
@@ -8,4 +10,5 @@ export interface InterfacePropertyDeclarationNode extends AstNodeBase {
|
|
|
8
10
|
}
|
|
9
11
|
export declare const InterfacePropertyDeclarationNodeLayout: AstNodeLayout<InterfacePropertyDeclarationNode>[];
|
|
10
12
|
export declare const interfacePropertyToAstNode: (instance: BattleScriptToAST, ctx: InterfacePropertyContext) => InterfacePropertyDeclarationNode;
|
|
13
|
+
export declare const interfacePropertyDeclarationFromAstNode: (instance: BattleScriptFromAST, node: InterfacePropertyDeclarationNode, options?: VisitOptions) => string;
|
|
11
14
|
//# sourceMappingURL=InterfacePropertyDeclarationNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InterfacePropertyDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/InterfacePropertyDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEtF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"InterfacePropertyDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/InterfacePropertyDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEtF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,gCAAiC,SAAQ,WAAW;IACpE,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,YAAY,CAAC;IACnB,GAAG,EAAE,cAAc,CAAC;CACpB;AAED,eAAO,MAAM,sCAAsC,EAAE,aAAa,CAAC,gCAAgC,CAAC,EASlG,CAAC;AAEH,eAAO,MAAM,0BAA0B,GAAI,UAAU,iBAAiB,EAAE,KAAK,wBAAwB,KAAG,gCAWvG,CAAA;AAED,eAAO,MAAM,uCAAuC,GAAI,UAAU,mBAAmB,EAAE,MAAM,gCAAgC,EAAE,UAAS,YAAiB,WAQvJ,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout } from "@/types";
|
|
2
|
-
import type { BattleScriptToAST } from "@/services";
|
|
2
|
+
import type { BattleScriptFromAST, BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { BooleanLiteralContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
4
|
export interface LiteralBooleanNode extends AstNodeBase {
|
|
5
5
|
kind: "LITERAL_BOOLEAN";
|
|
@@ -8,4 +8,5 @@ export interface LiteralBooleanNode extends AstNodeBase {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const LiteralBooleanNodeLayout: AstNodeLayout<LiteralBooleanNode>[];
|
|
10
10
|
export declare const booleanLiteralToAstNode: (instance: BattleScriptToAST, ctx: BooleanLiteralContext) => LiteralBooleanNode;
|
|
11
|
+
export declare const literalBooleanFromAstNode: (instance: BattleScriptFromAST, node: any) => any;
|
|
11
12
|
//# sourceMappingURL=LiteralBooleanNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiteralBooleanNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/LiteralBooleanNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"LiteralBooleanNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/LiteralBooleanNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,YAAY,CAAC;AACvE,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AAE7F,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACtD,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAMtE,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,UAAU,iBAAiB,EAAE,KAAK,qBAAqB,KAAG,kBAQjG,CAAA;AACD,eAAO,MAAM,yBAAyB,GAAI,UAAU,mBAAmB,EAAE,MAAM,GAAG,QAAa,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout } from "@/types";
|
|
2
|
+
import type { BattleScriptFromAST } from "@/services";
|
|
2
3
|
export interface LiteralDoubleNode extends AstNodeBase {
|
|
3
4
|
kind: "LITERAL_DOUBLE";
|
|
4
5
|
value: number;
|
|
5
6
|
raw: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const LiteralDoubleNodeLayout: AstNodeLayout<LiteralDoubleNode>[];
|
|
9
|
+
export declare const literalDoubleFromAstNode: (instance: BattleScriptFromAST, node: any) => any;
|
|
8
10
|
//# sourceMappingURL=LiteralDoubleNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiteralDoubleNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/LiteralDoubleNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"LiteralDoubleNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/LiteralDoubleNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,YAAY,CAAC;AAEpD,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACrD,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,uBAAuB,EAAE,aAAa,CAAC,iBAAiB,CAAC,EAMpE,CAAC;AACH,eAAO,MAAM,wBAAwB,GAAI,UAAU,mBAAmB,EAAE,MAAM,GAAG,QAAa,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout } from "@/types";
|
|
2
|
+
import type { BattleScriptFromAST } from "@/services";
|
|
2
3
|
export interface LiteralFloatNode extends AstNodeBase {
|
|
3
4
|
kind: "LITERAL_FLOAT";
|
|
4
5
|
value: number;
|
|
5
6
|
raw: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const LiteralFloatNodeLayout: AstNodeLayout<LiteralFloatNode>[];
|
|
9
|
+
export declare const literalFloatFromAstNode: (instance: BattleScriptFromAST, node: any) => any;
|
|
8
10
|
//# sourceMappingURL=LiteralFloatNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiteralFloatNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/LiteralFloatNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"LiteralFloatNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/LiteralFloatNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,YAAY,CAAC;AAEpD,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACpD,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,gBAAgB,CAAC,EAMlE,CAAC;AACH,eAAO,MAAM,uBAAuB,GAAI,UAAU,mBAAmB,EAAE,MAAM,GAAG,QAAa,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout, LiteralDoubleNode, LiteralFloatNode } from "@/types";
|
|
2
2
|
import type { NumberLiteralContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
3
|
-
import type { BattleScriptToAST } from "@/services";
|
|
3
|
+
import type { BattleScriptFromAST, BattleScriptToAST } from "@/services";
|
|
4
4
|
export interface LiteralIntNode extends AstNodeBase {
|
|
5
5
|
kind: "LITERAL_INT";
|
|
6
6
|
value: number;
|
|
@@ -8,4 +8,5 @@ export interface LiteralIntNode extends AstNodeBase {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const LiteralIntNodeLayout: AstNodeLayout<LiteralIntNode>[];
|
|
10
10
|
export declare const numberLiteralToAstNode: (instance: BattleScriptToAST, ctx: NumberLiteralContext) => LiteralIntNode | LiteralFloatNode | LiteralDoubleNode;
|
|
11
|
+
export declare const literalIntFromAstNode: (instance: BattleScriptFromAST, node: any) => any;
|
|
11
12
|
//# sourceMappingURL=LiteralIntNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiteralIntNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/LiteralIntNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mDAAmD,CAAC;AAC5F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"LiteralIntNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/LiteralIntNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mDAAmD,CAAC;AAC5F,OAAO,KAAK,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAEvE,MAAM,WAAW,cAAe,SAAQ,WAAW;IAClD,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,cAAc,CAAC,EAM9D,CAAC;AAMH,eAAO,MAAM,sBAAsB,GAAI,UAAU,iBAAiB,EAAE,KAAK,oBAAoB,KAAG,cAAc,GAAG,gBAAgB,GAAG,iBAmBnI,CAAA;AACD,eAAO,MAAM,qBAAqB,GAAI,UAAU,mBAAmB,EAAE,MAAM,GAAG,QAAa,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AstNodeBase, AstNodeLayout } from "@/types";
|
|
2
|
-
import type { BattleScriptToAST } from "@/services";
|
|
2
|
+
import type { BattleScriptFromAST, BattleScriptToAST } from "@/services";
|
|
3
3
|
import type { NullLiteralContext } from "@/services/grammar/ts/language/BattleScriptParser";
|
|
4
4
|
export interface LiteralNullNode extends AstNodeBase {
|
|
5
5
|
kind: "LITERAL_NULL";
|
|
@@ -7,4 +7,5 @@ export interface LiteralNullNode extends AstNodeBase {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const LiteralNullNodeLayout: AstNodeLayout<LiteralNullNode>[];
|
|
9
9
|
export declare const nullLiteralToAstNode: (instance: BattleScriptToAST, ctx: NullLiteralContext) => LiteralNullNode;
|
|
10
|
+
export declare const literalNullFromAstNode: (instance: BattleScriptFromAST, node: any) => any;
|
|
10
11
|
//# sourceMappingURL=LiteralNullNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiteralNullNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/LiteralNullNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"LiteralNullNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/LiteralNullNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,YAAY,CAAC;AACvE,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,mDAAmD,CAAC;AAE1F,MAAM,WAAW,eAAgB,SAAQ,WAAW;IACnD,IAAI,EAAE,cAAc,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,qBAAqB,EAAE,aAAa,CAAC,eAAe,CAAC,EAGhE,CAAC;AAEH,eAAO,MAAM,oBAAoB,GAAI,UAAU,iBAAiB,EAAE,KAAK,kBAAkB,KAAG,eAO3F,CAAA;AACD,eAAO,MAAM,sBAAsB,GAAI,UAAU,mBAAmB,EAAE,MAAM,GAAG,QAAa,CAAC"}
|