ifc-expressions 0.2.0 → 0.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.
Files changed (234) hide show
  1. package/dist/IfcExpression.d.ts +7 -1
  2. package/dist/cjs/ExprVisitor.js +126 -0
  3. package/dist/cjs/ExprVisitor.js.map +1 -0
  4. package/dist/cjs/IfcExpression.js +11 -1
  5. package/dist/cjs/IfcExpression.js.map +1 -0
  6. package/dist/cjs/IfcExpressionErrorListener.js +23 -0
  7. package/dist/cjs/IfcExpressionErrorListener.js.map +1 -0
  8. package/dist/cjs/SyntaxErrorException.js +24 -0
  9. package/dist/cjs/SyntaxErrorException.js.map +1 -0
  10. package/dist/cjs/context/IfcElementAccessor.js +34 -0
  11. package/dist/cjs/context/IfcElementAccessor.js.map +1 -0
  12. package/dist/cjs/context/IfcExpressionContext.js +3 -0
  13. package/dist/cjs/context/IfcExpressionContext.js.map +1 -0
  14. package/dist/cjs/context/IfcPropertyAccessor.js +28 -0
  15. package/dist/cjs/context/IfcPropertyAccessor.js.map +1 -0
  16. package/dist/cjs/context/IfcPropertySetAccessor.js +17 -0
  17. package/dist/cjs/context/IfcPropertySetAccessor.js.map +1 -0
  18. package/dist/cjs/context/IfcRootObjectAccessor.js +19 -0
  19. package/dist/cjs/context/IfcRootObjectAccessor.js.map +1 -0
  20. package/dist/cjs/context/IfcTypeObjectAccessor.js +22 -0
  21. package/dist/cjs/context/IfcTypeObjectAccessor.js.map +1 -0
  22. package/dist/cjs/context/NamedObjectAccessor.js +26 -0
  23. package/dist/cjs/context/NamedObjectAccessor.js.map +1 -0
  24. package/dist/cjs/context/ObjectAccessor.js +3 -0
  25. package/dist/cjs/context/ObjectAccessor.js.map +1 -0
  26. package/dist/cjs/expression/ArrayExpr.js +3 -0
  27. package/dist/cjs/expression/ArrayExpr.js.map +1 -0
  28. package/dist/cjs/expression/Expr.js +3 -0
  29. package/dist/cjs/expression/Expr.js.map +1 -0
  30. package/dist/cjs/expression/Expr0.js +8 -0
  31. package/dist/cjs/expression/Expr0.js.map +1 -0
  32. package/dist/cjs/expression/Expr1.js +10 -0
  33. package/dist/cjs/expression/Expr1.js.map +1 -0
  34. package/dist/cjs/expression/Expr2.js +11 -0
  35. package/dist/cjs/expression/Expr2.js.map +1 -0
  36. package/dist/cjs/expression/IfcExpressionEvaluationException.js +10 -0
  37. package/dist/cjs/expression/IfcExpressionEvaluationException.js.map +1 -0
  38. package/dist/cjs/expression/numeric/DivideExpr.js +18 -0
  39. package/dist/cjs/expression/numeric/DivideExpr.js.map +1 -0
  40. package/dist/cjs/expression/numeric/MinusExpr.js +18 -0
  41. package/dist/cjs/expression/numeric/MinusExpr.js.map +1 -0
  42. package/dist/cjs/expression/numeric/MultiplyByExpr.js +18 -0
  43. package/dist/cjs/expression/numeric/MultiplyByExpr.js.map +1 -0
  44. package/dist/cjs/expression/numeric/MultiplyExpr.js +18 -0
  45. package/dist/cjs/expression/numeric/MultiplyExpr.js.map +1 -0
  46. package/dist/cjs/expression/numeric/NumParenthesisExpr.js +14 -0
  47. package/dist/cjs/expression/numeric/NumParenthesisExpr.js.map +1 -0
  48. package/dist/cjs/expression/numeric/NumericLiteralExpr.js +14 -0
  49. package/dist/cjs/expression/numeric/NumericLiteralExpr.js.map +1 -0
  50. package/dist/cjs/expression/numeric/PlusExpr.js +18 -0
  51. package/dist/cjs/expression/numeric/PlusExpr.js.map +1 -0
  52. package/dist/cjs/expression/reference/AttributeReferenceExpr.js +16 -0
  53. package/dist/cjs/expression/reference/AttributeReferenceExpr.js.map +1 -0
  54. package/dist/cjs/expression/reference/ElemObjectReferenceExpr.js +14 -0
  55. package/dist/cjs/expression/reference/ElemObjectReferenceExpr.js.map +1 -0
  56. package/dist/cjs/expression/reference/NestedObjectChainEndExpr.js +14 -0
  57. package/dist/cjs/expression/reference/NestedObjectChainEndExpr.js.map +1 -0
  58. package/dist/cjs/expression/reference/NestedObjectChainExpr.js +15 -0
  59. package/dist/cjs/expression/reference/NestedObjectChainExpr.js.map +1 -0
  60. package/dist/cjs/expression/reference/ObjectReferenceExpr.js +3 -0
  61. package/dist/cjs/expression/reference/ObjectReferenceExpr.js.map +1 -0
  62. package/dist/cjs/expression/reference/PropObjectReferenceExpr.js +14 -0
  63. package/dist/cjs/expression/reference/PropObjectReferenceExpr.js.map +1 -0
  64. package/dist/cjs/expression/string/StringConcatExpr.js +15 -0
  65. package/dist/cjs/expression/string/StringConcatExpr.js.map +1 -0
  66. package/dist/cjs/expression/string/StringLiteralExpr.js +14 -0
  67. package/dist/cjs/expression/string/StringLiteralExpr.js.map +1 -0
  68. package/dist/cjs/package.json +1 -0
  69. package/dist/cjs/parser/IfcExpressionLexer.js +140 -0
  70. package/dist/cjs/parser/IfcExpressionLexer.js.map +1 -0
  71. package/dist/cjs/parser/IfcExpressionListener.js +12 -0
  72. package/dist/cjs/parser/IfcExpressionListener.js.map +1 -0
  73. package/dist/cjs/parser/IfcExpressionParser.js +1514 -0
  74. package/dist/cjs/parser/IfcExpressionParser.js.map +1 -0
  75. package/dist/cjs/parser/IfcExpressionVisitor.js +15 -0
  76. package/dist/cjs/parser/IfcExpressionVisitor.js.map +1 -0
  77. package/dist/cjs/utils.js +12 -0
  78. package/dist/cjs/utils.js.map +1 -0
  79. package/dist/cjs/value/BooleanValue.js +14 -0
  80. package/dist/cjs/value/BooleanValue.js.map +1 -0
  81. package/dist/cjs/value/LiteralValue.js +3 -0
  82. package/dist/cjs/value/LiteralValue.js.map +1 -0
  83. package/dist/cjs/value/LiteralValueAnyArity.js +3 -0
  84. package/dist/cjs/value/LiteralValueAnyArity.js.map +1 -0
  85. package/dist/cjs/value/LogicalValue.js +14 -0
  86. package/dist/cjs/value/LogicalValue.js.map +1 -0
  87. package/dist/cjs/value/NumericValue.js +18 -0
  88. package/dist/cjs/value/NumericValue.js.map +1 -0
  89. package/dist/cjs/value/PrimitiveValueType.js +3 -0
  90. package/dist/cjs/value/PrimitiveValueType.js.map +1 -0
  91. package/dist/cjs/value/ReferenceValue.js +14 -0
  92. package/dist/cjs/value/ReferenceValue.js.map +1 -0
  93. package/dist/cjs/value/StringValue.js +14 -0
  94. package/dist/cjs/value/StringValue.js.map +1 -0
  95. package/dist/cjs/value/Value.js +13 -0
  96. package/dist/cjs/value/Value.js.map +1 -0
  97. package/dist/context/IfcElementAccessor.d.ts +18 -0
  98. package/dist/context/IfcExpressionContext.d.ts +6 -0
  99. package/dist/context/IfcPropertyAccessor.d.ts +12 -0
  100. package/dist/context/IfcPropertySetAccessor.d.ts +11 -0
  101. package/dist/context/IfcRootObjectAccessor.d.ts +7 -0
  102. package/dist/context/IfcTypeObjectAccessor.d.ts +13 -0
  103. package/dist/context/NamedObjectAccessor.d.ts +10 -0
  104. package/dist/context/ObjectAccessor.d.ts +16 -0
  105. package/dist/expression/ArrayExpr.d.ts +3 -0
  106. package/dist/expression/Expr.d.ts +4 -0
  107. package/dist/expression/Expr0.d.ts +6 -0
  108. package/dist/expression/Expr1.d.ts +7 -0
  109. package/dist/expression/Expr2.d.ts +8 -0
  110. package/dist/expression/IfcExpressionEvaluationException.d.ts +3 -0
  111. package/dist/expression/numeric/DivideExpr.d.ts +8 -0
  112. package/dist/expression/numeric/MinusExpr.d.ts +8 -0
  113. package/dist/expression/numeric/MultiplyByExpr.d.ts +8 -0
  114. package/dist/expression/numeric/MultiplyExpr.d.ts +8 -0
  115. package/dist/expression/numeric/NumParenthesisExpr.d.ts +8 -0
  116. package/dist/expression/numeric/NumericLiteralExpr.d.ts +7 -0
  117. package/dist/expression/numeric/PlusExpr.d.ts +8 -0
  118. package/dist/expression/reference/AttributeReferenceExpr.d.ts +9 -0
  119. package/dist/expression/reference/ElemObjectReferenceExpr.d.ts +8 -0
  120. package/dist/expression/reference/NestedObjectChainEndExpr.d.ts +8 -0
  121. package/dist/expression/reference/NestedObjectChainExpr.d.ts +9 -0
  122. package/dist/expression/reference/ObjectReferenceExpr.d.ts +4 -0
  123. package/dist/expression/reference/PropObjectReferenceExpr.d.ts +8 -0
  124. package/dist/expression/string/StringConcatExpr.d.ts +8 -0
  125. package/dist/expression/string/StringLiteralExpr.d.ts +7 -0
  126. package/dist/mjs/ExprVisitor.js +119 -0
  127. package/dist/mjs/ExprVisitor.js.map +1 -0
  128. package/dist/mjs/IfcExpression.js +48 -0
  129. package/dist/mjs/IfcExpression.js.map +1 -0
  130. package/dist/mjs/IfcExpressionErrorListener.js +19 -0
  131. package/dist/mjs/IfcExpressionErrorListener.js.map +1 -0
  132. package/dist/mjs/SyntaxErrorException.js +20 -0
  133. package/dist/mjs/SyntaxErrorException.js.map +1 -0
  134. package/dist/mjs/context/IfcElementAccessor.js +30 -0
  135. package/dist/mjs/context/IfcElementAccessor.js.map +1 -0
  136. package/dist/mjs/context/IfcExpressionContext.js +2 -0
  137. package/dist/mjs/context/IfcExpressionContext.js.map +1 -0
  138. package/dist/mjs/context/IfcPropertyAccessor.js +24 -0
  139. package/dist/mjs/context/IfcPropertyAccessor.js.map +1 -0
  140. package/dist/mjs/context/IfcPropertySetAccessor.js +13 -0
  141. package/dist/mjs/context/IfcPropertySetAccessor.js.map +1 -0
  142. package/dist/mjs/context/IfcRootObjectAccessor.js +15 -0
  143. package/dist/mjs/context/IfcRootObjectAccessor.js.map +1 -0
  144. package/dist/mjs/context/IfcTypeObjectAccessor.js +18 -0
  145. package/dist/mjs/context/IfcTypeObjectAccessor.js.map +1 -0
  146. package/dist/mjs/context/NamedObjectAccessor.js +22 -0
  147. package/dist/mjs/context/NamedObjectAccessor.js.map +1 -0
  148. package/dist/mjs/context/ObjectAccessor.js +2 -0
  149. package/dist/mjs/context/ObjectAccessor.js.map +1 -0
  150. package/dist/mjs/expression/ArrayExpr.js +2 -0
  151. package/dist/mjs/expression/ArrayExpr.js.map +1 -0
  152. package/dist/mjs/expression/Expr.js +2 -0
  153. package/dist/mjs/expression/Expr.js.map +1 -0
  154. package/dist/mjs/expression/Expr0.js +4 -0
  155. package/dist/mjs/expression/Expr0.js.map +1 -0
  156. package/dist/mjs/expression/Expr1.js +6 -0
  157. package/dist/mjs/expression/Expr1.js.map +1 -0
  158. package/dist/mjs/expression/Expr2.js +7 -0
  159. package/dist/mjs/expression/Expr2.js.map +1 -0
  160. package/dist/mjs/expression/IfcExpressionEvaluationException.js +6 -0
  161. package/dist/mjs/expression/IfcExpressionEvaluationException.js.map +1 -0
  162. package/dist/mjs/expression/numeric/DivideExpr.js +14 -0
  163. package/dist/mjs/expression/numeric/DivideExpr.js.map +1 -0
  164. package/dist/mjs/expression/numeric/MinusExpr.js +14 -0
  165. package/dist/mjs/expression/numeric/MinusExpr.js.map +1 -0
  166. package/dist/mjs/expression/numeric/MultiplyByExpr.js +14 -0
  167. package/dist/mjs/expression/numeric/MultiplyByExpr.js.map +1 -0
  168. package/dist/mjs/expression/numeric/MultiplyExpr.js +14 -0
  169. package/dist/mjs/expression/numeric/MultiplyExpr.js.map +1 -0
  170. package/dist/mjs/expression/numeric/NumParenthesisExpr.js +10 -0
  171. package/dist/mjs/expression/numeric/NumParenthesisExpr.js.map +1 -0
  172. package/dist/mjs/expression/numeric/NumericLiteralExpr.js +10 -0
  173. package/dist/mjs/expression/numeric/NumericLiteralExpr.js.map +1 -0
  174. package/dist/mjs/expression/numeric/PlusExpr.js +14 -0
  175. package/dist/mjs/expression/numeric/PlusExpr.js.map +1 -0
  176. package/dist/mjs/expression/reference/AttributeReferenceExpr.js +12 -0
  177. package/dist/mjs/expression/reference/AttributeReferenceExpr.js.map +1 -0
  178. package/dist/mjs/expression/reference/ElemObjectReferenceExpr.js +10 -0
  179. package/dist/mjs/expression/reference/ElemObjectReferenceExpr.js.map +1 -0
  180. package/dist/mjs/expression/reference/NestedObjectChainEndExpr.js +10 -0
  181. package/dist/mjs/expression/reference/NestedObjectChainEndExpr.js.map +1 -0
  182. package/dist/mjs/expression/reference/NestedObjectChainExpr.js +11 -0
  183. package/dist/mjs/expression/reference/NestedObjectChainExpr.js.map +1 -0
  184. package/dist/mjs/expression/reference/ObjectReferenceExpr.js +2 -0
  185. package/dist/mjs/expression/reference/ObjectReferenceExpr.js.map +1 -0
  186. package/dist/mjs/expression/reference/PropObjectReferenceExpr.js +10 -0
  187. package/dist/mjs/expression/reference/PropObjectReferenceExpr.js.map +1 -0
  188. package/dist/mjs/expression/string/StringConcatExpr.js +11 -0
  189. package/dist/mjs/expression/string/StringConcatExpr.js.map +1 -0
  190. package/dist/mjs/expression/string/StringLiteralExpr.js +10 -0
  191. package/dist/mjs/expression/string/StringLiteralExpr.js.map +1 -0
  192. package/dist/mjs/package.json +1 -0
  193. package/dist/mjs/parser/IfcExpressionLexer.js +138 -0
  194. package/dist/mjs/parser/IfcExpressionLexer.js.map +1 -0
  195. package/dist/mjs/parser/IfcExpressionListener.js +9 -0
  196. package/dist/mjs/parser/IfcExpressionListener.js.map +1 -0
  197. package/dist/mjs/parser/IfcExpressionParser.js +1487 -0
  198. package/dist/mjs/parser/IfcExpressionParser.js.map +1 -0
  199. package/dist/mjs/parser/IfcExpressionVisitor.js +12 -0
  200. package/dist/mjs/parser/IfcExpressionVisitor.js.map +1 -0
  201. package/dist/mjs/utils.js +7 -0
  202. package/dist/mjs/utils.js.map +1 -0
  203. package/dist/mjs/value/BooleanValue.js +10 -0
  204. package/dist/mjs/value/BooleanValue.js.map +1 -0
  205. package/dist/mjs/value/LiteralValue.js +2 -0
  206. package/dist/mjs/value/LiteralValue.js.map +1 -0
  207. package/dist/mjs/value/LiteralValueAnyArity.js +2 -0
  208. package/dist/mjs/value/LiteralValueAnyArity.js.map +1 -0
  209. package/dist/mjs/value/LogicalValue.js +10 -0
  210. package/dist/mjs/value/LogicalValue.js.map +1 -0
  211. package/dist/mjs/value/NumericValue.js +11 -0
  212. package/dist/mjs/value/NumericValue.js.map +1 -0
  213. package/dist/mjs/value/PrimitiveValueType.js +2 -0
  214. package/dist/mjs/value/PrimitiveValueType.js.map +1 -0
  215. package/dist/mjs/value/ReferenceValue.js +10 -0
  216. package/dist/mjs/value/ReferenceValue.js.map +1 -0
  217. package/dist/mjs/value/StringValue.js +10 -0
  218. package/dist/mjs/value/StringValue.js.map +1 -0
  219. package/dist/mjs/value/Value.js +9 -0
  220. package/dist/mjs/value/Value.js.map +1 -0
  221. package/dist/parser/IfcExpressionLexer.d.ts +43 -0
  222. package/dist/parser/IfcExpressionListener.d.ts +262 -0
  223. package/dist/parser/IfcExpressionParser.d.ts +265 -0
  224. package/dist/parser/IfcExpressionVisitor.d.ts +169 -0
  225. package/dist/value/BooleanValue.d.ts +5 -0
  226. package/dist/value/LiteralValue.d.ts +6 -0
  227. package/dist/value/LiteralValueAnyArity.d.ts +2 -0
  228. package/dist/value/LogicalValue.d.ts +5 -0
  229. package/dist/value/NumericValue.d.ts +6 -0
  230. package/dist/value/PrimitiveValueType.d.ts +2 -0
  231. package/dist/value/ReferenceValue.d.ts +5 -0
  232. package/dist/value/StringValue.d.ts +5 -0
  233. package/dist/value/Value.d.ts +6 -0
  234. package/package.json +2 -2
