@ldclabs/kip-lang 2.2.0 → 2.3.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/CHANGELOG.md +12 -0
- package/dist/ast.d.ts +1 -1
- package/dist/ast.d.ts.map +1 -1
- package/dist/exec-ast.d.ts +1 -1
- package/dist/exec-ast.d.ts.map +1 -1
- package/dist/formatter.js +1 -3
- package/dist/formatter.js.map +1 -1
- package/dist/lower.js +1 -3
- package/dist/lower.js.map +1 -1
- package/dist/parser.js +0 -8
- package/dist/parser.js.map +1 -1
- package/dist/token.d.ts +0 -2
- package/dist/token.d.ts.map +1 -1
- package/dist/token.js +0 -4
- package/dist/token.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/ast.ts +0 -2
- package/src/exec-ast.ts +0 -2
- package/src/formatter.ts +1 -3
- package/src/lower.ts +1 -3
- package/src/parser.ts +0 -8
- package/src/token.ts +0 -4
- package/src/version.ts +1 -1
package/src/lower.ts
CHANGED
|
@@ -1770,9 +1770,7 @@ function lowerMeta(stmt: Statement): MetaCommand {
|
|
|
1770
1770
|
const VERIFY_TARGETS: Record<VerifyStatement['target'], VerifyTarget> = {
|
|
1771
1771
|
CAPSULE: 'Capsule',
|
|
1772
1772
|
SCHEMA_PACKAGE: 'SchemaPackage',
|
|
1773
|
-
RECEIPT: 'Receipt'
|
|
1774
|
-
BLOB: 'Blob',
|
|
1775
|
-
CHECKPOINT: 'Checkpoint'
|
|
1773
|
+
RECEIPT: 'Receipt'
|
|
1776
1774
|
}
|
|
1777
1775
|
|
|
1778
1776
|
const VALIDATE_TARGETS: Record<ValidateStatement['target'], ValidateTarget> = {
|
package/src/parser.ts
CHANGED
|
@@ -2235,14 +2235,6 @@ class Parser {
|
|
|
2235
2235
|
this.expectSecondWord(TokenType.Receipt, verify)
|
|
2236
2236
|
target = 'RECEIPT'
|
|
2237
2237
|
break
|
|
2238
|
-
case TokenType.Blob:
|
|
2239
|
-
this.expectSecondWord(TokenType.Blob, verify)
|
|
2240
|
-
target = 'BLOB'
|
|
2241
|
-
break
|
|
2242
|
-
case TokenType.Checkpoint:
|
|
2243
|
-
this.expectSecondWord(TokenType.Checkpoint, verify)
|
|
2244
|
-
target = 'CHECKPOINT'
|
|
2245
|
-
break
|
|
2246
2238
|
default:
|
|
2247
2239
|
this.error(`Unknown VERIFY target '${tok.value}'`, tok)
|
|
2248
2240
|
throw new ParseAbort()
|
package/src/token.ts
CHANGED
|
@@ -120,8 +120,6 @@ export enum TokenType {
|
|
|
120
120
|
Cognition = 'COGNITION',
|
|
121
121
|
Threshold = 'THRESHOLD',
|
|
122
122
|
Receipt = 'RECEIPT',
|
|
123
|
-
Blob = 'BLOB',
|
|
124
|
-
Checkpoint = 'CHECKPOINT',
|
|
125
123
|
Kql = 'KQL',
|
|
126
124
|
Kml = 'KML',
|
|
127
125
|
Import = 'IMPORT',
|
|
@@ -293,8 +291,6 @@ export const KEYWORDS: ReadonlyMap<string, TokenType> = new Map([
|
|
|
293
291
|
['COGNITION', TokenType.Cognition],
|
|
294
292
|
['THRESHOLD', TokenType.Threshold],
|
|
295
293
|
['RECEIPT', TokenType.Receipt],
|
|
296
|
-
['BLOB', TokenType.Blob],
|
|
297
|
-
['CHECKPOINT', TokenType.Checkpoint],
|
|
298
294
|
['KQL', TokenType.Kql],
|
|
299
295
|
['KML', TokenType.Kml],
|
|
300
296
|
['IMPORT', TokenType.Import],
|
package/src/version.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* has to load in runtimes with no filesystem; `test/lower.test.mjs` asserts the
|
|
8
8
|
* two stay in step.
|
|
9
9
|
*/
|
|
10
|
-
export const PARSER_VERSION = '2.
|
|
10
|
+
export const PARSER_VERSION = '2.3.0'
|
|
11
11
|
|
|
12
12
|
/** The KIP specification revision this grammar targets. */
|
|
13
13
|
export const KIP_SPEC_REVISION = '2.0-draft'
|