@galacean/engine-shader-compiler 0.0.0-experimental-2.0-skill.0 → 0.0.0-experimental-2.0-migrate.7
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/dist/browser.js +167 -265
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/browser.verbose.js +198 -358
- package/dist/browser.verbose.js.map +1 -1
- package/dist/browser.verbose.min.js +1 -1
- package/dist/browser.verbose.min.js.map +1 -1
- package/dist/main.js +167 -265
- package/dist/main.js.map +1 -1
- package/dist/main.verbose.js +198 -358
- package/dist/main.verbose.js.map +1 -1
- package/dist/module.js +167 -265
- package/dist/module.js.map +1 -1
- package/dist/module.verbose.js +198 -358
- package/dist/module.verbose.js.map +1 -1
- package/package.json +4 -4
- package/types/ShaderCompiler.d.ts +6 -0
- package/types/ShaderCompilerUtils.d.ts +2 -0
- package/types/lalr/State.d.ts +2 -0
- package/types/parser/AST.d.ts +101 -4
package/dist/browser.js
CHANGED
|
@@ -87,61 +87,6 @@
|
|
|
87
87
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
/******************************************************************************
|
|
91
|
-
Copyright (c) Microsoft Corporation.
|
|
92
|
-
|
|
93
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
94
|
-
purpose with or without fee is hereby granted.
|
|
95
|
-
|
|
96
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
97
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
98
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
99
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
100
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
101
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
102
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
103
|
-
***************************************************************************** */
|
|
104
|
-
|
|
105
|
-
function __decorate(decorators, target, key, desc) {
|
|
106
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
107
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
108
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
109
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function __generator(thisArg, body) {
|
|
113
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
114
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
115
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
116
|
-
function step(op) {
|
|
117
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
118
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
119
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
120
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
121
|
-
switch (op[0]) {
|
|
122
|
-
case 0: case 1: t = op; break;
|
|
123
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
124
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
125
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
126
|
-
default:
|
|
127
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
128
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
129
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
130
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
131
|
-
if (t[2]) _.ops.pop();
|
|
132
|
-
_.trys.pop(); continue;
|
|
133
|
-
}
|
|
134
|
-
op = body.call(thisArg, _);
|
|
135
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
136
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
141
|
-
var e = new Error(message);
|
|
142
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
90
|
var ShaderRange = /*#__PURE__*/ function() {
|
|
146
91
|
function ShaderRange() {}
|
|
147
92
|
var _proto = ShaderRange.prototype;
|
|
@@ -362,6 +307,11 @@
|
|
|
362
307
|
ShaderCompilerUtils._shaderCompilerObjectPoolSet[i].clear();
|
|
363
308
|
}
|
|
364
309
|
};
|
|
310
|
+
/** Release all objects retained by the compiler pools. */ ShaderCompilerUtils.releaseAllShaderCompilerObjectPool = function releaseAllShaderCompilerObjectPool() {
|
|
311
|
+
for(var i = 0, n = ShaderCompilerUtils._shaderCompilerObjectPoolSet.length; i < n; i++){
|
|
312
|
+
ShaderCompilerUtils._shaderCompilerObjectPoolSet[i].garbageCollection();
|
|
313
|
+
}
|
|
314
|
+
};
|
|
365
315
|
ShaderCompilerUtils.createGSError = function createGSError(message, errorName, source, location, file) {
|
|
366
316
|
console.error(message);
|
|
367
317
|
var err = new Error(message);
|
|
@@ -602,6 +552,54 @@
|
|
|
602
552
|
return ParserUtils;
|
|
603
553
|
}();
|
|
604
554
|
|
|
555
|
+
/******************************************************************************
|
|
556
|
+
Copyright (c) Microsoft Corporation.
|
|
557
|
+
|
|
558
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
559
|
+
purpose with or without fee is hereby granted.
|
|
560
|
+
|
|
561
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
562
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
563
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
564
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
565
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
566
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
567
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
568
|
+
***************************************************************************** */
|
|
569
|
+
|
|
570
|
+
function __generator(thisArg, body) {
|
|
571
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
572
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
573
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
574
|
+
function step(op) {
|
|
575
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
576
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
577
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
578
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
579
|
+
switch (op[0]) {
|
|
580
|
+
case 0: case 1: t = op; break;
|
|
581
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
582
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
583
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
584
|
+
default:
|
|
585
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
586
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
587
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
588
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
589
|
+
if (t[2]) _.ops.pop();
|
|
590
|
+
_.trys.pop(); continue;
|
|
591
|
+
}
|
|
592
|
+
op = body.call(thisArg, _);
|
|
593
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
594
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
599
|
+
var e = new Error(message);
|
|
600
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
601
|
+
};
|
|
602
|
+
|
|
605
603
|
function _is_native_reflect_construct() {
|
|
606
604
|
// Since Reflect.construct can't be properly polyfilled, some
|
|
607
605
|
// implementations (e.g. core-js@2) don't set the correct internal slots.
|
|
@@ -2703,12 +2701,6 @@
|
|
|
2703
2701
|
this.isInMacroBranch = isInMacroBranch;
|
|
2704
2702
|
};
|
|
2705
2703
|
|
|
2706
|
-
function ASTNodeDecorator(nonTerminal) {
|
|
2707
|
-
return function(ASTNode) {
|
|
2708
|
-
ASTNode.prototype.nt = nonTerminal;
|
|
2709
|
-
ASTNode.pool = ShaderCompilerUtils.createObjectPool(ASTNode);
|
|
2710
|
-
};
|
|
2711
|
-
}
|
|
2712
2704
|
var TreeNode = /*#__PURE__*/ function() {
|
|
2713
2705
|
function TreeNode() {}
|
|
2714
2706
|
var _proto = TreeNode.prototype;
|
|
@@ -2742,6 +2734,12 @@
|
|
|
2742
2734
|
* Do semantic analyze right after the ast node is generated.
|
|
2743
2735
|
*/ _proto.semanticAnalyze = function semanticAnalyze(sa) {};
|
|
2744
2736
|
_create_class(TreeNode, [
|
|
2737
|
+
{
|
|
2738
|
+
key: "nt",
|
|
2739
|
+
get: /** The non-terminal in grammar. */ function get() {
|
|
2740
|
+
return this.constructor.nonTerminal;
|
|
2741
|
+
}
|
|
2742
|
+
},
|
|
2745
2743
|
{
|
|
2746
2744
|
key: "parent",
|
|
2747
2745
|
get: /**
|
|
@@ -2766,9 +2764,22 @@
|
|
|
2766
2764
|
return this._location;
|
|
2767
2765
|
}
|
|
2768
2766
|
}
|
|
2767
|
+
], [
|
|
2768
|
+
{
|
|
2769
|
+
key: "pool",
|
|
2770
|
+
get: function get() {
|
|
2771
|
+
var pool = TreeNode._pools.get(this);
|
|
2772
|
+
if (!pool) {
|
|
2773
|
+
pool = ShaderCompilerUtils.createObjectPool(this);
|
|
2774
|
+
TreeNode._pools.set(this, pool);
|
|
2775
|
+
}
|
|
2776
|
+
return pool;
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2769
2779
|
]);
|
|
2770
2780
|
return TreeNode;
|
|
2771
2781
|
}();
|
|
2782
|
+
TreeNode._pools = new WeakMap();
|
|
2772
2783
|
(function(ASTNode) {
|
|
2773
2784
|
function _unwrapToken(node) {
|
|
2774
2785
|
if (_instanceof(node, BaseToken)) {
|
|
@@ -2791,10 +2802,8 @@
|
|
|
2791
2802
|
}
|
|
2792
2803
|
return TrivialNode;
|
|
2793
2804
|
}(TreeNode);
|
|
2805
|
+
TrivialNode.nonTerminal = NoneTerminal._ignore;
|
|
2794
2806
|
ASTNode.TrivialNode = TrivialNode;
|
|
2795
|
-
TrivialNode = __decorate([
|
|
2796
|
-
ASTNodeDecorator(NoneTerminal._ignore)
|
|
2797
|
-
], TrivialNode);
|
|
2798
2807
|
var ScopeBrace = /*#__PURE__*/ function(TreeNode) {
|
|
2799
2808
|
_inherits(ScopeBrace, TreeNode);
|
|
2800
2809
|
function ScopeBrace() {
|
|
@@ -2806,10 +2815,8 @@
|
|
|
2806
2815
|
};
|
|
2807
2816
|
return ScopeBrace;
|
|
2808
2817
|
}(TreeNode);
|
|
2818
|
+
ScopeBrace.nonTerminal = NoneTerminal.scope_brace;
|
|
2809
2819
|
ASTNode.ScopeBrace = ScopeBrace;
|
|
2810
|
-
ScopeBrace = __decorate([
|
|
2811
|
-
ASTNodeDecorator(NoneTerminal.scope_brace)
|
|
2812
|
-
], ScopeBrace);
|
|
2813
2820
|
var ScopeEndBrace = /*#__PURE__*/ function(TreeNode) {
|
|
2814
2821
|
_inherits(ScopeEndBrace, TreeNode);
|
|
2815
2822
|
function ScopeEndBrace() {
|
|
@@ -2821,10 +2828,8 @@
|
|
|
2821
2828
|
};
|
|
2822
2829
|
return ScopeEndBrace;
|
|
2823
2830
|
}(TreeNode);
|
|
2831
|
+
ScopeEndBrace.nonTerminal = NoneTerminal.scope_end_brace;
|
|
2824
2832
|
ASTNode.ScopeEndBrace = ScopeEndBrace;
|
|
2825
|
-
ScopeEndBrace = __decorate([
|
|
2826
|
-
ASTNodeDecorator(NoneTerminal.scope_end_brace)
|
|
2827
|
-
], ScopeEndBrace);
|
|
2828
2833
|
var JumpStatement = /*#__PURE__*/ function(TreeNode) {
|
|
2829
2834
|
_inherits(JumpStatement, TreeNode);
|
|
2830
2835
|
function JumpStatement() {
|
|
@@ -2844,10 +2849,8 @@
|
|
|
2844
2849
|
};
|
|
2845
2850
|
return JumpStatement;
|
|
2846
2851
|
}(TreeNode);
|
|
2852
|
+
JumpStatement.nonTerminal = NoneTerminal.jump_statement;
|
|
2847
2853
|
ASTNode.JumpStatement = JumpStatement;
|
|
2848
|
-
JumpStatement = __decorate([
|
|
2849
|
-
ASTNodeDecorator(NoneTerminal.jump_statement)
|
|
2850
|
-
], JumpStatement);
|
|
2851
2854
|
var ExpressionAstNode = /*#__PURE__*/ function(TreeNode) {
|
|
2852
2855
|
_inherits(ExpressionAstNode, TreeNode);
|
|
2853
2856
|
function ExpressionAstNode() {
|
|
@@ -2909,10 +2912,8 @@
|
|
|
2909
2912
|
};
|
|
2910
2913
|
return SingleDeclaration;
|
|
2911
2914
|
}(TreeNode);
|
|
2915
|
+
SingleDeclaration.nonTerminal = NoneTerminal.single_declaration;
|
|
2912
2916
|
ASTNode.SingleDeclaration = SingleDeclaration;
|
|
2913
|
-
SingleDeclaration = __decorate([
|
|
2914
|
-
ASTNodeDecorator(NoneTerminal.single_declaration)
|
|
2915
|
-
], SingleDeclaration);
|
|
2916
2917
|
var FullySpecifiedType = /*#__PURE__*/ function(TreeNode) {
|
|
2917
2918
|
_inherits(FullySpecifiedType, TreeNode);
|
|
2918
2919
|
function FullySpecifiedType() {
|
|
@@ -2926,10 +2927,8 @@
|
|
|
2926
2927
|
};
|
|
2927
2928
|
return FullySpecifiedType;
|
|
2928
2929
|
}(TreeNode);
|
|
2930
|
+
FullySpecifiedType.nonTerminal = NoneTerminal.fully_specified_type;
|
|
2929
2931
|
ASTNode.FullySpecifiedType = FullySpecifiedType;
|
|
2930
|
-
FullySpecifiedType = __decorate([
|
|
2931
|
-
ASTNodeDecorator(NoneTerminal.fully_specified_type)
|
|
2932
|
-
], FullySpecifiedType);
|
|
2933
2932
|
var TypeQualifier = /*#__PURE__*/ function(TreeNode) {
|
|
2934
2933
|
_inherits(TypeQualifier, TreeNode);
|
|
2935
2934
|
function TypeQualifier() {
|
|
@@ -2937,10 +2936,8 @@
|
|
|
2937
2936
|
}
|
|
2938
2937
|
return TypeQualifier;
|
|
2939
2938
|
}(TreeNode);
|
|
2939
|
+
TypeQualifier.nonTerminal = NoneTerminal.type_qualifier;
|
|
2940
2940
|
ASTNode.TypeQualifier = TypeQualifier;
|
|
2941
|
-
TypeQualifier = __decorate([
|
|
2942
|
-
ASTNodeDecorator(NoneTerminal.type_qualifier)
|
|
2943
|
-
], TypeQualifier);
|
|
2944
2941
|
var SingleTypeQualifier = /*#__PURE__*/ function(TreeNode) {
|
|
2945
2942
|
_inherits(SingleTypeQualifier, TreeNode);
|
|
2946
2943
|
function SingleTypeQualifier() {
|
|
@@ -2959,10 +2956,8 @@
|
|
|
2959
2956
|
};
|
|
2960
2957
|
return SingleTypeQualifier;
|
|
2961
2958
|
}(TreeNode);
|
|
2959
|
+
SingleTypeQualifier.nonTerminal = NoneTerminal.single_type_qualifier;
|
|
2962
2960
|
ASTNode.SingleTypeQualifier = SingleTypeQualifier;
|
|
2963
|
-
SingleTypeQualifier = __decorate([
|
|
2964
|
-
ASTNodeDecorator(NoneTerminal.single_type_qualifier)
|
|
2965
|
-
], SingleTypeQualifier);
|
|
2966
2961
|
var TypeSpecifier = /*#__PURE__*/ function(TreeNode) {
|
|
2967
2962
|
_inherits(TypeSpecifier, TreeNode);
|
|
2968
2963
|
function TypeSpecifier() {
|
|
@@ -2991,10 +2986,8 @@
|
|
|
2991
2986
|
]);
|
|
2992
2987
|
return TypeSpecifier;
|
|
2993
2988
|
}(TreeNode);
|
|
2989
|
+
TypeSpecifier.nonTerminal = NoneTerminal.type_specifier;
|
|
2994
2990
|
ASTNode.TypeSpecifier = TypeSpecifier;
|
|
2995
|
-
TypeSpecifier = __decorate([
|
|
2996
|
-
ASTNodeDecorator(NoneTerminal.type_specifier)
|
|
2997
|
-
], TypeSpecifier);
|
|
2998
2991
|
var ArraySpecifier = /*#__PURE__*/ function(TreeNode) {
|
|
2999
2992
|
_inherits(ArraySpecifier, TreeNode);
|
|
3000
2993
|
function ArraySpecifier() {
|
|
@@ -3007,10 +3000,8 @@
|
|
|
3007
3000
|
};
|
|
3008
3001
|
return ArraySpecifier;
|
|
3009
3002
|
}(TreeNode);
|
|
3003
|
+
ArraySpecifier.nonTerminal = NoneTerminal.array_specifier;
|
|
3010
3004
|
ASTNode.ArraySpecifier = ArraySpecifier;
|
|
3011
|
-
ArraySpecifier = __decorate([
|
|
3012
|
-
ASTNodeDecorator(NoneTerminal.array_specifier)
|
|
3013
|
-
], ArraySpecifier);
|
|
3014
3005
|
var IntegerConstantExpressionOperator = /*#__PURE__*/ function(TreeNode) {
|
|
3015
3006
|
_inherits(IntegerConstantExpressionOperator, TreeNode);
|
|
3016
3007
|
function IntegerConstantExpressionOperator() {
|
|
@@ -3052,10 +3043,8 @@
|
|
|
3052
3043
|
};
|
|
3053
3044
|
return IntegerConstantExpressionOperator;
|
|
3054
3045
|
}(TreeNode);
|
|
3046
|
+
IntegerConstantExpressionOperator.nonTerminal = NoneTerminal.integer_constant_expression_operator;
|
|
3055
3047
|
ASTNode.IntegerConstantExpressionOperator = IntegerConstantExpressionOperator;
|
|
3056
|
-
IntegerConstantExpressionOperator = __decorate([
|
|
3057
|
-
ASTNodeDecorator(NoneTerminal.integer_constant_expression_operator)
|
|
3058
|
-
], IntegerConstantExpressionOperator);
|
|
3059
3048
|
var IntegerConstantExpression = /*#__PURE__*/ function(TreeNode) {
|
|
3060
3049
|
_inherits(IntegerConstantExpression, TreeNode);
|
|
3061
3050
|
function IntegerConstantExpression() {
|
|
@@ -3075,10 +3064,8 @@
|
|
|
3075
3064
|
};
|
|
3076
3065
|
return IntegerConstantExpression;
|
|
3077
3066
|
}(TreeNode);
|
|
3067
|
+
IntegerConstantExpression.nonTerminal = NoneTerminal.integer_constant_expression;
|
|
3078
3068
|
ASTNode.IntegerConstantExpression = IntegerConstantExpression;
|
|
3079
|
-
IntegerConstantExpression = __decorate([
|
|
3080
|
-
ASTNodeDecorator(NoneTerminal.integer_constant_expression)
|
|
3081
|
-
], IntegerConstantExpression);
|
|
3082
3069
|
var TypeSpecifierNonArray = /*#__PURE__*/ function(TreeNode) {
|
|
3083
3070
|
_inherits(TypeSpecifierNonArray, TreeNode);
|
|
3084
3071
|
function TypeSpecifierNonArray() {
|
|
@@ -3102,10 +3089,8 @@
|
|
|
3102
3089
|
};
|
|
3103
3090
|
return TypeSpecifierNonArray;
|
|
3104
3091
|
}(TreeNode);
|
|
3092
|
+
TypeSpecifierNonArray.nonTerminal = NoneTerminal.type_specifier_nonarray;
|
|
3105
3093
|
ASTNode.TypeSpecifierNonArray = TypeSpecifierNonArray;
|
|
3106
|
-
TypeSpecifierNonArray = __decorate([
|
|
3107
|
-
ASTNodeDecorator(NoneTerminal.type_specifier_nonarray)
|
|
3108
|
-
], TypeSpecifierNonArray);
|
|
3109
3094
|
var ExtBuiltinTypeSpecifierNonArray = /*#__PURE__*/ function(TreeNode) {
|
|
3110
3095
|
_inherits(ExtBuiltinTypeSpecifierNonArray, TreeNode);
|
|
3111
3096
|
function ExtBuiltinTypeSpecifierNonArray() {
|
|
@@ -3119,10 +3104,8 @@
|
|
|
3119
3104
|
};
|
|
3120
3105
|
return ExtBuiltinTypeSpecifierNonArray;
|
|
3121
3106
|
}(TreeNode);
|
|
3107
|
+
ExtBuiltinTypeSpecifierNonArray.nonTerminal = NoneTerminal.ext_builtin_type_specifier_nonarray;
|
|
3122
3108
|
ASTNode.ExtBuiltinTypeSpecifierNonArray = ExtBuiltinTypeSpecifierNonArray;
|
|
3123
|
-
ExtBuiltinTypeSpecifierNonArray = __decorate([
|
|
3124
|
-
ASTNodeDecorator(NoneTerminal.ext_builtin_type_specifier_nonarray)
|
|
3125
|
-
], ExtBuiltinTypeSpecifierNonArray);
|
|
3126
3109
|
var InitDeclaratorList = /*#__PURE__*/ function(TreeNode) {
|
|
3127
3110
|
_inherits(InitDeclaratorList, TreeNode);
|
|
3128
3111
|
function InitDeclaratorList() {
|
|
@@ -3155,10 +3138,8 @@
|
|
|
3155
3138
|
};
|
|
3156
3139
|
return InitDeclaratorList;
|
|
3157
3140
|
}(TreeNode);
|
|
3141
|
+
InitDeclaratorList.nonTerminal = NoneTerminal.init_declarator_list;
|
|
3158
3142
|
ASTNode.InitDeclaratorList = InitDeclaratorList;
|
|
3159
|
-
InitDeclaratorList = __decorate([
|
|
3160
|
-
ASTNodeDecorator(NoneTerminal.init_declarator_list)
|
|
3161
|
-
], InitDeclaratorList);
|
|
3162
3143
|
var IdentifierList = /*#__PURE__*/ function(TreeNode) {
|
|
3163
3144
|
_inherits(IdentifierList, TreeNode);
|
|
3164
3145
|
function IdentifierList() {
|
|
@@ -3187,10 +3168,8 @@
|
|
|
3187
3168
|
};
|
|
3188
3169
|
return IdentifierList;
|
|
3189
3170
|
}(TreeNode);
|
|
3171
|
+
IdentifierList.nonTerminal = NoneTerminal.identifier_list;
|
|
3190
3172
|
ASTNode.IdentifierList = IdentifierList;
|
|
3191
|
-
IdentifierList = __decorate([
|
|
3192
|
-
ASTNodeDecorator(NoneTerminal.identifier_list)
|
|
3193
|
-
], IdentifierList);
|
|
3194
3173
|
var Declaration = /*#__PURE__*/ function(TreeNode) {
|
|
3195
3174
|
_inherits(Declaration, TreeNode);
|
|
3196
3175
|
function Declaration() {
|
|
@@ -3202,10 +3181,8 @@
|
|
|
3202
3181
|
};
|
|
3203
3182
|
return Declaration;
|
|
3204
3183
|
}(TreeNode);
|
|
3184
|
+
Declaration.nonTerminal = NoneTerminal.declaration;
|
|
3205
3185
|
ASTNode.Declaration = Declaration;
|
|
3206
|
-
Declaration = __decorate([
|
|
3207
|
-
ASTNodeDecorator(NoneTerminal.declaration)
|
|
3208
|
-
], Declaration);
|
|
3209
3186
|
var FunctionProtoType = /*#__PURE__*/ function(TreeNode) {
|
|
3210
3187
|
_inherits(FunctionProtoType, TreeNode);
|
|
3211
3188
|
function FunctionProtoType() {
|
|
@@ -3221,10 +3198,8 @@
|
|
|
3221
3198
|
};
|
|
3222
3199
|
return FunctionProtoType;
|
|
3223
3200
|
}(TreeNode);
|
|
3201
|
+
FunctionProtoType.nonTerminal = NoneTerminal.function_prototype;
|
|
3224
3202
|
ASTNode.FunctionProtoType = FunctionProtoType;
|
|
3225
|
-
FunctionProtoType = __decorate([
|
|
3226
|
-
ASTNodeDecorator(NoneTerminal.function_prototype)
|
|
3227
|
-
], FunctionProtoType);
|
|
3228
3203
|
var FunctionDeclarator = /*#__PURE__*/ function(TreeNode) {
|
|
3229
3204
|
_inherits(FunctionDeclarator, TreeNode);
|
|
3230
3205
|
function FunctionDeclarator() {
|
|
@@ -3244,10 +3219,8 @@
|
|
|
3244
3219
|
};
|
|
3245
3220
|
return FunctionDeclarator;
|
|
3246
3221
|
}(TreeNode);
|
|
3222
|
+
FunctionDeclarator.nonTerminal = NoneTerminal.function_declarator;
|
|
3247
3223
|
ASTNode.FunctionDeclarator = FunctionDeclarator;
|
|
3248
|
-
FunctionDeclarator = __decorate([
|
|
3249
|
-
ASTNodeDecorator(NoneTerminal.function_declarator)
|
|
3250
|
-
], FunctionDeclarator);
|
|
3251
3224
|
var FunctionHeader = /*#__PURE__*/ function(TreeNode) {
|
|
3252
3225
|
_inherits(FunctionHeader, TreeNode);
|
|
3253
3226
|
function FunctionHeader() {
|
|
@@ -3265,10 +3238,8 @@
|
|
|
3265
3238
|
};
|
|
3266
3239
|
return FunctionHeader;
|
|
3267
3240
|
}(TreeNode);
|
|
3241
|
+
FunctionHeader.nonTerminal = NoneTerminal.function_header;
|
|
3268
3242
|
ASTNode.FunctionHeader = FunctionHeader;
|
|
3269
|
-
FunctionHeader = __decorate([
|
|
3270
|
-
ASTNodeDecorator(NoneTerminal.function_header)
|
|
3271
|
-
], FunctionHeader);
|
|
3272
3243
|
var FunctionParameterList = /*#__PURE__*/ function(TreeNode) {
|
|
3273
3244
|
_inherits(FunctionParameterList, TreeNode);
|
|
3274
3245
|
function FunctionParameterList() {
|
|
@@ -3332,10 +3303,8 @@
|
|
|
3332
3303
|
};
|
|
3333
3304
|
return FunctionParameterList;
|
|
3334
3305
|
}(TreeNode);
|
|
3306
|
+
FunctionParameterList.nonTerminal = NoneTerminal.function_parameter_list;
|
|
3335
3307
|
ASTNode.FunctionParameterList = FunctionParameterList;
|
|
3336
|
-
FunctionParameterList = __decorate([
|
|
3337
|
-
ASTNodeDecorator(NoneTerminal.function_parameter_list)
|
|
3338
|
-
], FunctionParameterList);
|
|
3339
3308
|
var MacroParamCaseList = /*#__PURE__*/ function(TreeNode) {
|
|
3340
3309
|
_inherits(MacroParamCaseList, TreeNode);
|
|
3341
3310
|
function MacroParamCaseList() {
|
|
@@ -3343,10 +3312,8 @@
|
|
|
3343
3312
|
}
|
|
3344
3313
|
return MacroParamCaseList;
|
|
3345
3314
|
}(TreeNode);
|
|
3315
|
+
MacroParamCaseList.nonTerminal = NoneTerminal.macro_param_case_list;
|
|
3346
3316
|
ASTNode.MacroParamCaseList = MacroParamCaseList;
|
|
3347
|
-
MacroParamCaseList = __decorate([
|
|
3348
|
-
ASTNodeDecorator(NoneTerminal.macro_param_case_list)
|
|
3349
|
-
], MacroParamCaseList);
|
|
3350
3317
|
var MacroParamBlock = /*#__PURE__*/ function(TreeNode) {
|
|
3351
3318
|
_inherits(MacroParamBlock, TreeNode);
|
|
3352
3319
|
function MacroParamBlock() {
|
|
@@ -3354,10 +3321,8 @@
|
|
|
3354
3321
|
}
|
|
3355
3322
|
return MacroParamBlock;
|
|
3356
3323
|
}(TreeNode);
|
|
3324
|
+
MacroParamBlock.nonTerminal = NoneTerminal.macro_param_block;
|
|
3357
3325
|
ASTNode.MacroParamBlock = MacroParamBlock;
|
|
3358
|
-
MacroParamBlock = __decorate([
|
|
3359
|
-
ASTNodeDecorator(NoneTerminal.macro_param_block)
|
|
3360
|
-
], MacroParamBlock);
|
|
3361
3326
|
var MacroParameterBranch = /*#__PURE__*/ function(TreeNode) {
|
|
3362
3327
|
_inherits(MacroParameterBranch, TreeNode);
|
|
3363
3328
|
function MacroParameterBranch() {
|
|
@@ -3365,10 +3330,8 @@
|
|
|
3365
3330
|
}
|
|
3366
3331
|
return MacroParameterBranch;
|
|
3367
3332
|
}(TreeNode);
|
|
3333
|
+
MacroParameterBranch.nonTerminal = NoneTerminal.macro_parameter_branch;
|
|
3368
3334
|
ASTNode.MacroParameterBranch = MacroParameterBranch;
|
|
3369
|
-
MacroParameterBranch = __decorate([
|
|
3370
|
-
ASTNodeDecorator(NoneTerminal.macro_parameter_branch)
|
|
3371
|
-
], MacroParameterBranch);
|
|
3372
3335
|
var ParameterDeclaration = /*#__PURE__*/ function(TreeNode) {
|
|
3373
3336
|
_inherits(ParameterDeclaration, TreeNode);
|
|
3374
3337
|
function ParameterDeclaration() {
|
|
@@ -3396,10 +3359,8 @@
|
|
|
3396
3359
|
};
|
|
3397
3360
|
return ParameterDeclaration;
|
|
3398
3361
|
}(TreeNode);
|
|
3362
|
+
ParameterDeclaration.nonTerminal = NoneTerminal.parameter_declaration;
|
|
3399
3363
|
ASTNode.ParameterDeclaration = ParameterDeclaration;
|
|
3400
|
-
ParameterDeclaration = __decorate([
|
|
3401
|
-
ASTNodeDecorator(NoneTerminal.parameter_declaration)
|
|
3402
|
-
], ParameterDeclaration);
|
|
3403
3364
|
var ParameterDeclarator = /*#__PURE__*/ function(TreeNode) {
|
|
3404
3365
|
_inherits(ParameterDeclarator, TreeNode);
|
|
3405
3366
|
function ParameterDeclarator() {
|
|
@@ -3415,10 +3376,8 @@
|
|
|
3415
3376
|
};
|
|
3416
3377
|
return ParameterDeclarator;
|
|
3417
3378
|
}(TreeNode);
|
|
3379
|
+
ParameterDeclarator.nonTerminal = NoneTerminal.parameter_declarator;
|
|
3418
3380
|
ASTNode.ParameterDeclarator = ParameterDeclarator;
|
|
3419
|
-
ParameterDeclarator = __decorate([
|
|
3420
|
-
ASTNodeDecorator(NoneTerminal.parameter_declarator)
|
|
3421
|
-
], ParameterDeclarator);
|
|
3422
3381
|
var CompoundStatementNoScope = /*#__PURE__*/ function(TreeNode) {
|
|
3423
3382
|
_inherits(CompoundStatementNoScope, TreeNode);
|
|
3424
3383
|
function CompoundStatementNoScope() {
|
|
@@ -3426,10 +3385,8 @@
|
|
|
3426
3385
|
}
|
|
3427
3386
|
return CompoundStatementNoScope;
|
|
3428
3387
|
}(TreeNode);
|
|
3388
|
+
CompoundStatementNoScope.nonTerminal = NoneTerminal.compound_statement_no_scope;
|
|
3429
3389
|
ASTNode.CompoundStatementNoScope = CompoundStatementNoScope;
|
|
3430
|
-
CompoundStatementNoScope = __decorate([
|
|
3431
|
-
ASTNodeDecorator(NoneTerminal.compound_statement_no_scope)
|
|
3432
|
-
], CompoundStatementNoScope);
|
|
3433
3390
|
var StatementList = /*#__PURE__*/ function(TreeNode) {
|
|
3434
3391
|
_inherits(StatementList, TreeNode);
|
|
3435
3392
|
function StatementList() {
|
|
@@ -3441,10 +3398,8 @@
|
|
|
3441
3398
|
};
|
|
3442
3399
|
return StatementList;
|
|
3443
3400
|
}(TreeNode);
|
|
3401
|
+
StatementList.nonTerminal = NoneTerminal.statement_list;
|
|
3444
3402
|
ASTNode.StatementList = StatementList;
|
|
3445
|
-
StatementList = __decorate([
|
|
3446
|
-
ASTNodeDecorator(NoneTerminal.statement_list)
|
|
3447
|
-
], StatementList);
|
|
3448
3403
|
var FunctionDefinition = /*#__PURE__*/ function(TreeNode) {
|
|
3449
3404
|
_inherits(FunctionDefinition, TreeNode);
|
|
3450
3405
|
function FunctionDefinition() {
|
|
@@ -3483,10 +3438,8 @@
|
|
|
3483
3438
|
};
|
|
3484
3439
|
return FunctionDefinition;
|
|
3485
3440
|
}(TreeNode);
|
|
3441
|
+
FunctionDefinition.nonTerminal = NoneTerminal.function_definition;
|
|
3486
3442
|
ASTNode.FunctionDefinition = FunctionDefinition;
|
|
3487
|
-
FunctionDefinition = __decorate([
|
|
3488
|
-
ASTNodeDecorator(NoneTerminal.function_definition)
|
|
3489
|
-
], FunctionDefinition);
|
|
3490
3443
|
var FunctionCall = /*#__PURE__*/ function(ExpressionAstNode) {
|
|
3491
3444
|
_inherits(FunctionCall, ExpressionAstNode);
|
|
3492
3445
|
function FunctionCall() {
|
|
@@ -3501,10 +3454,8 @@
|
|
|
3501
3454
|
};
|
|
3502
3455
|
return FunctionCall;
|
|
3503
3456
|
}(ExpressionAstNode);
|
|
3457
|
+
FunctionCall.nonTerminal = NoneTerminal.function_call;
|
|
3504
3458
|
ASTNode.FunctionCall = FunctionCall;
|
|
3505
|
-
FunctionCall = __decorate([
|
|
3506
|
-
ASTNodeDecorator(NoneTerminal.function_call)
|
|
3507
|
-
], FunctionCall);
|
|
3508
3459
|
var FunctionCallGeneric = /*#__PURE__*/ function(ExpressionAstNode) {
|
|
3509
3460
|
_inherits(FunctionCallGeneric, ExpressionAstNode);
|
|
3510
3461
|
function FunctionCallGeneric() {
|
|
@@ -3541,10 +3492,8 @@
|
|
|
3541
3492
|
};
|
|
3542
3493
|
return FunctionCallGeneric;
|
|
3543
3494
|
}(ExpressionAstNode);
|
|
3495
|
+
FunctionCallGeneric.nonTerminal = NoneTerminal.function_call_generic;
|
|
3544
3496
|
ASTNode.FunctionCallGeneric = FunctionCallGeneric;
|
|
3545
|
-
FunctionCallGeneric = __decorate([
|
|
3546
|
-
ASTNodeDecorator(NoneTerminal.function_call_generic)
|
|
3547
|
-
], FunctionCallGeneric);
|
|
3548
3497
|
var FunctionCallParameterList = /*#__PURE__*/ function(TreeNode) {
|
|
3549
3498
|
_inherits(FunctionCallParameterList, TreeNode);
|
|
3550
3499
|
function FunctionCallParameterList() {
|
|
@@ -3588,10 +3537,8 @@
|
|
|
3588
3537
|
};
|
|
3589
3538
|
return FunctionCallParameterList;
|
|
3590
3539
|
}(TreeNode);
|
|
3540
|
+
FunctionCallParameterList.nonTerminal = NoneTerminal.function_call_parameter_list;
|
|
3591
3541
|
ASTNode.FunctionCallParameterList = FunctionCallParameterList;
|
|
3592
|
-
FunctionCallParameterList = __decorate([
|
|
3593
|
-
ASTNodeDecorator(NoneTerminal.function_call_parameter_list)
|
|
3594
|
-
], FunctionCallParameterList);
|
|
3595
3542
|
var MacroCallArgCaseList = /*#__PURE__*/ function(TreeNode) {
|
|
3596
3543
|
_inherits(MacroCallArgCaseList, TreeNode);
|
|
3597
3544
|
function MacroCallArgCaseList() {
|
|
@@ -3599,10 +3546,8 @@
|
|
|
3599
3546
|
}
|
|
3600
3547
|
return MacroCallArgCaseList;
|
|
3601
3548
|
}(TreeNode);
|
|
3549
|
+
MacroCallArgCaseList.nonTerminal = NoneTerminal.macro_call_arg_case_list;
|
|
3602
3550
|
ASTNode.MacroCallArgCaseList = MacroCallArgCaseList;
|
|
3603
|
-
MacroCallArgCaseList = __decorate([
|
|
3604
|
-
ASTNodeDecorator(NoneTerminal.macro_call_arg_case_list)
|
|
3605
|
-
], MacroCallArgCaseList);
|
|
3606
3551
|
var MacroCallArgBlock = /*#__PURE__*/ function(TreeNode) {
|
|
3607
3552
|
_inherits(MacroCallArgBlock, TreeNode);
|
|
3608
3553
|
function MacroCallArgBlock() {
|
|
@@ -3610,10 +3555,8 @@
|
|
|
3610
3555
|
}
|
|
3611
3556
|
return MacroCallArgBlock;
|
|
3612
3557
|
}(TreeNode);
|
|
3558
|
+
MacroCallArgBlock.nonTerminal = NoneTerminal.macro_call_arg_block;
|
|
3613
3559
|
ASTNode.MacroCallArgBlock = MacroCallArgBlock;
|
|
3614
|
-
MacroCallArgBlock = __decorate([
|
|
3615
|
-
ASTNodeDecorator(NoneTerminal.macro_call_arg_block)
|
|
3616
|
-
], MacroCallArgBlock);
|
|
3617
3560
|
var MacroCallArgBranch = /*#__PURE__*/ function(TreeNode) {
|
|
3618
3561
|
_inherits(MacroCallArgBranch, TreeNode);
|
|
3619
3562
|
function MacroCallArgBranch() {
|
|
@@ -3621,10 +3564,8 @@
|
|
|
3621
3564
|
}
|
|
3622
3565
|
return MacroCallArgBranch;
|
|
3623
3566
|
}(TreeNode);
|
|
3567
|
+
MacroCallArgBranch.nonTerminal = NoneTerminal.macro_call_arg_branch;
|
|
3624
3568
|
ASTNode.MacroCallArgBranch = MacroCallArgBranch;
|
|
3625
|
-
MacroCallArgBranch = __decorate([
|
|
3626
|
-
ASTNodeDecorator(NoneTerminal.macro_call_arg_branch)
|
|
3627
|
-
], MacroCallArgBranch);
|
|
3628
3569
|
var PrecisionSpecifier = /*#__PURE__*/ function(TreeNode) {
|
|
3629
3570
|
_inherits(PrecisionSpecifier, TreeNode);
|
|
3630
3571
|
function PrecisionSpecifier() {
|
|
@@ -3638,10 +3579,8 @@
|
|
|
3638
3579
|
};
|
|
3639
3580
|
return PrecisionSpecifier;
|
|
3640
3581
|
}(TreeNode);
|
|
3582
|
+
PrecisionSpecifier.nonTerminal = NoneTerminal.precision_specifier;
|
|
3641
3583
|
ASTNode.PrecisionSpecifier = PrecisionSpecifier;
|
|
3642
|
-
PrecisionSpecifier = __decorate([
|
|
3643
|
-
ASTNodeDecorator(NoneTerminal.precision_specifier)
|
|
3644
|
-
], PrecisionSpecifier);
|
|
3645
3584
|
var FunctionIdentifier = /*#__PURE__*/ function(TreeNode) {
|
|
3646
3585
|
_inherits(FunctionIdentifier, TreeNode);
|
|
3647
3586
|
function FunctionIdentifier() {
|
|
@@ -3659,10 +3598,8 @@
|
|
|
3659
3598
|
};
|
|
3660
3599
|
return FunctionIdentifier;
|
|
3661
3600
|
}(TreeNode);
|
|
3601
|
+
FunctionIdentifier.nonTerminal = NoneTerminal.function_identifier;
|
|
3662
3602
|
ASTNode.FunctionIdentifier = FunctionIdentifier;
|
|
3663
|
-
FunctionIdentifier = __decorate([
|
|
3664
|
-
ASTNodeDecorator(NoneTerminal.function_identifier)
|
|
3665
|
-
], FunctionIdentifier);
|
|
3666
3603
|
var AssignmentExpression = /*#__PURE__*/ function(ExpressionAstNode) {
|
|
3667
3604
|
_inherits(AssignmentExpression, ExpressionAstNode);
|
|
3668
3605
|
function AssignmentExpression() {
|
|
@@ -3682,10 +3619,8 @@
|
|
|
3682
3619
|
};
|
|
3683
3620
|
return AssignmentExpression;
|
|
3684
3621
|
}(ExpressionAstNode);
|
|
3622
|
+
AssignmentExpression.nonTerminal = NoneTerminal.assignment_expression;
|
|
3685
3623
|
ASTNode.AssignmentExpression = AssignmentExpression;
|
|
3686
|
-
AssignmentExpression = __decorate([
|
|
3687
|
-
ASTNodeDecorator(NoneTerminal.assignment_expression)
|
|
3688
|
-
], AssignmentExpression);
|
|
3689
3624
|
var Expression = /*#__PURE__*/ function(ExpressionAstNode) {
|
|
3690
3625
|
_inherits(Expression, ExpressionAstNode);
|
|
3691
3626
|
function Expression() {
|
|
@@ -3703,10 +3638,8 @@
|
|
|
3703
3638
|
};
|
|
3704
3639
|
return Expression;
|
|
3705
3640
|
}(ExpressionAstNode);
|
|
3641
|
+
Expression.nonTerminal = NoneTerminal.expression;
|
|
3706
3642
|
ASTNode.Expression = Expression;
|
|
3707
|
-
Expression = __decorate([
|
|
3708
|
-
ASTNodeDecorator(NoneTerminal.expression)
|
|
3709
|
-
], Expression);
|
|
3710
3643
|
var PrimaryExpression = /*#__PURE__*/ function(ExpressionAstNode) {
|
|
3711
3644
|
_inherits(PrimaryExpression, ExpressionAstNode);
|
|
3712
3645
|
function PrimaryExpression() {
|
|
@@ -3740,10 +3673,8 @@
|
|
|
3740
3673
|
};
|
|
3741
3674
|
return PrimaryExpression;
|
|
3742
3675
|
}(ExpressionAstNode);
|
|
3676
|
+
PrimaryExpression.nonTerminal = NoneTerminal.primary_expression;
|
|
3743
3677
|
ASTNode.PrimaryExpression = PrimaryExpression;
|
|
3744
|
-
PrimaryExpression = __decorate([
|
|
3745
|
-
ASTNodeDecorator(NoneTerminal.primary_expression)
|
|
3746
|
-
], PrimaryExpression);
|
|
3747
3678
|
var PostfixExpression = /*#__PURE__*/ function(ExpressionAstNode) {
|
|
3748
3679
|
_inherits(PostfixExpression, ExpressionAstNode);
|
|
3749
3680
|
function PostfixExpression() {
|
|
@@ -3762,10 +3693,8 @@
|
|
|
3762
3693
|
};
|
|
3763
3694
|
return PostfixExpression;
|
|
3764
3695
|
}(ExpressionAstNode);
|
|
3696
|
+
PostfixExpression.nonTerminal = NoneTerminal.postfix_expression;
|
|
3765
3697
|
ASTNode.PostfixExpression = PostfixExpression;
|
|
3766
|
-
PostfixExpression = __decorate([
|
|
3767
|
-
ASTNodeDecorator(NoneTerminal.postfix_expression)
|
|
3768
|
-
], PostfixExpression);
|
|
3769
3698
|
var StructSpecifier = /*#__PURE__*/ function(TreeNode) {
|
|
3770
3699
|
_inherits(StructSpecifier, TreeNode);
|
|
3771
3700
|
function StructSpecifier() {
|
|
@@ -3793,10 +3722,8 @@
|
|
|
3793
3722
|
};
|
|
3794
3723
|
return StructSpecifier;
|
|
3795
3724
|
}(TreeNode);
|
|
3725
|
+
StructSpecifier.nonTerminal = NoneTerminal.struct_specifier;
|
|
3796
3726
|
ASTNode.StructSpecifier = StructSpecifier;
|
|
3797
|
-
StructSpecifier = __decorate([
|
|
3798
|
-
ASTNodeDecorator(NoneTerminal.struct_specifier)
|
|
3799
|
-
], StructSpecifier);
|
|
3800
3727
|
var StructDeclarationList = /*#__PURE__*/ function(TreeNode) {
|
|
3801
3728
|
_inherits(StructDeclarationList, TreeNode);
|
|
3802
3729
|
function StructDeclarationList() {
|
|
@@ -3825,10 +3752,8 @@
|
|
|
3825
3752
|
};
|
|
3826
3753
|
return StructDeclarationList;
|
|
3827
3754
|
}(TreeNode);
|
|
3755
|
+
StructDeclarationList.nonTerminal = NoneTerminal.struct_declaration_list;
|
|
3828
3756
|
ASTNode.StructDeclarationList = StructDeclarationList;
|
|
3829
|
-
StructDeclarationList = __decorate([
|
|
3830
|
-
ASTNodeDecorator(NoneTerminal.struct_declaration_list)
|
|
3831
|
-
], StructDeclarationList);
|
|
3832
3757
|
var StructDeclaration = /*#__PURE__*/ function(TreeNode) {
|
|
3833
3758
|
_inherits(StructDeclaration, TreeNode);
|
|
3834
3759
|
function StructDeclaration() {
|
|
@@ -3885,10 +3810,8 @@
|
|
|
3885
3810
|
};
|
|
3886
3811
|
return StructDeclaration;
|
|
3887
3812
|
}(TreeNode);
|
|
3813
|
+
StructDeclaration.nonTerminal = NoneTerminal.struct_declaration;
|
|
3888
3814
|
ASTNode.StructDeclaration = StructDeclaration;
|
|
3889
|
-
StructDeclaration = __decorate([
|
|
3890
|
-
ASTNodeDecorator(NoneTerminal.struct_declaration)
|
|
3891
|
-
], StructDeclaration);
|
|
3892
3815
|
var MacroStructDeclaration = /*#__PURE__*/ function(TreeNode) {
|
|
3893
3816
|
_inherits(MacroStructDeclaration, TreeNode);
|
|
3894
3817
|
function MacroStructDeclaration() {
|
|
@@ -3918,10 +3841,8 @@
|
|
|
3918
3841
|
};
|
|
3919
3842
|
return MacroStructDeclaration;
|
|
3920
3843
|
}(TreeNode);
|
|
3844
|
+
MacroStructDeclaration.nonTerminal = NoneTerminal.macro_struct_declaration;
|
|
3921
3845
|
ASTNode.MacroStructDeclaration = MacroStructDeclaration;
|
|
3922
|
-
MacroStructDeclaration = __decorate([
|
|
3923
|
-
ASTNodeDecorator(NoneTerminal.macro_struct_declaration)
|
|
3924
|
-
], MacroStructDeclaration);
|
|
3925
3846
|
var MacroStructBranch = /*#__PURE__*/ function(TreeNode) {
|
|
3926
3847
|
_inherits(MacroStructBranch, TreeNode);
|
|
3927
3848
|
function MacroStructBranch() {
|
|
@@ -3954,10 +3875,8 @@
|
|
|
3954
3875
|
};
|
|
3955
3876
|
return MacroStructBranch;
|
|
3956
3877
|
}(TreeNode);
|
|
3878
|
+
MacroStructBranch.nonTerminal = NoneTerminal.macro_struct_branch;
|
|
3957
3879
|
ASTNode.MacroStructBranch = MacroStructBranch;
|
|
3958
|
-
MacroStructBranch = __decorate([
|
|
3959
|
-
ASTNodeDecorator(NoneTerminal.macro_struct_branch)
|
|
3960
|
-
], MacroStructBranch);
|
|
3961
3880
|
var LayoutQualifier = /*#__PURE__*/ function(TreeNode) {
|
|
3962
3881
|
_inherits(LayoutQualifier, TreeNode);
|
|
3963
3882
|
function LayoutQualifier() {
|
|
@@ -3969,10 +3888,8 @@
|
|
|
3969
3888
|
};
|
|
3970
3889
|
return LayoutQualifier;
|
|
3971
3890
|
}(TreeNode);
|
|
3891
|
+
LayoutQualifier.nonTerminal = NoneTerminal.layout_qualifier;
|
|
3972
3892
|
ASTNode.LayoutQualifier = LayoutQualifier;
|
|
3973
|
-
LayoutQualifier = __decorate([
|
|
3974
|
-
ASTNodeDecorator(NoneTerminal.layout_qualifier)
|
|
3975
|
-
], LayoutQualifier);
|
|
3976
3893
|
var StructDeclaratorList = /*#__PURE__*/ function(TreeNode) {
|
|
3977
3894
|
_inherits(StructDeclaratorList, TreeNode);
|
|
3978
3895
|
function StructDeclaratorList() {
|
|
@@ -4001,10 +3918,8 @@
|
|
|
4001
3918
|
};
|
|
4002
3919
|
return StructDeclaratorList;
|
|
4003
3920
|
}(TreeNode);
|
|
3921
|
+
StructDeclaratorList.nonTerminal = NoneTerminal.struct_declarator_list;
|
|
4004
3922
|
ASTNode.StructDeclaratorList = StructDeclaratorList;
|
|
4005
|
-
StructDeclaratorList = __decorate([
|
|
4006
|
-
ASTNodeDecorator(NoneTerminal.struct_declarator_list)
|
|
4007
|
-
], StructDeclaratorList);
|
|
4008
3923
|
var StructDeclarator = /*#__PURE__*/ function(TreeNode) {
|
|
4009
3924
|
_inherits(StructDeclarator, TreeNode);
|
|
4010
3925
|
function StructDeclarator() {
|
|
@@ -4021,10 +3936,8 @@
|
|
|
4021
3936
|
};
|
|
4022
3937
|
return StructDeclarator;
|
|
4023
3938
|
}(TreeNode);
|
|
3939
|
+
StructDeclarator.nonTerminal = NoneTerminal.struct_declarator;
|
|
4024
3940
|
ASTNode.StructDeclarator = StructDeclarator;
|
|
4025
|
-
StructDeclarator = __decorate([
|
|
4026
|
-
ASTNodeDecorator(NoneTerminal.struct_declarator)
|
|
4027
|
-
], StructDeclarator);
|
|
4028
3941
|
var VariableDeclaration = /*#__PURE__*/ function(TreeNode) {
|
|
4029
3942
|
_inherits(VariableDeclaration, TreeNode);
|
|
4030
3943
|
function VariableDeclaration() {
|
|
@@ -4054,10 +3967,8 @@
|
|
|
4054
3967
|
};
|
|
4055
3968
|
return VariableDeclaration;
|
|
4056
3969
|
}(TreeNode);
|
|
3970
|
+
VariableDeclaration.nonTerminal = NoneTerminal.variable_declaration;
|
|
4057
3971
|
ASTNode.VariableDeclaration = VariableDeclaration;
|
|
4058
|
-
VariableDeclaration = __decorate([
|
|
4059
|
-
ASTNodeDecorator(NoneTerminal.variable_declaration)
|
|
4060
|
-
], VariableDeclaration);
|
|
4061
3972
|
var VariableDeclarationList = /*#__PURE__*/ function(TreeNode) {
|
|
4062
3973
|
_inherits(VariableDeclarationList, TreeNode);
|
|
4063
3974
|
function VariableDeclarationList() {
|
|
@@ -4102,10 +4013,8 @@
|
|
|
4102
4013
|
};
|
|
4103
4014
|
return VariableDeclarationList;
|
|
4104
4015
|
}(TreeNode);
|
|
4016
|
+
VariableDeclarationList.nonTerminal = NoneTerminal.variable_declaration_list;
|
|
4105
4017
|
ASTNode.VariableDeclarationList = VariableDeclarationList;
|
|
4106
|
-
VariableDeclarationList = __decorate([
|
|
4107
|
-
ASTNodeDecorator(NoneTerminal.variable_declaration_list)
|
|
4108
|
-
], VariableDeclarationList);
|
|
4109
4018
|
var VariableIdentifier = /*#__PURE__*/ function(TreeNode) {
|
|
4110
4019
|
_inherits(VariableIdentifier, TreeNode);
|
|
4111
4020
|
function VariableIdentifier() {
|
|
@@ -4205,10 +4114,8 @@
|
|
|
4205
4114
|
};
|
|
4206
4115
|
return VariableIdentifier;
|
|
4207
4116
|
}(TreeNode);
|
|
4117
|
+
VariableIdentifier.nonTerminal = NoneTerminal.variable_identifier;
|
|
4208
4118
|
ASTNode.VariableIdentifier = VariableIdentifier;
|
|
4209
|
-
VariableIdentifier = __decorate([
|
|
4210
|
-
ASTNodeDecorator(NoneTerminal.variable_identifier)
|
|
4211
|
-
], VariableIdentifier);
|
|
4212
4119
|
var GLShaderProgram = /*#__PURE__*/ function(TreeNode) {
|
|
4213
4120
|
_inherits(GLShaderProgram, TreeNode);
|
|
4214
4121
|
function GLShaderProgram() {
|
|
@@ -4221,10 +4128,8 @@
|
|
|
4221
4128
|
};
|
|
4222
4129
|
return GLShaderProgram;
|
|
4223
4130
|
}(TreeNode);
|
|
4131
|
+
GLShaderProgram.nonTerminal = NoneTerminal.gs_shader_program;
|
|
4224
4132
|
ASTNode.GLShaderProgram = GLShaderProgram;
|
|
4225
|
-
GLShaderProgram = __decorate([
|
|
4226
|
-
ASTNodeDecorator(NoneTerminal.gs_shader_program)
|
|
4227
|
-
], GLShaderProgram);
|
|
4228
4133
|
var GlobalDeclaration = /*#__PURE__*/ function(TreeNode) {
|
|
4229
4134
|
_inherits(GlobalDeclaration, TreeNode);
|
|
4230
4135
|
function GlobalDeclaration() {
|
|
@@ -4250,10 +4155,8 @@
|
|
|
4250
4155
|
};
|
|
4251
4156
|
return GlobalDeclaration;
|
|
4252
4157
|
}(TreeNode);
|
|
4158
|
+
GlobalDeclaration.nonTerminal = NoneTerminal.global_declaration;
|
|
4253
4159
|
ASTNode.GlobalDeclaration = GlobalDeclaration;
|
|
4254
|
-
GlobalDeclaration = __decorate([
|
|
4255
|
-
ASTNodeDecorator(NoneTerminal.global_declaration)
|
|
4256
|
-
], GlobalDeclaration);
|
|
4257
4160
|
var MacroUndef = /*#__PURE__*/ function(TreeNode) {
|
|
4258
4161
|
_inherits(MacroUndef, TreeNode);
|
|
4259
4162
|
function MacroUndef() {
|
|
@@ -4265,10 +4168,8 @@
|
|
|
4265
4168
|
};
|
|
4266
4169
|
return MacroUndef;
|
|
4267
4170
|
}(TreeNode);
|
|
4171
|
+
MacroUndef.nonTerminal = NoneTerminal.macro_undef;
|
|
4268
4172
|
ASTNode.MacroUndef = MacroUndef;
|
|
4269
|
-
MacroUndef = __decorate([
|
|
4270
|
-
ASTNodeDecorator(NoneTerminal.macro_undef)
|
|
4271
|
-
], MacroUndef);
|
|
4272
4173
|
var MacroPushContext = /*#__PURE__*/ function(TreeNode) {
|
|
4273
4174
|
_inherits(MacroPushContext, TreeNode);
|
|
4274
4175
|
function MacroPushContext() {
|
|
@@ -4283,10 +4184,8 @@
|
|
|
4283
4184
|
};
|
|
4284
4185
|
return MacroPushContext;
|
|
4285
4186
|
}(TreeNode);
|
|
4187
|
+
MacroPushContext.nonTerminal = NoneTerminal.macro_push_context;
|
|
4286
4188
|
ASTNode.MacroPushContext = MacroPushContext;
|
|
4287
|
-
MacroPushContext = __decorate([
|
|
4288
|
-
ASTNodeDecorator(NoneTerminal.macro_push_context)
|
|
4289
|
-
], MacroPushContext);
|
|
4290
4189
|
var MacroPopContext = /*#__PURE__*/ function(TreeNode) {
|
|
4291
4190
|
_inherits(MacroPopContext, TreeNode);
|
|
4292
4191
|
function MacroPopContext() {
|
|
@@ -4301,10 +4200,8 @@
|
|
|
4301
4200
|
};
|
|
4302
4201
|
return MacroPopContext;
|
|
4303
4202
|
}(TreeNode);
|
|
4203
|
+
MacroPopContext.nonTerminal = NoneTerminal.macro_pop_context;
|
|
4304
4204
|
ASTNode.MacroPopContext = MacroPopContext;
|
|
4305
|
-
MacroPopContext = __decorate([
|
|
4306
|
-
ASTNodeDecorator(NoneTerminal.macro_pop_context)
|
|
4307
|
-
], MacroPopContext);
|
|
4308
4205
|
var MacroElifExpression = /*#__PURE__*/ function(TreeNode) {
|
|
4309
4206
|
_inherits(MacroElifExpression, TreeNode);
|
|
4310
4207
|
function MacroElifExpression() {
|
|
@@ -4316,10 +4213,8 @@
|
|
|
4316
4213
|
};
|
|
4317
4214
|
return MacroElifExpression;
|
|
4318
4215
|
}(TreeNode);
|
|
4216
|
+
MacroElifExpression.nonTerminal = NoneTerminal.macro_elif_expression;
|
|
4319
4217
|
ASTNode.MacroElifExpression = MacroElifExpression;
|
|
4320
|
-
MacroElifExpression = __decorate([
|
|
4321
|
-
ASTNodeDecorator(NoneTerminal.macro_elif_expression)
|
|
4322
|
-
], MacroElifExpression);
|
|
4323
4218
|
var MacroElseExpression = /*#__PURE__*/ function(TreeNode) {
|
|
4324
4219
|
_inherits(MacroElseExpression, TreeNode);
|
|
4325
4220
|
function MacroElseExpression() {
|
|
@@ -4331,10 +4226,8 @@
|
|
|
4331
4226
|
};
|
|
4332
4227
|
return MacroElseExpression;
|
|
4333
4228
|
}(TreeNode);
|
|
4229
|
+
MacroElseExpression.nonTerminal = NoneTerminal.macro_else_expression;
|
|
4334
4230
|
ASTNode.MacroElseExpression = MacroElseExpression;
|
|
4335
|
-
MacroElseExpression = __decorate([
|
|
4336
|
-
ASTNodeDecorator(NoneTerminal.macro_else_expression)
|
|
4337
|
-
], MacroElseExpression);
|
|
4338
4231
|
var GlobalMacroDeclaration = /*#__PURE__*/ function(TreeNode) {
|
|
4339
4232
|
_inherits(GlobalMacroDeclaration, TreeNode);
|
|
4340
4233
|
function GlobalMacroDeclaration() {
|
|
@@ -4368,10 +4261,8 @@
|
|
|
4368
4261
|
};
|
|
4369
4262
|
return GlobalMacroDeclaration;
|
|
4370
4263
|
}(TreeNode);
|
|
4264
|
+
GlobalMacroDeclaration.nonTerminal = NoneTerminal.global_macro_declaration;
|
|
4371
4265
|
ASTNode.GlobalMacroDeclaration = GlobalMacroDeclaration;
|
|
4372
|
-
GlobalMacroDeclaration = __decorate([
|
|
4373
|
-
ASTNodeDecorator(NoneTerminal.global_macro_declaration)
|
|
4374
|
-
], GlobalMacroDeclaration);
|
|
4375
4266
|
var GlobalMacroIfStatement = /*#__PURE__*/ function(TreeNode) {
|
|
4376
4267
|
_inherits(GlobalMacroIfStatement, TreeNode);
|
|
4377
4268
|
function GlobalMacroIfStatement() {
|
|
@@ -4399,10 +4290,8 @@
|
|
|
4399
4290
|
};
|
|
4400
4291
|
return GlobalMacroIfStatement;
|
|
4401
4292
|
}(TreeNode);
|
|
4293
|
+
GlobalMacroIfStatement.nonTerminal = NoneTerminal.global_macro_if_statement;
|
|
4402
4294
|
ASTNode.GlobalMacroIfStatement = GlobalMacroIfStatement;
|
|
4403
|
-
GlobalMacroIfStatement = __decorate([
|
|
4404
|
-
ASTNodeDecorator(NoneTerminal.global_macro_if_statement)
|
|
4405
|
-
], GlobalMacroIfStatement);
|
|
4406
4295
|
var GlobalMacroBranch = /*#__PURE__*/ function(TreeNode) {
|
|
4407
4296
|
_inherits(GlobalMacroBranch, TreeNode);
|
|
4408
4297
|
function GlobalMacroBranch() {
|
|
@@ -4433,10 +4322,8 @@
|
|
|
4433
4322
|
};
|
|
4434
4323
|
return GlobalMacroBranch;
|
|
4435
4324
|
}(TreeNode);
|
|
4325
|
+
GlobalMacroBranch.nonTerminal = NoneTerminal.global_macro_branch;
|
|
4436
4326
|
ASTNode.GlobalMacroBranch = GlobalMacroBranch;
|
|
4437
|
-
GlobalMacroBranch = __decorate([
|
|
4438
|
-
ASTNodeDecorator(NoneTerminal.global_macro_branch)
|
|
4439
|
-
], GlobalMacroBranch);
|
|
4440
4327
|
var MacroIfStatement = /*#__PURE__*/ function(TreeNode) {
|
|
4441
4328
|
_inherits(MacroIfStatement, TreeNode);
|
|
4442
4329
|
function MacroIfStatement() {
|
|
@@ -4444,10 +4331,8 @@
|
|
|
4444
4331
|
}
|
|
4445
4332
|
return MacroIfStatement;
|
|
4446
4333
|
}(TreeNode);
|
|
4334
|
+
MacroIfStatement.nonTerminal = NoneTerminal.macro_if_statement;
|
|
4447
4335
|
ASTNode.MacroIfStatement = MacroIfStatement;
|
|
4448
|
-
MacroIfStatement = __decorate([
|
|
4449
|
-
ASTNodeDecorator(NoneTerminal.macro_if_statement)
|
|
4450
|
-
], MacroIfStatement);
|
|
4451
4336
|
var MacroBranch = /*#__PURE__*/ function(TreeNode) {
|
|
4452
4337
|
_inherits(MacroBranch, TreeNode);
|
|
4453
4338
|
function MacroBranch() {
|
|
@@ -4455,10 +4340,8 @@
|
|
|
4455
4340
|
}
|
|
4456
4341
|
return MacroBranch;
|
|
4457
4342
|
}(TreeNode);
|
|
4343
|
+
MacroBranch.nonTerminal = NoneTerminal.macro_branch;
|
|
4458
4344
|
ASTNode.MacroBranch = MacroBranch;
|
|
4459
|
-
MacroBranch = __decorate([
|
|
4460
|
-
ASTNodeDecorator(NoneTerminal.macro_branch)
|
|
4461
|
-
], MacroBranch);
|
|
4462
4345
|
var MacroCallSymbol = /*#__PURE__*/ function(TreeNode1) {
|
|
4463
4346
|
_inherits(MacroCallSymbol, TreeNode1);
|
|
4464
4347
|
function MacroCallSymbol() {
|
|
@@ -4556,10 +4439,8 @@
|
|
|
4556
4439
|
};
|
|
4557
4440
|
return MacroCallSymbol;
|
|
4558
4441
|
}(TreeNode);
|
|
4442
|
+
MacroCallSymbol.nonTerminal = NoneTerminal.macro_call_symbol;
|
|
4559
4443
|
ASTNode.MacroCallSymbol = MacroCallSymbol;
|
|
4560
|
-
MacroCallSymbol = __decorate([
|
|
4561
|
-
ASTNodeDecorator(NoneTerminal.macro_call_symbol)
|
|
4562
|
-
], MacroCallSymbol);
|
|
4563
4444
|
var MacroCallFunction = /*#__PURE__*/ function(TreeNode) {
|
|
4564
4445
|
_inherits(MacroCallFunction, TreeNode);
|
|
4565
4446
|
function MacroCallFunction() {
|
|
@@ -4588,10 +4469,8 @@
|
|
|
4588
4469
|
};
|
|
4589
4470
|
return MacroCallFunction;
|
|
4590
4471
|
}(TreeNode);
|
|
4472
|
+
MacroCallFunction.nonTerminal = NoneTerminal.macro_call_function;
|
|
4591
4473
|
ASTNode.MacroCallFunction = MacroCallFunction;
|
|
4592
|
-
MacroCallFunction = __decorate([
|
|
4593
|
-
ASTNodeDecorator(NoneTerminal.macro_call_function)
|
|
4594
|
-
], MacroCallFunction);
|
|
4595
4474
|
var MacroDefine = /*#__PURE__*/ function(TreeNode) {
|
|
4596
4475
|
_inherits(MacroDefine, TreeNode);
|
|
4597
4476
|
function MacroDefine() {
|
|
@@ -4671,10 +4550,19 @@
|
|
|
4671
4550
|
};
|
|
4672
4551
|
return MacroDefine;
|
|
4673
4552
|
}(TreeNode);
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4553
|
+
MacroDefine.nonTerminal = NoneTerminal.macro_define;
|
|
4554
|
+
/**
|
|
4555
|
+
* `#define NAME [(params)] [value]` — expression-style macro.
|
|
4556
|
+
*
|
|
4557
|
+
* Expression-form macros are parsed into AST rather than kept as raw lexemes. The
|
|
4558
|
+
* optional `valueExpression` is an `AssignmentExpression` subtree that participates
|
|
4559
|
+
* in normal codegen — so `v.v_normal.xyz` inside a `#define` flows through
|
|
4560
|
+
* `visitPostfixExpression` just like an inline expression would, and varying
|
|
4561
|
+
* flattening/type inference/reference tracking all come for free.
|
|
4562
|
+
*
|
|
4563
|
+
* Semantic analysis does not resolve symbols inside the value (the definition-site
|
|
4564
|
+
* scope is not the call-site scope). Lookup happens lazily during codegen.
|
|
4565
|
+
*/ ASTNode.MacroDefine = MacroDefine;
|
|
4678
4566
|
})(ASTNode || (ASTNode = {}));
|
|
4679
4567
|
var ASTNode;
|
|
4680
4568
|
|
|
@@ -6219,6 +6107,10 @@
|
|
|
6219
6107
|
this._stateItemPool.set(mapId, newItem);
|
|
6220
6108
|
return newItem;
|
|
6221
6109
|
};
|
|
6110
|
+
/** Release the state graph after the action/goto tables have been generated. */ State.clearPool = function clearPool() {
|
|
6111
|
+
this.closureMap.clear();
|
|
6112
|
+
this.pool.clear();
|
|
6113
|
+
};
|
|
6222
6114
|
State.create = function create(cores) {
|
|
6223
6115
|
var cacheKey = this.getMapKey(cores);
|
|
6224
6116
|
var state = this.closureMap.get(cacheKey);
|
|
@@ -6353,6 +6245,9 @@
|
|
|
6353
6245
|
_proto.generate = function generate() {
|
|
6354
6246
|
this.computeFirstSet();
|
|
6355
6247
|
this.buildStateTable();
|
|
6248
|
+
// Runtime parsing only needs the numeric action/goto tables. The state closure graph is
|
|
6249
|
+
// construction-only data and otherwise keeps thousands of StateItem/Set objects alive.
|
|
6250
|
+
State.clearPool();
|
|
6356
6251
|
};
|
|
6357
6252
|
_proto.buildStateTable = function buildStateTable() {
|
|
6358
6253
|
var startStateItemCore = [
|
|
@@ -6391,7 +6286,7 @@
|
|
|
6391
6286
|
var terminalExist = false;
|
|
6392
6287
|
// when A :=> a.BC, a; ==》 B :=> .xy, First(Ca)
|
|
6393
6288
|
// newLookAhead = First(Ca)
|
|
6394
|
-
for(var i = 1, nextSymbol = item.symbolByOffset(1);
|
|
6289
|
+
for(var i = 1, nextSymbol = item.symbolByOffset(1); nextSymbol; nextSymbol = item.symbolByOffset(++i)){
|
|
6395
6290
|
if (GrammarUtils.isTerminal(nextSymbol)) {
|
|
6396
6291
|
newLookaheadSet.add(nextSymbol);
|
|
6397
6292
|
terminalExist = true;
|
|
@@ -8906,6 +8801,13 @@
|
|
|
8906
8801
|
variableMap: renderStates.variableMap
|
|
8907
8802
|
};
|
|
8908
8803
|
};
|
|
8804
|
+
/**
|
|
8805
|
+
* Release token and AST pools retained at their compilation-time peak.
|
|
8806
|
+
* Call this after shader warm-up when no further compilation is expected soon.
|
|
8807
|
+
* Later compilation remains supported and will allocate pool entries on demand.
|
|
8808
|
+
*/ ShaderCompiler.releaseCompilationCache = function releaseCompilationCache() {
|
|
8809
|
+
ShaderCompilerUtils.releaseAllShaderCompilerObjectPool();
|
|
8810
|
+
};
|
|
8909
8811
|
ShaderCompiler.createPosition = function createPosition(index, line, column) {
|
|
8910
8812
|
var position = this._shaderPositionPool.get();
|
|
8911
8813
|
position.set(index);
|
|
@@ -8923,7 +8825,7 @@
|
|
|
8923
8825
|
ShaderCompiler._shaderRangePool = ShaderCompilerUtils.createObjectPool(ShaderRange);
|
|
8924
8826
|
|
|
8925
8827
|
//@ts-ignore
|
|
8926
|
-
var version = "0.0.0-experimental-2.0-
|
|
8828
|
+
var version = "0.0.0-experimental-2.0-migrate.7";
|
|
8927
8829
|
var mode = "Release";
|
|
8928
8830
|
console.log("Galacean Engine Shader Compiler Version: " + version + " | Mode: " + mode);
|
|
8929
8831
|
|