@@ -0,0 +1,1514 @@
1
+ "use strict";
2
+ // Generated from IfcExpression.g4 by ANTLR 4.13.0
3
+ // noinspection ES6UnusedImports,JSUnusedGlobalSymbols,JSUnusedLocalSymbols
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ArrayElementListContext = exports.ArrayContext = exports.ExprListContext = exports.FunctionCallContext = exports.NamedRefContext = exports.NestedObjectChainInnerContext = exports.NestedObjectChainEndContext = exports.NestedObjectChainContext = exports.AttributeRefContext = exports.ObjectRefContext = exports.StringConcatContext = exports.StringFunCallContext = exports.StringLiteralContext = exports.StringAttributeRefContext = exports.StringExprContext = exports.NumLiteralContext = exports.NumAttributeRefContext = exports.NumFunCallContext = exports.NumLitContext = exports.NumParensContext = exports.NumAddSubContext = exports.NumMulDivContext = exports.NumExprContext = exports.ExprContext = void 0;
6
+ const antlr4_1 = require("antlr4");
7
+ class IfcExpressionParser extends antlr4_1.Parser {
8
+ get grammarFileName() { return "IfcExpression.g4"; }
9
+ get literalNames() { return IfcExpressionParser.literalNames; }
10
+ get symbolicNames() { return IfcExpressionParser.symbolicNames; }
11
+ get ruleNames() { return IfcExpressionParser.ruleNames; }
12
+ get serializedATN() { return IfcExpressionParser._serializedATN; }
13
+ createFailedPredicateException(predicate, message) {
14
+ return new antlr4_1.FailedPredicateException(this, predicate, message);
15
+ }
16
+ constructor(input) {
17
+ super(input);
18
+ this._interp = new antlr4_1.ParserATNSimulator(this, IfcExpressionParser._ATN, IfcExpressionParser.DecisionsToDFA, new antlr4_1.PredictionContextCache());
19
+ }
20
+ // @RuleVersion(0)
21
+ expr() {
22
+ let localctx = new ExprContext(this, this._ctx, this.state);
23
+ this.enterRule(localctx, 0, IfcExpressionParser.RULE_expr);
24
+ try {
25
+ this.state = 29;
26
+ this._errHandler.sync(this);
27
+ switch (this._interp.adaptivePredict(this._input, 0, this._ctx)) {
28
+ case 1:
29
+ this.enterOuterAlt(localctx, 1);
30
+ {
31
+ this.state = 24;
32
+ this.attributeRef();
33
+ }
34
+ break;
35
+ case 2:
36
+ this.enterOuterAlt(localctx, 2);
37
+ {
38
+ this.state = 25;
39
+ this.functionCall();
40
+ }
41
+ break;
42
+ case 3:
43
+ this.enterOuterAlt(localctx, 3);
44
+ {
45
+ this.state = 26;
46
+ this.numExpr(0);
47
+ }
48
+ break;
49
+ case 4:
50
+ this.enterOuterAlt(localctx, 4);
51
+ {
52
+ this.state = 27;
53
+ this.array();
54
+ }
55
+ break;
56
+ case 5:
57
+ this.enterOuterAlt(localctx, 5);
58
+ {
59
+ this.state = 28;
60
+ this.stringExpr(0);
61
+ }
62
+ break;
63
+ }
64
+ }
65
+ catch (re) {
66
+ if (re instanceof antlr4_1.RecognitionException) {
67
+ localctx.exception = re;
68
+ this._errHandler.reportError(this, re);
69
+ this._errHandler.recover(this, re);
70
+ }
71
+ else {
72
+ throw re;
73
+ }
74
+ }
75
+ finally {
76
+ this.exitRule();
77
+ }
78
+ return localctx;
79
+ }
80
+ // @RuleVersion(0)
81
+ numExpr(_p) {
82
+ if (_p === undefined) {
83
+ _p = 0;
84
+ }
85
+ let _parentctx = this._ctx;
86
+ let _parentState = this.state;
87
+ let localctx = new NumExprContext(this, this._ctx, _parentState);
88
+ let _prevctx = localctx;
89
+ let _startState = 2;
90
+ this.enterRecursionRule(localctx, 2, IfcExpressionParser.RULE_numExpr, _p);
91
+ let _la;
92
+ try {
93
+ let _alt;
94
+ this.enterOuterAlt(localctx, 1);
95
+ {
96
+ this.state = 39;
97
+ this._errHandler.sync(this);
98
+ switch (this._input.LA(1)) {
99
+ case 12:
100
+ case 13:
101
+ {
102
+ localctx = new NumLitContext(this, localctx);
103
+ this._ctx = localctx;
104
+ _prevctx = localctx;
105
+ this.state = 32;
106
+ this.numLiteral();
107
+ }
108
+ break;
109
+ case 5:
110
+ {
111
+ localctx = new NumParensContext(this, localctx);
112
+ this._ctx = localctx;
113
+ _prevctx = localctx;
114
+ this.state = 33;
115
+ this.match(IfcExpressionParser.T__4);
116
+ this.state = 34;
117
+ this.numExpr(0);
118
+ this.state = 35;
119
+ this.match(IfcExpressionParser.T__5);
120
+ }
121
+ break;
122
+ case 20:
123
+ {
124
+ localctx = new NumFunCallContext(this, localctx);
125
+ this._ctx = localctx;
126
+ _prevctx = localctx;
127
+ this.state = 37;
128
+ this.functionCall();
129
+ }
130
+ break;
131
+ case 14:
132
+ case 15:
133
+ {
134
+ localctx = new NumAttributeRefContext(this, localctx);
135
+ this._ctx = localctx;
136
+ _prevctx = localctx;
137
+ this.state = 38;
138
+ this.attributeRef();
139
+ }
140
+ break;
141
+ default:
142
+ throw new antlr4_1.NoViableAltException(this);
143
+ }
144
+ this._ctx.stop = this._input.LT(-1);
145
+ this.state = 49;
146
+ this._errHandler.sync(this);
147
+ _alt = this._interp.adaptivePredict(this._input, 3, this._ctx);
148
+ while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
149
+ if (_alt === 1) {
150
+ if (this._parseListeners != null) {
151
+ this.triggerExitRuleEvent();
152
+ }
153
+ _prevctx = localctx;
154
+ {
155
+ this.state = 47;
156
+ this._errHandler.sync(this);
157
+ switch (this._interp.adaptivePredict(this._input, 2, this._ctx)) {
158
+ case 1:
159
+ {
160
+ localctx = new NumMulDivContext(this, new NumExprContext(this, _parentctx, _parentState));
161
+ this.pushNewRecursionContext(localctx, _startState, IfcExpressionParser.RULE_numExpr);
162
+ this.state = 41;
163
+ if (!(this.precpred(this._ctx, 6))) {
164
+ throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");
165
+ }
166
+ this.state = 42;
167
+ localctx._op = this._input.LT(1);
168
+ _la = this._input.LA(1);
169
+ if (!(_la === 1 || _la === 2)) {
170
+ localctx._op = this._errHandler.recoverInline(this);
171
+ }
172
+ else {
173
+ this._errHandler.reportMatch(this);
174
+ this.consume();
175
+ }
176
+ this.state = 43;
177
+ this.numExpr(7);
178
+ }
179
+ break;
180
+ case 2:
181
+ {
182
+ localctx = new NumAddSubContext(this, new NumExprContext(this, _parentctx, _parentState));
183
+ this.pushNewRecursionContext(localctx, _startState, IfcExpressionParser.RULE_numExpr);
184
+ this.state = 44;
185
+ if (!(this.precpred(this._ctx, 5))) {
186
+ throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");
187
+ }
188
+ this.state = 45;
189
+ localctx._op = this._input.LT(1);
190
+ _la = this._input.LA(1);
191
+ if (!(_la === 3 || _la === 4)) {
192
+ localctx._op = this._errHandler.recoverInline(this);
193
+ }
194
+ else {
195
+ this._errHandler.reportMatch(this);
196
+ this.consume();
197
+ }
198
+ this.state = 46;
199
+ this.numExpr(6);
200
+ }
201
+ break;
202
+ }
203
+ }
204
+ }
205
+ this.state = 51;
206
+ this._errHandler.sync(this);
207
+ _alt = this._interp.adaptivePredict(this._input, 3, this._ctx);
208
+ }
209
+ }
210
+ }
211
+ catch (re) {
212
+ if (re instanceof antlr4_1.RecognitionException) {
213
+ localctx.exception = re;
214
+ this._errHandler.reportError(this, re);
215
+ this._errHandler.recover(this, re);
216
+ }
217
+ else {
218
+ throw re;
219
+ }
220
+ }
221
+ finally {
222
+ this.unrollRecursionContexts(_parentctx);
223
+ }
224
+ return localctx;
225
+ }
226
+ // @RuleVersion(0)
227
+ numLiteral() {
228
+ let localctx = new NumLiteralContext(this, this._ctx, this.state);
229
+ this.enterRule(localctx, 4, IfcExpressionParser.RULE_numLiteral);
230
+ let _la;
231
+ try {
232
+ this.enterOuterAlt(localctx, 1);
233
+ {
234
+ this.state = 52;
235
+ _la = this._input.LA(1);
236
+ if (!(_la === 12 || _la === 13)) {
237
+ this._errHandler.recoverInline(this);
238
+ }
239
+ else {
240
+ this._errHandler.reportMatch(this);
241
+ this.consume();
242
+ }
243
+ }
244
+ }
245
+ catch (re) {
246
+ if (re instanceof antlr4_1.RecognitionException) {
247
+ localctx.exception = re;
248
+ this._errHandler.reportError(this, re);
249
+ this._errHandler.recover(this, re);
250
+ }
251
+ else {
252
+ throw re;
253
+ }
254
+ }
255
+ finally {
256
+ this.exitRule();
257
+ }
258
+ return localctx;
259
+ }
260
+ // @RuleVersion(0)
261
+ stringExpr(_p) {
262
+ if (_p === undefined) {
263
+ _p = 0;
264
+ }
265
+ let _parentctx = this._ctx;
266
+ let _parentState = this.state;
267
+ let localctx = new StringExprContext(this, this._ctx, _parentState);
268
+ let _prevctx = localctx;
269
+ let _startState = 6;
270
+ this.enterRecursionRule(localctx, 6, IfcExpressionParser.RULE_stringExpr, _p);
271
+ try {
272
+ let _alt;
273
+ this.enterOuterAlt(localctx, 1);
274
+ {
275
+ this.state = 58;
276
+ this._errHandler.sync(this);
277
+ switch (this._input.LA(1)) {
278
+ case 18:
279
+ {
280
+ localctx = new StringLiteralContext(this, localctx);
281
+ this._ctx = localctx;
282
+ _prevctx = localctx;
283
+ this.state = 55;
284
+ this.match(IfcExpressionParser.QUOTED_STRING);
285
+ }
286
+ break;
287
+ case 20:
288
+ {
289
+ localctx = new StringFunCallContext(this, localctx);
290
+ this._ctx = localctx;
291
+ _prevctx = localctx;
292
+ this.state = 56;
293
+ this.functionCall();
294
+ }
295
+ break;
296
+ case 14:
297
+ case 15:
298
+ {
299
+ localctx = new StringAttributeRefContext(this, localctx);
300
+ this._ctx = localctx;
301
+ _prevctx = localctx;
302
+ this.state = 57;
303
+ this.attributeRef();
304
+ }
305
+ break;
306
+ default:
307
+ throw new antlr4_1.NoViableAltException(this);
308
+ }
309
+ this._ctx.stop = this._input.LT(-1);
310
+ this.state = 65;
311
+ this._errHandler.sync(this);
312
+ _alt = this._interp.adaptivePredict(this._input, 5, this._ctx);
313
+ while (_alt !== 2 && _alt !== antlr4_1.ATN.INVALID_ALT_NUMBER) {
314
+ if (_alt === 1) {
315
+ if (this._parseListeners != null) {
316
+ this.triggerExitRuleEvent();
317
+ }
318
+ _prevctx = localctx;
319
+ {
320
+ {
321
+ localctx = new StringConcatContext(this, new StringExprContext(this, _parentctx, _parentState));
322
+ localctx._left = _prevctx;
323
+ this.pushNewRecursionContext(localctx, _startState, IfcExpressionParser.RULE_stringExpr);
324
+ this.state = 60;
325
+ if (!(this.precpred(this._ctx, 3))) {
326
+ throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");
327
+ }
328
+ this.state = 61;
329
+ this.match(IfcExpressionParser.T__2);
330
+ this.state = 62;
331
+ localctx._right = this.stringExpr(4);
332
+ }
333
+ }
334
+ }
335
+ this.state = 67;
336
+ this._errHandler.sync(this);
337
+ _alt = this._interp.adaptivePredict(this._input, 5, this._ctx);
338
+ }
339
+ }
340
+ }
341
+ catch (re) {
342
+ if (re instanceof antlr4_1.RecognitionException) {
343
+ localctx.exception = re;
344
+ this._errHandler.reportError(this, re);
345
+ this._errHandler.recover(this, re);
346
+ }
347
+ else {
348
+ throw re;
349
+ }
350
+ }
351
+ finally {
352
+ this.unrollRecursionContexts(_parentctx);
353
+ }
354
+ return localctx;
355
+ }
356
+ // @RuleVersion(0)
357
+ objectRef() {
358
+ let localctx = new ObjectRefContext(this, this._ctx, this.state);
359
+ this.enterRule(localctx, 8, IfcExpressionParser.RULE_objectRef);
360
+ let _la;
361
+ try {
362
+ this.enterOuterAlt(localctx, 1);
363
+ {
364
+ this.state = 68;
365
+ _la = this._input.LA(1);
366
+ if (!(_la === 14 || _la === 15)) {
367
+ this._errHandler.recoverInline(this);
368
+ }
369
+ else {
370
+ this._errHandler.reportMatch(this);
371
+ this.consume();
372
+ }
373
+ }
374
+ }
375
+ catch (re) {
376
+ if (re instanceof antlr4_1.RecognitionException) {
377
+ localctx.exception = re;
378
+ this._errHandler.reportError(this, re);
379
+ this._errHandler.recover(this, re);
380
+ }
381
+ else {
382
+ throw re;
383
+ }
384
+ }
385
+ finally {
386
+ this.exitRule();
387
+ }
388
+ return localctx;
389
+ }
390
+ // @RuleVersion(0)
391
+ attributeRef() {
392
+ let localctx = new AttributeRefContext(this, this._ctx, this.state);
393
+ this.enterRule(localctx, 10, IfcExpressionParser.RULE_attributeRef);
394
+ try {
395
+ this.enterOuterAlt(localctx, 1);
396
+ {
397
+ this.state = 70;
398
+ this.objectRef();
399
+ this.state = 71;
400
+ this.nestedObjectChain();
401
+ }
402
+ }
403
+ catch (re) {
404
+ if (re instanceof antlr4_1.RecognitionException) {
405
+ localctx.exception = re;
406
+ this._errHandler.reportError(this, re);
407
+ this._errHandler.recover(this, re);
408
+ }
409
+ else {
410
+ throw re;
411
+ }
412
+ }
413
+ finally {
414
+ this.exitRule();
415
+ }
416
+ return localctx;
417
+ }
418
+ // @RuleVersion(0)
419
+ nestedObjectChain() {
420
+ let localctx = new NestedObjectChainContext(this, this._ctx, this.state);
421
+ this.enterRule(localctx, 12, IfcExpressionParser.RULE_nestedObjectChain);
422
+ try {
423
+ this.state = 79;
424
+ this._errHandler.sync(this);
425
+ switch (this._input.LA(1)) {
426
+ case 7:
427
+ localctx = new NestedObjectChainInnerContext(this, localctx);
428
+ this.enterOuterAlt(localctx, 1);
429
+ {
430
+ this.state = 73;
431
+ this.match(IfcExpressionParser.T__6);
432
+ this.state = 74;
433
+ this.namedRef();
434
+ this.state = 75;
435
+ this.nestedObjectChain();
436
+ }
437
+ break;
438
+ case 8:
439
+ localctx = new NestedObjectChainEndContext(this, localctx);
440
+ this.enterOuterAlt(localctx, 2);
441
+ {
442
+ this.state = 77;
443
+ this.match(IfcExpressionParser.T__7);
444
+ this.state = 78;
445
+ localctx._name = this.match(IfcExpressionParser.RESERVED_ATTRIBUTE_NAME);
446
+ }
447
+ break;
448
+ default:
449
+ throw new antlr4_1.NoViableAltException(this);
450
+ }
451
+ }
452
+ catch (re) {
453
+ if (re instanceof antlr4_1.RecognitionException) {
454
+ localctx.exception = re;
455
+ this._errHandler.reportError(this, re);
456
+ this._errHandler.recover(this, re);
457
+ }
458
+ else {
459
+ throw re;
460
+ }
461
+ }
462
+ finally {
463
+ this.exitRule();
464
+ }
465
+ return localctx;
466
+ }
467
+ // @RuleVersion(0)
468
+ namedRef() {
469
+ let localctx = new NamedRefContext(this, this._ctx, this.state);
470
+ this.enterRule(localctx, 14, IfcExpressionParser.RULE_namedRef);
471
+ try {
472
+ this.state = 84;
473
+ this._errHandler.sync(this);
474
+ switch (this._input.LA(1)) {
475
+ case 17:
476
+ this.enterOuterAlt(localctx, 1);
477
+ {
478
+ this.state = 81;
479
+ localctx._name = this.match(IfcExpressionParser.RESERVED_RELATION_NAME);
480
+ }
481
+ break;
482
+ case 19:
483
+ this.enterOuterAlt(localctx, 2);
484
+ {
485
+ this.state = 82;
486
+ localctx._name = this.match(IfcExpressionParser.BRACKETED_STRING);
487
+ }
488
+ break;
489
+ case 20:
490
+ this.enterOuterAlt(localctx, 3);
491
+ {
492
+ this.state = 83;
493
+ localctx._name = this.match(IfcExpressionParser.IDENTIFIER);
494
+ }
495
+ break;
496
+ default:
497
+ throw new antlr4_1.NoViableAltException(this);
498
+ }
499
+ }
500
+ catch (re) {
501
+ if (re instanceof antlr4_1.RecognitionException) {
502
+ localctx.exception = re;
503
+ this._errHandler.reportError(this, re);
504
+ this._errHandler.recover(this, re);
505
+ }
506
+ else {
507
+ throw re;
508
+ }
509
+ }
510
+ finally {
511
+ this.exitRule();
512
+ }
513
+ return localctx;
514
+ }
515
+ // @RuleVersion(0)
516
+ functionCall() {
517
+ let localctx = new FunctionCallContext(this, this._ctx, this.state);
518
+ this.enterRule(localctx, 16, IfcExpressionParser.RULE_functionCall);
519
+ try {
520
+ this.enterOuterAlt(localctx, 1);
521
+ {
522
+ this.state = 86;
523
+ localctx._name = this.match(IfcExpressionParser.IDENTIFIER);
524
+ this.state = 87;
525
+ this.match(IfcExpressionParser.T__4);
526
+ this.state = 88;
527
+ this.exprList();
528
+ this.state = 89;
529
+ this.match(IfcExpressionParser.T__5);
530
+ }
531
+ }
532
+ catch (re) {
533
+ if (re instanceof antlr4_1.RecognitionException) {
534
+ localctx.exception = re;
535
+ this._errHandler.reportError(this, re);
536
+ this._errHandler.recover(this, re);
537
+ }
538
+ else {
539
+ throw re;
540
+ }
541
+ }
542
+ finally {
543
+ this.exitRule();
544
+ }
545
+ return localctx;
546
+ }
547
+ // @RuleVersion(0)
548
+ exprList() {
549
+ let localctx = new ExprListContext(this, this._ctx, this.state);
550
+ this.enterRule(localctx, 18, IfcExpressionParser.RULE_exprList);
551
+ try {
552
+ this.state = 96;
553
+ this._errHandler.sync(this);
554
+ switch (this._interp.adaptivePredict(this._input, 8, this._ctx)) {
555
+ case 1:
556
+ this.enterOuterAlt(localctx, 1);
557
+ {
558
+ this.state = 91;
559
+ this.expr();
560
+ }
561
+ break;
562
+ case 2:
563
+ this.enterOuterAlt(localctx, 2);
564
+ {
565
+ this.state = 92;
566
+ this.expr();
567
+ this.state = 93;
568
+ this.match(IfcExpressionParser.T__8);
569
+ this.state = 94;
570
+ this.exprList();
571
+ }
572
+ break;
573
+ }
574
+ }
575
+ catch (re) {
576
+ if (re instanceof antlr4_1.RecognitionException) {
577
+ localctx.exception = re;
578
+ this._errHandler.reportError(this, re);
579
+ this._errHandler.recover(this, re);
580
+ }
581
+ else {
582
+ throw re;
583
+ }
584
+ }
585
+ finally {
586
+ this.exitRule();
587
+ }
588
+ return localctx;
589
+ }
590
+ // @RuleVersion(0)
591
+ array() {
592
+ let localctx = new ArrayContext(this, this._ctx, this.state);
593
+ this.enterRule(localctx, 20, IfcExpressionParser.RULE_array);
594
+ try {
595
+ this.enterOuterAlt(localctx, 1);
596
+ {
597
+ this.state = 98;
598
+ this.match(IfcExpressionParser.T__9);
599
+ this.state = 99;
600
+ this.arrayElementList();
601
+ this.state = 100;
602
+ this.match(IfcExpressionParser.T__10);
603
+ }
604
+ }
605
+ catch (re) {
606
+ if (re instanceof antlr4_1.RecognitionException) {
607
+ localctx.exception = re;
608
+ this._errHandler.reportError(this, re);
609
+ this._errHandler.recover(this, re);
610
+ }
611
+ else {
612
+ throw re;
613
+ }
614
+ }
615
+ finally {
616
+ this.exitRule();
617
+ }
618
+ return localctx;
619
+ }
620
+ // @RuleVersion(0)
621
+ arrayElementList() {
622
+ let localctx = new ArrayElementListContext(this, this._ctx, this.state);
623
+ this.enterRule(localctx, 22, IfcExpressionParser.RULE_arrayElementList);
624
+ try {
625
+ this.state = 107;
626
+ this._errHandler.sync(this);
627
+ switch (this._interp.adaptivePredict(this._input, 9, this._ctx)) {
628
+ case 1:
629
+ this.enterOuterAlt(localctx, 1);
630
+ {
631
+ this.state = 102;
632
+ this.expr();
633
+ }
634
+ break;
635
+ case 2:
636
+ this.enterOuterAlt(localctx, 2);
637
+ {
638
+ this.state = 103;
639
+ this.expr();
640
+ this.state = 104;
641
+ this.match(IfcExpressionParser.T__8);
642
+ this.state = 105;
643
+ this.arrayElementList();
644
+ }
645
+ break;
646
+ }
647
+ }
648
+ catch (re) {
649
+ if (re instanceof antlr4_1.RecognitionException) {
650
+ localctx.exception = re;
651
+ this._errHandler.reportError(this, re);
652
+ this._errHandler.recover(this, re);
653
+ }
654
+ else {
655
+ throw re;
656
+ }
657
+ }
658
+ finally {
659
+ this.exitRule();
660
+ }
661
+ return localctx;
662
+ }
663
+ sempred(localctx, ruleIndex, predIndex) {
664
+ switch (ruleIndex) {
665
+ case 1:
666
+ return this.numExpr_sempred(localctx, predIndex);
667
+ case 3:
668
+ return this.stringExpr_sempred(localctx, predIndex);
669
+ }
670
+ return true;
671
+ }
672
+ numExpr_sempred(localctx, predIndex) {
673
+ switch (predIndex) {
674
+ case 0:
675
+ return this.precpred(this._ctx, 6);
676
+ case 1:
677
+ return this.precpred(this._ctx, 5);
678
+ }
679
+ return true;
680
+ }
681
+ stringExpr_sempred(localctx, predIndex) {
682
+ switch (predIndex) {
683
+ case 2:
684
+ return this.precpred(this._ctx, 3);
685
+ }
686
+ return true;
687
+ }
688
+ static get _ATN() {
689
+ if (!IfcExpressionParser.__ATN) {
690
+ IfcExpressionParser.__ATN = new antlr4_1.ATNDeserializer().deserialize(IfcExpressionParser._serializedATN);
691
+ }
692
+ return IfcExpressionParser.__ATN;
693
+ }
694
+ }
695
+ IfcExpressionParser.T__0 = 1;
696
+ IfcExpressionParser.T__1 = 2;
697
+ IfcExpressionParser.T__2 = 3;
698
+ IfcExpressionParser.T__3 = 4;
699
+ IfcExpressionParser.T__4 = 5;
700
+ IfcExpressionParser.T__5 = 6;
701
+ IfcExpressionParser.T__6 = 7;
702
+ IfcExpressionParser.T__7 = 8;
703
+ IfcExpressionParser.T__8 = 9;
704
+ IfcExpressionParser.T__9 = 10;
705
+ IfcExpressionParser.T__10 = 11;
706
+ IfcExpressionParser.INT = 12;
707
+ IfcExpressionParser.FLOAT = 13;
708
+ IfcExpressionParser.PROP = 14;
709
+ IfcExpressionParser.ELEM = 15;
710
+ IfcExpressionParser.RESERVED_ATTRIBUTE_NAME = 16;
711
+ IfcExpressionParser.RESERVED_RELATION_NAME = 17;
712
+ IfcExpressionParser.QUOTED_STRING = 18;
713
+ IfcExpressionParser.BRACKETED_STRING = 19;
714
+ IfcExpressionParser.IDENTIFIER = 20;
715
+ IfcExpressionParser.WS = 21;
716
+ IfcExpressionParser.NEWLINE = 22;
717
+ IfcExpressionParser.EOF = antlr4_1.Token.EOF;
718
+ IfcExpressionParser.RULE_expr = 0;
719
+ IfcExpressionParser.RULE_numExpr = 1;
720
+ IfcExpressionParser.RULE_numLiteral = 2;
721
+ IfcExpressionParser.RULE_stringExpr = 3;
722
+ IfcExpressionParser.RULE_objectRef = 4;
723
+ IfcExpressionParser.RULE_attributeRef = 5;
724
+ IfcExpressionParser.RULE_nestedObjectChain = 6;
725
+ IfcExpressionParser.RULE_namedRef = 7;
726
+ IfcExpressionParser.RULE_functionCall = 8;
727
+ IfcExpressionParser.RULE_exprList = 9;
728
+ IfcExpressionParser.RULE_array = 10;
729
+ IfcExpressionParser.RULE_arrayElementList = 11;
730
+ IfcExpressionParser.literalNames = [null, "'*'",
731
+ "'/'", "'+'",
732
+ "'-'", "'('",
733
+ "')'", "'.'",
734
+ "'@'", "','",
735
+ "'['", "']'"];
736
+ IfcExpressionParser.symbolicNames = [null, null,
737
+ null, null,
738
+ null, null,
739
+ null, null,
740
+ null, null,
741
+ null, null,
742
+ "INT", "FLOAT",
743
+ "PROP", "ELEM",
744
+ "RESERVED_ATTRIBUTE_NAME",
745
+ "RESERVED_RELATION_NAME",
746
+ "QUOTED_STRING",
747
+ "BRACKETED_STRING",
748
+ "IDENTIFIER",
749
+ "WS", "NEWLINE"];
750
+ // tslint:disable:no-trailing-whitespace
751
+ IfcExpressionParser.ruleNames = [
752
+ "expr", "numExpr", "numLiteral", "stringExpr", "objectRef", "attributeRef",
753
+ "nestedObjectChain", "namedRef", "functionCall", "exprList", "array",
754
+ "arrayElementList",
755
+ ];
756
+ IfcExpressionParser._serializedATN = [4, 1, 22, 110, 2, 0, 7, 0, 2,
757
+ 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2,
758
+ 10, 7, 10, 2, 11, 7, 11, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 30, 8, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
759
+ 1, 1, 1, 1, 1, 3, 1, 40, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 48, 8, 1, 10, 1, 12, 1, 51, 9,
760
+ 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 59, 8, 3, 1, 3, 1, 3, 1, 3, 5, 3, 64, 8, 3, 10, 3, 12, 3, 67,
761
+ 9, 3, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 80, 8, 6, 1, 7, 1, 7, 1, 7,
762
+ 3, 7, 85, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 97, 8, 9, 1, 10, 1, 10,
763
+ 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 108, 8, 11, 1, 11, 0, 2, 2, 6, 12, 0, 2, 4,
764
+ 6, 8, 10, 12, 14, 16, 18, 20, 22, 0, 4, 1, 0, 1, 2, 1, 0, 3, 4, 1, 0, 12, 13, 1, 0, 14, 15, 114, 0,
765
+ 29, 1, 0, 0, 0, 2, 39, 1, 0, 0, 0, 4, 52, 1, 0, 0, 0, 6, 58, 1, 0, 0, 0, 8, 68, 1, 0, 0, 0, 10, 70, 1,
766
+ 0, 0, 0, 12, 79, 1, 0, 0, 0, 14, 84, 1, 0, 0, 0, 16, 86, 1, 0, 0, 0, 18, 96, 1, 0, 0, 0, 20, 98, 1, 0,
767
+ 0, 0, 22, 107, 1, 0, 0, 0, 24, 30, 3, 10, 5, 0, 25, 30, 3, 16, 8, 0, 26, 30, 3, 2, 1, 0, 27, 30, 3,
768
+ 20, 10, 0, 28, 30, 3, 6, 3, 0, 29, 24, 1, 0, 0, 0, 29, 25, 1, 0, 0, 0, 29, 26, 1, 0, 0, 0, 29, 27, 1,
769
+ 0, 0, 0, 29, 28, 1, 0, 0, 0, 30, 1, 1, 0, 0, 0, 31, 32, 6, 1, -1, 0, 32, 40, 3, 4, 2, 0, 33, 34, 5, 5,
770
+ 0, 0, 34, 35, 3, 2, 1, 0, 35, 36, 5, 6, 0, 0, 36, 40, 1, 0, 0, 0, 37, 40, 3, 16, 8, 0, 38, 40, 3, 10,
771
+ 5, 0, 39, 31, 1, 0, 0, 0, 39, 33, 1, 0, 0, 0, 39, 37, 1, 0, 0, 0, 39, 38, 1, 0, 0, 0, 40, 49, 1, 0, 0,
772
+ 0, 41, 42, 10, 6, 0, 0, 42, 43, 7, 0, 0, 0, 43, 48, 3, 2, 1, 7, 44, 45, 10, 5, 0, 0, 45, 46, 7, 1, 0,
773
+ 0, 46, 48, 3, 2, 1, 6, 47, 41, 1, 0, 0, 0, 47, 44, 1, 0, 0, 0, 48, 51, 1, 0, 0, 0, 49, 47, 1, 0, 0, 0,
774
+ 49, 50, 1, 0, 0, 0, 50, 3, 1, 0, 0, 0, 51, 49, 1, 0, 0, 0, 52, 53, 7, 2, 0, 0, 53, 5, 1, 0, 0, 0, 54,
775
+ 55, 6, 3, -1, 0, 55, 59, 5, 18, 0, 0, 56, 59, 3, 16, 8, 0, 57, 59, 3, 10, 5, 0, 58, 54, 1, 0, 0, 0,
776
+ 58, 56, 1, 0, 0, 0, 58, 57, 1, 0, 0, 0, 59, 65, 1, 0, 0, 0, 60, 61, 10, 3, 0, 0, 61, 62, 5, 3, 0, 0,
777
+ 62, 64, 3, 6, 3, 4, 63, 60, 1, 0, 0, 0, 64, 67, 1, 0, 0, 0, 65, 63, 1, 0, 0, 0, 65, 66, 1, 0, 0, 0, 66,
778
+ 7, 1, 0, 0, 0, 67, 65, 1, 0, 0, 0, 68, 69, 7, 3, 0, 0, 69, 9, 1, 0, 0, 0, 70, 71, 3, 8, 4, 0, 71, 72,
779
+ 3, 12, 6, 0, 72, 11, 1, 0, 0, 0, 73, 74, 5, 7, 0, 0, 74, 75, 3, 14, 7, 0, 75, 76, 3, 12, 6, 0, 76, 80,
780
+ 1, 0, 0, 0, 77, 78, 5, 8, 0, 0, 78, 80, 5, 16, 0, 0, 79, 73, 1, 0, 0, 0, 79, 77, 1, 0, 0, 0, 80, 13,
781
+ 1, 0, 0, 0, 81, 85, 5, 17, 0, 0, 82, 85, 5, 19, 0, 0, 83, 85, 5, 20, 0, 0, 84, 81, 1, 0, 0, 0, 84, 82,
782
+ 1, 0, 0, 0, 84, 83, 1, 0, 0, 0, 85, 15, 1, 0, 0, 0, 86, 87, 5, 20, 0, 0, 87, 88, 5, 5, 0, 0, 88, 89,
783
+ 3, 18, 9, 0, 89, 90, 5, 6, 0, 0, 90, 17, 1, 0, 0, 0, 91, 97, 3, 0, 0, 0, 92, 93, 3, 0, 0, 0, 93, 94,
784
+ 5, 9, 0, 0, 94, 95, 3, 18, 9, 0, 95, 97, 1, 0, 0, 0, 96, 91, 1, 0, 0, 0, 96, 92, 1, 0, 0, 0, 97, 19,
785
+ 1, 0, 0, 0, 98, 99, 5, 10, 0, 0, 99, 100, 3, 22, 11, 0, 100, 101, 5, 11, 0, 0, 101, 21, 1, 0, 0, 0,
786
+ 102, 108, 3, 0, 0, 0, 103, 104, 3, 0, 0, 0, 104, 105, 5, 9, 0, 0, 105, 106, 3, 22, 11, 0, 106, 108,
787
+ 1, 0, 0, 0, 107, 102, 1, 0, 0, 0, 107, 103, 1, 0, 0, 0, 108, 23, 1, 0, 0, 0, 10, 29, 39, 47, 49, 58,
788
+ 65, 79, 84, 96, 107];
789
+ IfcExpressionParser.DecisionsToDFA = IfcExpressionParser._ATN.decisionToState.map((ds, index) => new antlr4_1.DFA(ds, index));
790
+ exports.default = IfcExpressionParser;
791
+ class ExprContext extends antlr4_1.ParserRuleContext {
792
+ constructor(parser, parent, invokingState) {
793
+ super(parent, invokingState);
794
+ this.parser = parser;
795
+ }
796
+ attributeRef() {
797
+ return this.getTypedRuleContext(AttributeRefContext, 0);
798
+ }
799
+ functionCall() {
800
+ return this.getTypedRuleContext(FunctionCallContext, 0);
801
+ }
802
+ numExpr() {
803
+ return this.getTypedRuleContext(NumExprContext, 0);
804
+ }
805
+ array() {
806
+ return this.getTypedRuleContext(ArrayContext, 0);
807
+ }
808
+ stringExpr() {
809
+ return this.getTypedRuleContext(StringExprContext, 0);
810
+ }
811
+ get ruleIndex() {
812
+ return IfcExpressionParser.RULE_expr;
813
+ }
814
+ enterRule(listener) {
815
+ if (listener.enterExpr) {
816
+ listener.enterExpr(this);
817
+ }
818
+ }
819
+ exitRule(listener) {
820
+ if (listener.exitExpr) {
821
+ listener.exitExpr(this);
822
+ }
823
+ }
824
+ // @Override
825
+ accept(visitor) {
826
+ if (visitor.visitExpr) {
827
+ return visitor.visitExpr(this);
828
+ }
829
+ else {
830
+ return visitor.visitChildren(this);
831
+ }
832
+ }
833
+ }
834
+ exports.ExprContext = ExprContext;
835
+ class NumExprContext extends antlr4_1.ParserRuleContext {
836
+ constructor(parser, parent, invokingState) {
837
+ super(parent, invokingState);
838
+ this.parser = parser;
839
+ }
840
+ get ruleIndex() {
841
+ return IfcExpressionParser.RULE_numExpr;
842
+ }
843
+ copyFrom(ctx) {
844
+ super.copyFrom(ctx);
845
+ }
846
+ }
847
+ exports.NumExprContext = NumExprContext;
848
+ class NumMulDivContext extends NumExprContext {
849
+ constructor(parser, ctx) {
850
+ super(parser, ctx.parentCtx, ctx.invokingState);
851
+ super.copyFrom(ctx);
852
+ }
853
+ numExpr_list() {
854
+ return this.getTypedRuleContexts(NumExprContext);
855
+ }
856
+ numExpr(i) {
857
+ return this.getTypedRuleContext(NumExprContext, i);
858
+ }
859
+ enterRule(listener) {
860
+ if (listener.enterNumMulDiv) {
861
+ listener.enterNumMulDiv(this);
862
+ }
863
+ }
864
+ exitRule(listener) {
865
+ if (listener.exitNumMulDiv) {
866
+ listener.exitNumMulDiv(this);
867
+ }
868
+ }
869
+ // @Override
870
+ accept(visitor) {
871
+ if (visitor.visitNumMulDiv) {
872
+ return visitor.visitNumMulDiv(this);
873
+ }
874
+ else {
875
+ return visitor.visitChildren(this);
876
+ }
877
+ }
878
+ }
879
+ exports.NumMulDivContext = NumMulDivContext;
880
+ class NumAddSubContext extends NumExprContext {
881
+ constructor(parser, ctx) {
882
+ super(parser, ctx.parentCtx, ctx.invokingState);
883
+ super.copyFrom(ctx);
884
+ }
885
+ numExpr_list() {
886
+ return this.getTypedRuleContexts(NumExprContext);
887
+ }
888
+ numExpr(i) {
889
+ return this.getTypedRuleContext(NumExprContext, i);
890
+ }
891
+ enterRule(listener) {
892
+ if (listener.enterNumAddSub) {
893
+ listener.enterNumAddSub(this);
894
+ }
895
+ }
896
+ exitRule(listener) {
897
+ if (listener.exitNumAddSub) {
898
+ listener.exitNumAddSub(this);
899
+ }
900
+ }
901
+ // @Override
902
+ accept(visitor) {
903
+ if (visitor.visitNumAddSub) {
904
+ return visitor.visitNumAddSub(this);
905
+ }
906
+ else {
907
+ return visitor.visitChildren(this);
908
+ }
909
+ }
910
+ }
911
+ exports.NumAddSubContext = NumAddSubContext;
912
+ class NumParensContext extends NumExprContext {
913
+ constructor(parser, ctx) {
914
+ super(parser, ctx.parentCtx, ctx.invokingState);
915
+ super.copyFrom(ctx);
916
+ }
917
+ numExpr() {
918
+ return this.getTypedRuleContext(NumExprContext, 0);
919
+ }
920
+ enterRule(listener) {
921
+ if (listener.enterNumParens) {
922
+ listener.enterNumParens(this);
923
+ }
924
+ }
925
+ exitRule(listener) {
926
+ if (listener.exitNumParens) {
927
+ listener.exitNumParens(this);
928
+ }
929
+ }
930
+ // @Override
931
+ accept(visitor) {
932
+ if (visitor.visitNumParens) {
933
+ return visitor.visitNumParens(this);
934
+ }
935
+ else {
936
+ return visitor.visitChildren(this);
937
+ }
938
+ }
939
+ }
940
+ exports.NumParensContext = NumParensContext;
941
+ class NumLitContext extends NumExprContext {
942
+ constructor(parser, ctx) {
943
+ super(parser, ctx.parentCtx, ctx.invokingState);
944
+ super.copyFrom(ctx);
945
+ }
946
+ numLiteral() {
947
+ return this.getTypedRuleContext(NumLiteralContext, 0);
948
+ }
949
+ enterRule(listener) {
950
+ if (listener.enterNumLit) {
951
+ listener.enterNumLit(this);
952
+ }
953
+ }
954
+ exitRule(listener) {
955
+ if (listener.exitNumLit) {
956
+ listener.exitNumLit(this);
957
+ }
958
+ }
959
+ // @Override
960
+ accept(visitor) {
961
+ if (visitor.visitNumLit) {
962
+ return visitor.visitNumLit(this);
963
+ }
964
+ else {
965
+ return visitor.visitChildren(this);
966
+ }
967
+ }
968
+ }
969
+ exports.NumLitContext = NumLitContext;
970
+ class NumFunCallContext extends NumExprContext {
971
+ constructor(parser, ctx) {
972
+ super(parser, ctx.parentCtx, ctx.invokingState);
973
+ super.copyFrom(ctx);
974
+ }
975
+ functionCall() {
976
+ return this.getTypedRuleContext(FunctionCallContext, 0);
977
+ }
978
+ enterRule(listener) {
979
+ if (listener.enterNumFunCall) {
980
+ listener.enterNumFunCall(this);
981
+ }
982
+ }
983
+ exitRule(listener) {
984
+ if (listener.exitNumFunCall) {
985
+ listener.exitNumFunCall(this);
986
+ }
987
+ }
988
+ // @Override
989
+ accept(visitor) {
990
+ if (visitor.visitNumFunCall) {
991
+ return visitor.visitNumFunCall(this);
992
+ }
993
+ else {
994
+ return visitor.visitChildren(this);
995
+ }
996
+ }
997
+ }
998
+ exports.NumFunCallContext = NumFunCallContext;
999
+ class NumAttributeRefContext extends NumExprContext {
1000
+ constructor(parser, ctx) {
1001
+ super(parser, ctx.parentCtx, ctx.invokingState);
1002
+ super.copyFrom(ctx);
1003
+ }
1004
+ attributeRef() {
1005
+ return this.getTypedRuleContext(AttributeRefContext, 0);
1006
+ }
1007
+ enterRule(listener) {
1008
+ if (listener.enterNumAttributeRef) {
1009
+ listener.enterNumAttributeRef(this);
1010
+ }
1011
+ }
1012
+ exitRule(listener) {
1013
+ if (listener.exitNumAttributeRef) {
1014
+ listener.exitNumAttributeRef(this);
1015
+ }
1016
+ }
1017
+ // @Override
1018
+ accept(visitor) {
1019
+ if (visitor.visitNumAttributeRef) {
1020
+ return visitor.visitNumAttributeRef(this);
1021
+ }
1022
+ else {
1023
+ return visitor.visitChildren(this);
1024
+ }
1025
+ }
1026
+ }
1027
+ exports.NumAttributeRefContext = NumAttributeRefContext;
1028
+ class NumLiteralContext extends antlr4_1.ParserRuleContext {
1029
+ constructor(parser, parent, invokingState) {
1030
+ super(parent, invokingState);
1031
+ this.parser = parser;
1032
+ }
1033
+ INT() {
1034
+ return this.getToken(IfcExpressionParser.INT, 0);
1035
+ }
1036
+ FLOAT() {
1037
+ return this.getToken(IfcExpressionParser.FLOAT, 0);
1038
+ }
1039
+ get ruleIndex() {
1040
+ return IfcExpressionParser.RULE_numLiteral;
1041
+ }
1042
+ enterRule(listener) {
1043
+ if (listener.enterNumLiteral) {
1044
+ listener.enterNumLiteral(this);
1045
+ }
1046
+ }
1047
+ exitRule(listener) {
1048
+ if (listener.exitNumLiteral) {
1049
+ listener.exitNumLiteral(this);
1050
+ }
1051
+ }
1052
+ // @Override
1053
+ accept(visitor) {
1054
+ if (visitor.visitNumLiteral) {
1055
+ return visitor.visitNumLiteral(this);
1056
+ }
1057
+ else {
1058
+ return visitor.visitChildren(this);
1059
+ }
1060
+ }
1061
+ }
1062
+ exports.NumLiteralContext = NumLiteralContext;
1063
+ class StringExprContext extends antlr4_1.ParserRuleContext {
1064
+ constructor(parser, parent, invokingState) {
1065
+ super(parent, invokingState);
1066
+ this.parser = parser;
1067
+ }
1068
+ get ruleIndex() {
1069
+ return IfcExpressionParser.RULE_stringExpr;
1070
+ }
1071
+ copyFrom(ctx) {
1072
+ super.copyFrom(ctx);
1073
+ }
1074
+ }
1075
+ exports.StringExprContext = StringExprContext;
1076
+ class StringAttributeRefContext extends StringExprContext {
1077
+ constructor(parser, ctx) {
1078
+ super(parser, ctx.parentCtx, ctx.invokingState);
1079
+ super.copyFrom(ctx);
1080
+ }
1081
+ attributeRef() {
1082
+ return this.getTypedRuleContext(AttributeRefContext, 0);
1083
+ }
1084
+ enterRule(listener) {
1085
+ if (listener.enterStringAttributeRef) {
1086
+ listener.enterStringAttributeRef(this);
1087
+ }
1088
+ }
1089
+ exitRule(listener) {
1090
+ if (listener.exitStringAttributeRef) {
1091
+ listener.exitStringAttributeRef(this);
1092
+ }
1093
+ }
1094
+ // @Override
1095
+ accept(visitor) {
1096
+ if (visitor.visitStringAttributeRef) {
1097
+ return visitor.visitStringAttributeRef(this);
1098
+ }
1099
+ else {
1100
+ return visitor.visitChildren(this);
1101
+ }
1102
+ }
1103
+ }
1104
+ exports.StringAttributeRefContext = StringAttributeRefContext;
1105
+ class StringLiteralContext extends StringExprContext {
1106
+ constructor(parser, ctx) {
1107
+ super(parser, ctx.parentCtx, ctx.invokingState);
1108
+ super.copyFrom(ctx);
1109
+ }
1110
+ QUOTED_STRING() {
1111
+ return this.getToken(IfcExpressionParser.QUOTED_STRING, 0);
1112
+ }
1113
+ enterRule(listener) {
1114
+ if (listener.enterStringLiteral) {
1115
+ listener.enterStringLiteral(this);
1116
+ }
1117
+ }
1118
+ exitRule(listener) {
1119
+ if (listener.exitStringLiteral) {
1120
+ listener.exitStringLiteral(this);
1121
+ }
1122
+ }
1123
+ // @Override
1124
+ accept(visitor) {
1125
+ if (visitor.visitStringLiteral) {
1126
+ return visitor.visitStringLiteral(this);
1127
+ }
1128
+ else {
1129
+ return visitor.visitChildren(this);
1130
+ }
1131
+ }
1132
+ }
1133
+ exports.StringLiteralContext = StringLiteralContext;
1134
+ class StringFunCallContext extends StringExprContext {
1135
+ constructor(parser, ctx) {
1136
+ super(parser, ctx.parentCtx, ctx.invokingState);
1137
+ super.copyFrom(ctx);
1138
+ }
1139
+ functionCall() {
1140
+ return this.getTypedRuleContext(FunctionCallContext, 0);
1141
+ }
1142
+ enterRule(listener) {
1143
+ if (listener.enterStringFunCall) {
1144
+ listener.enterStringFunCall(this);
1145
+ }
1146
+ }
1147
+ exitRule(listener) {
1148
+ if (listener.exitStringFunCall) {
1149
+ listener.exitStringFunCall(this);
1150
+ }
1151
+ }
1152
+ // @Override
1153
+ accept(visitor) {
1154
+ if (visitor.visitStringFunCall) {
1155
+ return visitor.visitStringFunCall(this);
1156
+ }
1157
+ else {
1158
+ return visitor.visitChildren(this);
1159
+ }
1160
+ }
1161
+ }
1162
+ exports.StringFunCallContext = StringFunCallContext;
1163
+ class StringConcatContext extends StringExprContext {
1164
+ constructor(parser, ctx) {
1165
+ super(parser, ctx.parentCtx, ctx.invokingState);
1166
+ super.copyFrom(ctx);
1167
+ }
1168
+ stringExpr_list() {
1169
+ return this.getTypedRuleContexts(StringExprContext);
1170
+ }
1171
+ stringExpr(i) {
1172
+ return this.getTypedRuleContext(StringExprContext, i);
1173
+ }
1174
+ enterRule(listener) {
1175
+ if (listener.enterStringConcat) {
1176
+ listener.enterStringConcat(this);
1177
+ }
1178
+ }
1179
+ exitRule(listener) {
1180
+ if (listener.exitStringConcat) {
1181
+ listener.exitStringConcat(this);
1182
+ }
1183
+ }
1184
+ // @Override
1185
+ accept(visitor) {
1186
+ if (visitor.visitStringConcat) {
1187
+ return visitor.visitStringConcat(this);
1188
+ }
1189
+ else {
1190
+ return visitor.visitChildren(this);
1191
+ }
1192
+ }
1193
+ }
1194
+ exports.StringConcatContext = StringConcatContext;
1195
+ class ObjectRefContext extends antlr4_1.ParserRuleContext {
1196
+ constructor(parser, parent, invokingState) {
1197
+ super(parent, invokingState);
1198
+ this.parser = parser;
1199
+ }
1200
+ PROP() {
1201
+ return this.getToken(IfcExpressionParser.PROP, 0);
1202
+ }
1203
+ ELEM() {
1204
+ return this.getToken(IfcExpressionParser.ELEM, 0);
1205
+ }
1206
+ get ruleIndex() {
1207
+ return IfcExpressionParser.RULE_objectRef;
1208
+ }
1209
+ enterRule(listener) {
1210
+ if (listener.enterObjectRef) {
1211
+ listener.enterObjectRef(this);
1212
+ }
1213
+ }
1214
+ exitRule(listener) {
1215
+ if (listener.exitObjectRef) {
1216
+ listener.exitObjectRef(this);
1217
+ }
1218
+ }
1219
+ // @Override
1220
+ accept(visitor) {
1221
+ if (visitor.visitObjectRef) {
1222
+ return visitor.visitObjectRef(this);
1223
+ }
1224
+ else {
1225
+ return visitor.visitChildren(this);
1226
+ }
1227
+ }
1228
+ }
1229
+ exports.ObjectRefContext = ObjectRefContext;
1230
+ class AttributeRefContext extends antlr4_1.ParserRuleContext {
1231
+ constructor(parser, parent, invokingState) {
1232
+ super(parent, invokingState);
1233
+ this.parser = parser;
1234
+ }
1235
+ objectRef() {
1236
+ return this.getTypedRuleContext(ObjectRefContext, 0);
1237
+ }
1238
+ nestedObjectChain() {
1239
+ return this.getTypedRuleContext(NestedObjectChainContext, 0);
1240
+ }
1241
+ get ruleIndex() {
1242
+ return IfcExpressionParser.RULE_attributeRef;
1243
+ }
1244
+ enterRule(listener) {
1245
+ if (listener.enterAttributeRef) {
1246
+ listener.enterAttributeRef(this);
1247
+ }
1248
+ }
1249
+ exitRule(listener) {
1250
+ if (listener.exitAttributeRef) {
1251
+ listener.exitAttributeRef(this);
1252
+ }
1253
+ }
1254
+ // @Override
1255
+ accept(visitor) {
1256
+ if (visitor.visitAttributeRef) {
1257
+ return visitor.visitAttributeRef(this);
1258
+ }
1259
+ else {
1260
+ return visitor.visitChildren(this);
1261
+ }
1262
+ }
1263
+ }
1264
+ exports.AttributeRefContext = AttributeRefContext;
1265
+ class NestedObjectChainContext extends antlr4_1.ParserRuleContext {
1266
+ constructor(parser, parent, invokingState) {
1267
+ super(parent, invokingState);
1268
+ this.parser = parser;
1269
+ }
1270
+ get ruleIndex() {
1271
+ return IfcExpressionParser.RULE_nestedObjectChain;
1272
+ }
1273
+ copyFrom(ctx) {
1274
+ super.copyFrom(ctx);
1275
+ }
1276
+ }
1277
+ exports.NestedObjectChainContext = NestedObjectChainContext;
1278
+ class NestedObjectChainEndContext extends NestedObjectChainContext {
1279
+ constructor(parser, ctx) {
1280
+ super(parser, ctx.parentCtx, ctx.invokingState);
1281
+ super.copyFrom(ctx);
1282
+ }
1283
+ RESERVED_ATTRIBUTE_NAME() {
1284
+ return this.getToken(IfcExpressionParser.RESERVED_ATTRIBUTE_NAME, 0);
1285
+ }
1286
+ enterRule(listener) {
1287
+ if (listener.enterNestedObjectChainEnd) {
1288
+ listener.enterNestedObjectChainEnd(this);
1289
+ }
1290
+ }
1291
+ exitRule(listener) {
1292
+ if (listener.exitNestedObjectChainEnd) {
1293
+ listener.exitNestedObjectChainEnd(this);
1294
+ }
1295
+ }
1296
+ // @Override
1297
+ accept(visitor) {
1298
+ if (visitor.visitNestedObjectChainEnd) {
1299
+ return visitor.visitNestedObjectChainEnd(this);
1300
+ }
1301
+ else {
1302
+ return visitor.visitChildren(this);
1303
+ }
1304
+ }
1305
+ }
1306
+ exports.NestedObjectChainEndContext = NestedObjectChainEndContext;
1307
+ class NestedObjectChainInnerContext extends NestedObjectChainContext {
1308
+ constructor(parser, ctx) {
1309
+ super(parser, ctx.parentCtx, ctx.invokingState);
1310
+ super.copyFrom(ctx);
1311
+ }
1312
+ namedRef() {
1313
+ return this.getTypedRuleContext(NamedRefContext, 0);
1314
+ }
1315
+ nestedObjectChain() {
1316
+ return this.getTypedRuleContext(NestedObjectChainContext, 0);
1317
+ }
1318
+ enterRule(listener) {
1319
+ if (listener.enterNestedObjectChainInner) {
1320
+ listener.enterNestedObjectChainInner(this);
1321
+ }
1322
+ }
1323
+ exitRule(listener) {
1324
+ if (listener.exitNestedObjectChainInner) {
1325
+ listener.exitNestedObjectChainInner(this);
1326
+ }
1327
+ }
1328
+ // @Override
1329
+ accept(visitor) {
1330
+ if (visitor.visitNestedObjectChainInner) {
1331
+ return visitor.visitNestedObjectChainInner(this);
1332
+ }
1333
+ else {
1334
+ return visitor.visitChildren(this);
1335
+ }
1336
+ }
1337
+ }
1338
+ exports.NestedObjectChainInnerContext = NestedObjectChainInnerContext;
1339
+ class NamedRefContext extends antlr4_1.ParserRuleContext {
1340
+ constructor(parser, parent, invokingState) {
1341
+ super(parent, invokingState);
1342
+ this.parser = parser;
1343
+ }
1344
+ RESERVED_RELATION_NAME() {
1345
+ return this.getToken(IfcExpressionParser.RESERVED_RELATION_NAME, 0);
1346
+ }
1347
+ BRACKETED_STRING() {
1348
+ return this.getToken(IfcExpressionParser.BRACKETED_STRING, 0);
1349
+ }
1350
+ IDENTIFIER() {
1351
+ return this.getToken(IfcExpressionParser.IDENTIFIER, 0);
1352
+ }
1353
+ get ruleIndex() {
1354
+ return IfcExpressionParser.RULE_namedRef;
1355
+ }
1356
+ enterRule(listener) {
1357
+ if (listener.enterNamedRef) {
1358
+ listener.enterNamedRef(this);
1359
+ }
1360
+ }
1361
+ exitRule(listener) {
1362
+ if (listener.exitNamedRef) {
1363
+ listener.exitNamedRef(this);
1364
+ }
1365
+ }
1366
+ // @Override
1367
+ accept(visitor) {
1368
+ if (visitor.visitNamedRef) {
1369
+ return visitor.visitNamedRef(this);
1370
+ }
1371
+ else {
1372
+ return visitor.visitChildren(this);
1373
+ }
1374
+ }
1375
+ }
1376
+ exports.NamedRefContext = NamedRefContext;
1377
+ class FunctionCallContext extends antlr4_1.ParserRuleContext {
1378
+ constructor(parser, parent, invokingState) {
1379
+ super(parent, invokingState);
1380
+ this.parser = parser;
1381
+ }
1382
+ exprList() {
1383
+ return this.getTypedRuleContext(ExprListContext, 0);
1384
+ }
1385
+ IDENTIFIER() {
1386
+ return this.getToken(IfcExpressionParser.IDENTIFIER, 0);
1387
+ }
1388
+ get ruleIndex() {
1389
+ return IfcExpressionParser.RULE_functionCall;
1390
+ }
1391
+ enterRule(listener) {
1392
+ if (listener.enterFunctionCall) {
1393
+ listener.enterFunctionCall(this);
1394
+ }
1395
+ }
1396
+ exitRule(listener) {
1397
+ if (listener.exitFunctionCall) {
1398
+ listener.exitFunctionCall(this);
1399
+ }
1400
+ }
1401
+ // @Override
1402
+ accept(visitor) {
1403
+ if (visitor.visitFunctionCall) {
1404
+ return visitor.visitFunctionCall(this);
1405
+ }
1406
+ else {
1407
+ return visitor.visitChildren(this);
1408
+ }
1409
+ }
1410
+ }
1411
+ exports.FunctionCallContext = FunctionCallContext;
1412
+ class ExprListContext extends antlr4_1.ParserRuleContext {
1413
+ constructor(parser, parent, invokingState) {
1414
+ super(parent, invokingState);
1415
+ this.parser = parser;
1416
+ }
1417
+ expr() {
1418
+ return this.getTypedRuleContext(ExprContext, 0);
1419
+ }
1420
+ exprList() {
1421
+ return this.getTypedRuleContext(ExprListContext, 0);
1422
+ }
1423
+ get ruleIndex() {
1424
+ return IfcExpressionParser.RULE_exprList;
1425
+ }
1426
+ enterRule(listener) {
1427
+ if (listener.enterExprList) {
1428
+ listener.enterExprList(this);
1429
+ }
1430
+ }
1431
+ exitRule(listener) {
1432
+ if (listener.exitExprList) {
1433
+ listener.exitExprList(this);
1434
+ }
1435
+ }
1436
+ // @Override
1437
+ accept(visitor) {
1438
+ if (visitor.visitExprList) {
1439
+ return visitor.visitExprList(this);
1440
+ }
1441
+ else {
1442
+ return visitor.visitChildren(this);
1443
+ }
1444
+ }
1445
+ }
1446
+ exports.ExprListContext = ExprListContext;
1447
+ class ArrayContext extends antlr4_1.ParserRuleContext {
1448
+ constructor(parser, parent, invokingState) {
1449
+ super(parent, invokingState);
1450
+ this.parser = parser;
1451
+ }
1452
+ arrayElementList() {
1453
+ return this.getTypedRuleContext(ArrayElementListContext, 0);
1454
+ }
1455
+ get ruleIndex() {
1456
+ return IfcExpressionParser.RULE_array;
1457
+ }
1458
+ enterRule(listener) {
1459
+ if (listener.enterArray) {
1460
+ listener.enterArray(this);
1461
+ }
1462
+ }
1463
+ exitRule(listener) {
1464
+ if (listener.exitArray) {
1465
+ listener.exitArray(this);
1466
+ }
1467
+ }
1468
+ // @Override
1469
+ accept(visitor) {
1470
+ if (visitor.visitArray) {
1471
+ return visitor.visitArray(this);
1472
+ }
1473
+ else {
1474
+ return visitor.visitChildren(this);
1475
+ }
1476
+ }
1477
+ }
1478
+ exports.ArrayContext = ArrayContext;
1479
+ class ArrayElementListContext extends antlr4_1.ParserRuleContext {
1480
+ constructor(parser, parent, invokingState) {
1481
+ super(parent, invokingState);
1482
+ this.parser = parser;
1483
+ }
1484
+ expr() {
1485
+ return this.getTypedRuleContext(ExprContext, 0);
1486
+ }
1487
+ arrayElementList() {
1488
+ return this.getTypedRuleContext(ArrayElementListContext, 0);
1489
+ }
1490
+ get ruleIndex() {
1491
+ return IfcExpressionParser.RULE_arrayElementList;
1492
+ }
1493
+ enterRule(listener) {
1494
+ if (listener.enterArrayElementList) {
1495
+ listener.enterArrayElementList(this);
1496
+ }
1497
+ }
1498
+ exitRule(listener) {
1499
+ if (listener.exitArrayElementList) {
1500
+ listener.exitArrayElementList(this);
1501
+ }
1502
+ }
1503
+ // @Override
1504
+ accept(visitor) {
1505
+ if (visitor.visitArrayElementList) {
1506
+ return visitor.visitArrayElementList(this);
1507
+ }
1508
+ else {
1509
+ return visitor.visitChildren(this);
1510
+ }
1511
+ }
1512
+ }
1513
+ exports.ArrayElementListContext = ArrayElementListContext;
1514
+ //# sourceMappingURL=IfcExpressionParser.js.map