@velarscript/compiler 0.10.4 → 0.11.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/dist/analyzer.d.ts.map +1 -1
- package/dist/analyzer.js +2 -0
- package/dist/analyzer.js.map +1 -1
- package/dist/ast.d.ts +2 -0
- package/dist/ast.d.ts.map +1 -1
- package/dist/ast.js.map +1 -1
- package/dist/core-vocabulary.d.ts +4 -0
- package/dist/core-vocabulary.d.ts.map +1 -1
- package/dist/core-vocabulary.js +1 -0
- package/dist/core-vocabulary.js.map +1 -1
- package/dist/emitter.d.ts.map +1 -1
- package/dist/emitter.js +5 -0
- package/dist/emitter.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +22 -2
- package/dist/parser.js.map +1 -1
- package/dist/token.d.ts +2 -2
- package/dist/token.js +2 -2
- package/package.json +1 -1
package/dist/token.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export interface Token {
|
|
|
10
10
|
/**
|
|
11
11
|
* Hard reserved words: spellings the lexer always turns into a keyword token,
|
|
12
12
|
* so they can never name a binding. D30 item 16 softened the statement-head
|
|
13
|
-
* words that JavaScript does not reserve — `type`, `match`, `
|
|
14
|
-
* `as` — into contextual keywords, which the lexer emits as ordinary
|
|
13
|
+
* words that JavaScript does not reserve — including `type`, `match`, `from`,
|
|
14
|
+
* `as`, and `json` — into contextual keywords, which the lexer emits as ordinary
|
|
15
15
|
* identifiers and the parser recognizes by declaration shape. `enum` stays
|
|
16
16
|
* here because JavaScript reserves it, and generated JavaScript must be legal.
|
|
17
17
|
*/
|
package/dist/token.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hard reserved words: spellings the lexer always turns into a keyword token,
|
|
3
3
|
* so they can never name a binding. D30 item 16 softened the statement-head
|
|
4
|
-
* words that JavaScript does not reserve — `type`, `match`, `
|
|
5
|
-
* `as` — into contextual keywords, which the lexer emits as ordinary
|
|
4
|
+
* words that JavaScript does not reserve — including `type`, `match`, `from`,
|
|
5
|
+
* `as`, and `json` — into contextual keywords, which the lexer emits as ordinary
|
|
6
6
|
* identifiers and the parser recognizes by declaration shape. `enum` stays
|
|
7
7
|
* here because JavaScript reserves it, and generated JavaScript must be legal.
|
|
8
8
|
*/
|
package/package.json
CHANGED