@zenstackhq/language 0.6.0-pre.1 → 0.6.0-pre.12
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/README.md +1 -0
- package/ast.d.ts +28 -0
- package/ast.js.map +1 -1
- package/generated/ast.d.ts +1 -1
- package/generated/grammar.js +4 -0
- package/generated/grammar.js.map +1 -1
- package/package.json +10 -6
- package/grammar.d.ts +0 -6
- package/grammar.js +0 -2723
- package/grammar.js.map +0 -1
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ZenStack ZModel language compiler
|
package/ast.d.ts
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
1
|
+
import { AbstractDeclaration, ExpressionType } from './generated/ast';
|
|
1
2
|
export * from './generated/ast';
|
|
2
3
|
export { AstNode, Reference } from 'langium';
|
|
4
|
+
/**
|
|
5
|
+
* Shape of type resolution result: an expression type or reference to a declaration
|
|
6
|
+
*/
|
|
7
|
+
export type ResolvedShape = ExpressionType | AbstractDeclaration;
|
|
8
|
+
/**
|
|
9
|
+
* Resolved type information (attached to expressions by linker)
|
|
10
|
+
*/
|
|
11
|
+
export type ResolvedType = {
|
|
12
|
+
decl?: ResolvedShape;
|
|
13
|
+
array?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare module './generated/ast' {
|
|
16
|
+
interface AttributeArg {
|
|
17
|
+
/**
|
|
18
|
+
* Resolved attribute param declaration
|
|
19
|
+
*/
|
|
20
|
+
$resolvedParam?: AttributeParam;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
declare module 'langium' {
|
|
24
|
+
interface AstNode {
|
|
25
|
+
/**
|
|
26
|
+
* Resolved type information attached to expressions
|
|
27
|
+
*/
|
|
28
|
+
$resolvedType?: ResolvedType;
|
|
29
|
+
}
|
|
30
|
+
}
|
package/ast.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ast.js","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,kDAAgC"}
|
package/generated/ast.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export interface AttributeParamType extends AstNode {
|
|
|
69
69
|
array: boolean;
|
|
70
70
|
optional: boolean;
|
|
71
71
|
reference?: Reference<TypeDeclaration>;
|
|
72
|
-
type?: 'ContextType' | 'FieldReference' | ExpressionType;
|
|
72
|
+
type?: 'ContextType' | 'FieldReference' | 'TransitiveFieldReference' | ExpressionType;
|
|
73
73
|
}
|
|
74
74
|
export declare const AttributeParamType = "AttributeParamType";
|
|
75
75
|
export declare function isAttributeParamType(item: unknown): item is AttributeParamType;
|
package/generated/grammar.js
CHANGED
|
@@ -2135,6 +2135,10 @@ const ZModelGrammar = () => loadedZModelGrammar !== null && loadedZModelGrammar
|
|
|
2135
2135
|
"$type": "Keyword",
|
|
2136
2136
|
"value": "FieldReference"
|
|
2137
2137
|
},
|
|
2138
|
+
{
|
|
2139
|
+
"$type": "Keyword",
|
|
2140
|
+
"value": "TransitiveFieldReference"
|
|
2141
|
+
},
|
|
2138
2142
|
{
|
|
2139
2143
|
"$type": "Keyword",
|
|
2140
2144
|
"value": "ContextType"
|
package/generated/grammar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grammar.js","sourceRoot":"","sources":["../../src/generated/grammar.ts"],"names":[],"mappings":";AAAA;;;gFAGgF;;;AAEhF,qCAAuD;AAEvD,IAAI,mBAAwC,CAAC;AACtC,MAAM,aAAa,GAAG,GAAY,EAAE,CAAC,mBAAmB,aAAnB,mBAAmB,cAAnB,mBAAmB,GAAI,CAAC,mBAAmB,GAAG,IAAA,6BAAmB,EAAC
|
|
1
|
+
{"version":3,"file":"grammar.js","sourceRoot":"","sources":["../../src/generated/grammar.ts"],"names":[],"mappings":";AAAA;;;gFAG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compiler",
|
|
5
|
+
"description": "ZenStack modeling language compiler",
|
|
6
|
+
"homepage": "https://zenstack.dev",
|
|
5
7
|
"publishConfig": {
|
|
6
8
|
"directory": "dist",
|
|
7
9
|
"linkDirectory": true
|
|
8
10
|
},
|
|
9
|
-
"
|
|
10
|
-
"author": "",
|
|
11
|
+
"author": "ZenStack Team",
|
|
11
12
|
"license": "MIT",
|
|
12
13
|
"devDependencies": {
|
|
13
14
|
"concurrently": "^7.4.0",
|
|
14
15
|
"langium-cli": "^0.5.0",
|
|
16
|
+
"rimraf": "^3.0.2",
|
|
15
17
|
"typescript": "^4.9.4"
|
|
16
18
|
},
|
|
17
19
|
"dependencies": {
|
|
18
20
|
"langium": "^0.5.0"
|
|
19
21
|
},
|
|
20
22
|
"scripts": {
|
|
23
|
+
"clean": "rimraf dist",
|
|
21
24
|
"generate": "langium generate",
|
|
22
25
|
"watch": "concurrently \"langium generate --watch\" \"tsc --watch\"",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
26
|
+
"lint": "eslint src --ext ts",
|
|
27
|
+
"build": "pnpm lint && pnpm clean && pnpm generate && tsc && cp ./README.md ./package.json dist/",
|
|
28
|
+
"publish-dev": "pnpm build && pnpm publish --tag dev"
|
|
25
29
|
}
|
|
26
30
|
}
|
package/grammar.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
* This file was generated by langium-cli 0.5.0.
|
|
3
|
-
* DO NOT EDIT MANUALLY!
|
|
4
|
-
******************************************************************************/
|
|
5
|
-
import { Grammar } from 'langium';
|
|
6
|
-
export declare const ZModelGrammar: () => Grammar;
|