@zenstackhq/language 0.6.0-pre.17 → 0.6.0-pre.19

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/ast.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AbstractDeclaration, ExpressionType } from './generated/ast';
1
+ import { AbstractDeclaration, ExpressionType, BinaryExpr } from './generated/ast';
2
2
  export * from './generated/ast';
3
3
  export { AstNode, Reference } from 'langium';
4
4
  /**
@@ -12,6 +12,7 @@ export type ResolvedType = {
12
12
  decl?: ResolvedShape;
13
13
  array?: boolean;
14
14
  };
15
+ export declare const BinaryExprOperatorPriority: Record<BinaryExpr['operator'], number>;
15
16
  declare module './generated/ast' {
16
17
  interface AttributeArg {
17
18
  /**
package/ast.js CHANGED
@@ -14,5 +14,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.BinaryExprOperatorPriority = void 0;
17
18
  __exportStar(require("./generated/ast"), exports);
19
+ exports.BinaryExprOperatorPriority = {
20
+ //LogicalExpr
21
+ '||': 1,
22
+ '&&': 1,
23
+ //EqualityExpr
24
+ '==': 2,
25
+ '!=': 2,
26
+ //ComparisonExpr
27
+ '>': 3,
28
+ '<': 3,
29
+ '>=': 3,
30
+ '<=': 3,
31
+ //CollectionPredicateExpr
32
+ '^': 4,
33
+ '?': 4,
34
+ '!': 4,
35
+ };
18
36
  //# sourceMappingURL=ast.js.map
package/ast.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ast.js","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,kDAAgC"}
1
+ {"version":3,"file":"ast.js","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,kDAAgC;AAgBnB,QAAA,0BAA0B,GAA2C;IAC9E,aAAa;IACb,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,cAAc;IACd,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,gBAAgB;IAChB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;IACP,yBAAyB;IACzB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;CACT,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenstackhq/language",
3
- "version": "0.6.0-pre.17",
3
+ "version": "0.6.0-pre.19",
4
4
  "displayName": "ZenStack modeling language compiler",
5
5
  "description": "ZenStack modeling language compiler",
6
6
  "homepage": "https://zenstack.dev",