@jesscss/less-parser 2.0.0-alpha.11 → 2.0.0-alpha.13
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 +55 -11
- package/lib/chunks/parse-with.cjs +172 -0
- package/lib/chunks/parse-with.js +161 -0
- package/lib/chunks/trivia-labels.cjs +18 -0
- package/lib/chunks/trivia-labels.js +13 -0
- package/lib/cst/positions.cjs +24 -0
- package/lib/cst/positions.d.ts +8 -0
- package/lib/cst/positions.d.ts.map +1 -0
- package/lib/cst/positions.js +21 -0
- package/lib/cst.cjs +11 -4
- package/lib/cst.d.ts +8 -2
- package/lib/cst.d.ts.map +1 -1
- package/lib/cst.js +10 -4
- package/lib/grammar/ast/positions.cjs +28802 -0
- package/lib/grammar/ast/positions.d.ts +3 -0
- package/lib/grammar/ast/positions.d.ts.map +1 -0
- package/lib/grammar/ast/positions.js +28801 -0
- package/lib/grammar/ast.cjs +29126 -0
- package/lib/grammar/ast.d.ts +11 -0
- package/lib/grammar/ast.d.ts.map +1 -0
- package/lib/grammar/ast.js +29125 -0
- package/lib/grammar/cst/positions.cjs +28802 -0
- package/lib/grammar/cst/positions.d.ts +3 -0
- package/lib/grammar/cst/positions.d.ts.map +1 -0
- package/lib/grammar/cst/positions.js +28801 -0
- package/lib/grammar/cst.cjs +29127 -0
- package/lib/grammar/cst.d.ts +3 -0
- package/lib/grammar/cst.d.ts.map +1 -0
- package/lib/grammar/cst.js +29126 -0
- package/lib/grammar-helpers.d.ts +478 -0
- package/lib/grammar-helpers.d.ts.map +1 -0
- package/lib/grammar.d.ts +4 -1
- package/lib/grammar.d.ts.map +1 -1
- package/lib/index.cjs +25 -63
- package/lib/index.d.ts +17 -9
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -57
- package/lib/parse-error.cjs +160 -0
- package/lib/parse-error.d.ts +26 -0
- package/lib/parse-error.d.ts.map +1 -1
- package/lib/parse-error.js +152 -0
- package/lib/parse-state.d.ts +39 -0
- package/lib/parse-state.d.ts.map +1 -0
- package/lib/parse-with.d.ts +25 -0
- package/lib/parse-with.d.ts.map +1 -0
- package/lib/positions.cjs +24 -0
- package/lib/positions.d.ts +20 -0
- package/lib/positions.d.ts.map +1 -0
- package/lib/positions.js +14 -0
- package/lib/trivia-labels.d.ts +11 -0
- package/lib/trivia-labels.d.ts.map +1 -0
- package/package.json +42 -12
- package/lib/grammar.cjs +0 -5
- package/lib/grammar.js +0 -2
- package/lib/grammar2.cjs +0 -141792
- package/lib/grammar2.js +0 -141733
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build entry for the AST Less grammar.
|
|
3
|
+
*
|
|
4
|
+
* Each variant is built on its own so importing one never loads the others:
|
|
5
|
+
* the compiled artifacts are ~4 MB each and a single shared module would make
|
|
6
|
+
* every consumer ingest all four. `parseman`'s macro requires the `rules()`
|
|
7
|
+
* call to sit in the module that declares the factory, so the instances stay in
|
|
8
|
+
* `../grammar.ts` and each variant entry re-exports exactly one of them.
|
|
9
|
+
*/
|
|
10
|
+
export { lessGrammar } from '../grammar.js';
|
|
11
|
+
//# sourceMappingURL=ast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../src/grammar/ast.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|