@jesscss/jess-parser 2.0.0-alpha.9
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/LICENSE +21 -0
- package/README.md +121 -0
- package/lib/ast/grammar.d.ts +1 -0
- package/lib/cst.cjs +14 -0
- package/lib/cst.d.ts +5 -0
- package/lib/cst.js +12 -0
- package/lib/grammar.cjs +31734 -0
- package/lib/grammar.d.ts +1 -0
- package/lib/grammar.js +31733 -0
- package/lib/index.cjs +35327 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +35322 -0
- package/package.json +63 -0
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { jessGrammar } from './grammar.js';
|
|
2
|
+
export { parseJessCst, parseJessDoc } from './cst.js';
|
|
3
|
+
export type { JessCstChild, JessCstError, JessCstLeaf, JessCstNode, JessCstParseResult, JessCstType } from './cst.js';
|
|
4
|
+
import type { Stylesheet } from '@jesscss/core/ast';
|
|
5
|
+
/** Structured failure from the public direct Jess parser. */
|
|
6
|
+
export declare class JessParseError extends SyntaxError {
|
|
7
|
+
readonly code: 'parse/syntax-error';
|
|
8
|
+
readonly offset: number;
|
|
9
|
+
readonly expected: readonly string[];
|
|
10
|
+
constructor(offset: number, expected: readonly string[]);
|
|
11
|
+
}
|
|
12
|
+
/** Parse Jess directly into the canonical AST v2 document. */
|
|
13
|
+
export declare function parse(input: string): Stylesheet;
|