@ldclabs/kip-lang 0.3.0 → 0.4.0
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 +69 -5
- package/dist/ast.d.ts +10 -1
- package/dist/ast.d.ts.map +1 -1
- package/dist/budget.d.ts +37 -0
- package/dist/budget.d.ts.map +1 -0
- package/dist/budget.js +105 -0
- package/dist/budget.js.map +1 -0
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/diagnostics.js +7 -1
- package/dist/diagnostics.js.map +1 -1
- package/dist/errors.d.ts +29 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +27 -0
- package/dist/errors.js.map +1 -0
- package/dist/exec-ast.d.ts +314 -0
- package/dist/exec-ast.d.ts.map +1 -0
- package/dist/exec-ast.js +23 -0
- package/dist/exec-ast.js.map +1 -0
- package/dist/formatter.d.ts +5 -7
- package/dist/formatter.d.ts.map +1 -1
- package/dist/formatter.js +71 -143
- package/dist/formatter.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/lexer.d.ts.map +1 -1
- package/dist/lexer.js +42 -11
- package/dist/lexer.js.map +1 -1
- package/dist/lower.d.ts +18 -0
- package/dist/lower.d.ts.map +1 -0
- package/dist/lower.js +877 -0
- package/dist/lower.js.map +1 -0
- package/dist/parser.js +311 -82
- package/dist/parser.js.map +1 -1
- package/dist/semantics.d.ts +13 -0
- package/dist/semantics.d.ts.map +1 -0
- package/dist/semantics.js +228 -0
- package/dist/semantics.js.map +1 -0
- package/dist/token.d.ts +4 -4
- package/dist/token.d.ts.map +1 -1
- package/dist/token.js +5 -10
- package/dist/token.js.map +1 -1
- package/dist/version.d.ts +13 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +13 -0
- package/dist/version.js.map +1 -0
- package/package.json +9 -4
package/dist/version.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Version of this grammar implementation.
|
|
3
|
+
*
|
|
4
|
+
* An engine stamps this into its `DESCRIBE PRIMER` output, so a grammar bump
|
|
5
|
+
* is visible to the agent instead of silently changing what a stored command
|
|
6
|
+
* means. It is a literal rather than a `package.json` read because this module
|
|
7
|
+
* has to load in runtimes with no filesystem; `test/lower.test.mjs` asserts the
|
|
8
|
+
* two stay in step.
|
|
9
|
+
*/
|
|
10
|
+
export const PARSER_VERSION = '0.4.0';
|
|
11
|
+
/** The KIP specification revision this grammar targets. */
|
|
12
|
+
export const KIP_SPEC_REVISION = 'v1.0-RC10';
|
|
13
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAA;AAErC,2DAA2D;AAC3D,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldclabs/kip-lang",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "KIP (Knowledge Interaction Protocol) language toolkit: lexer, parser, formatter, and
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "KIP (Knowledge Interaction Protocol) language toolkit: lexer, parser, formatter, diagnostics, and lowering to the executable AST",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsc -p tsconfig.json",
|
|
21
21
|
"dev": "tsc -p tsconfig.json --watch",
|
|
22
|
-
"
|
|
22
|
+
"pretest": "tsc -p tsconfig.json",
|
|
23
|
+
"test": "node --test",
|
|
24
|
+
"prepublishOnly": "tsc -p tsconfig.json"
|
|
23
25
|
},
|
|
24
26
|
"keywords": [
|
|
25
27
|
"kip",
|
|
@@ -33,5 +35,8 @@
|
|
|
33
35
|
"type": "git",
|
|
34
36
|
"url": "https://github.com/ldclabs/KIP",
|
|
35
37
|
"directory": "packages/kip-lang"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"typescript": "^5.9.3"
|
|
36
41
|
}
|
|
37
|
-
}
|
|
42
|
+
}
|