@jesscss/jess-parser 2.0.0-alpha.10
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 +122 -0
- package/lib/cst.cjs +14 -0
- package/lib/cst.d.ts +5 -0
- package/lib/cst.js +12 -0
- package/lib/grammar.cjs +99862 -0
- package/lib/grammar.d.ts +386 -0
- package/lib/grammar.js +99858 -0
- package/lib/index.cjs +41 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +36 -0
- package/package.json +66 -0
package/lib/grammar.d.ts
ADDED
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import type { Combinator } from 'parseman';
|
|
2
|
+
import type { AnonymousMixin, Apply, AtRuleBlock, AtRuleStatement, Color, ComplexSelector, CompoundSelector, Declaration, Collection, Dimension, ExtendInstruction, For, ForBinding, FunctionCall, GeneralEnclosed, If, IfBranch, Interpolation, Keyword, MixinCall, MixinDef, ModuleImport, ModuleImportSpecifier, OpaqueAtRuleBlock, Param, Quoted, Range, Reference, SelectorCapture, Stylesheet, Rule, SelectorList, SimpleSelector, SimpleToken, Statement, StyleImport, Url, ValueNode, ValueSlot, VariableDeclaration, VariableReference, GuardNode } from '@jesscss/core/ast';
|
|
3
|
+
type ExpressionFact = {
|
|
4
|
+
readonly value: ValueNode;
|
|
5
|
+
readonly src: string;
|
|
6
|
+
};
|
|
7
|
+
type JessReferenceTail = {
|
|
8
|
+
readonly step: Reference['steps'][number];
|
|
9
|
+
readonly src: string;
|
|
10
|
+
};
|
|
11
|
+
type JessComplexTail = {
|
|
12
|
+
readonly comb: ' ' | '>' | '+' | '~' | '||';
|
|
13
|
+
readonly compound: CompoundSelector;
|
|
14
|
+
};
|
|
15
|
+
type JessAtRuleHeader = {
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly prelude: ValueNode | null;
|
|
18
|
+
};
|
|
19
|
+
type JessMixinCallArgument = MixinCall['args'][number];
|
|
20
|
+
type JessRules = {
|
|
21
|
+
Stylesheet: Combinator<Stylesheet>;
|
|
22
|
+
JessAstDocument: Combinator<Stylesheet>;
|
|
23
|
+
DirectJessVarDeclaration: Combinator<VariableDeclaration>;
|
|
24
|
+
DirectJessValueBlockDeclaration: Combinator<VariableDeclaration>;
|
|
25
|
+
DirectJessBlockLambda: Combinator<AnonymousMixin>;
|
|
26
|
+
DirectJessExprLambda: Combinator<AnonymousMixin>;
|
|
27
|
+
DirectJessValueBlock: Combinator<ValueNode>;
|
|
28
|
+
DirectJessVarReference: Combinator<VariableReference>;
|
|
29
|
+
DirectJessReferenceTail: Combinator<JessReferenceTail>;
|
|
30
|
+
DirectJessReferenceCallTail: Combinator<JessReferenceTail>;
|
|
31
|
+
DirectJessDollarValue: Combinator<ValueNode>;
|
|
32
|
+
DirectJessDollarBrace: Combinator<Interpolation>;
|
|
33
|
+
DirectJessExpressionDollarBrace: Combinator<ExpressionFact>;
|
|
34
|
+
DirectJessDollarInterp: Combinator<Interpolation>;
|
|
35
|
+
DirectJessInterpolatedValue: Combinator<Interpolation>;
|
|
36
|
+
DirectJessExpressionDollarInterp: Combinator<ExpressionFact>;
|
|
37
|
+
DirectJessExpression: Combinator<Interpolation>;
|
|
38
|
+
DirectJessExpressionInterpolation: Combinator<ExpressionFact>;
|
|
39
|
+
DirectJessExpressionQuoted: Combinator<ExpressionFact>;
|
|
40
|
+
DirectJessExpressionAtom: Combinator<ExpressionFact>;
|
|
41
|
+
DirectJessExpressionProduct: Combinator<ExpressionFact>;
|
|
42
|
+
DirectJessExpressionSum: Combinator<ExpressionFact>;
|
|
43
|
+
DirectJessExpressionCompare: Combinator<ExpressionFact>;
|
|
44
|
+
DirectJessUnwrappedProductRest: Combinator<ExpressionFact>;
|
|
45
|
+
DirectJessGuardValue: Combinator<GuardNode>;
|
|
46
|
+
DirectJessGuardCompare: Combinator<GuardNode>;
|
|
47
|
+
DirectJessGuardCall: Combinator<GuardNode>;
|
|
48
|
+
DirectJessGuardPrimary: Combinator<GuardNode>;
|
|
49
|
+
DirectJessGuardAnd: Combinator<GuardNode>;
|
|
50
|
+
DirectJessGuardOr: Combinator<GuardNode>;
|
|
51
|
+
DirectJessMixinGuard: Combinator<GuardNode>;
|
|
52
|
+
DirectJessKeyword: Combinator<Keyword>;
|
|
53
|
+
DirectJessQuoted: Combinator<Quoted | Interpolation>;
|
|
54
|
+
DirectJessStaticQuoted: Combinator<Quoted>;
|
|
55
|
+
DirectJessDimension: Combinator<Dimension>;
|
|
56
|
+
DirectJessColor: Combinator<Color>;
|
|
57
|
+
DirectJessUrl: Combinator<Url>;
|
|
58
|
+
DirectJessInterpolatedUrl: Combinator<Url>;
|
|
59
|
+
DirectJessUrlInterpolatedValue: Combinator<Interpolation>;
|
|
60
|
+
DirectJessCallComponent: Combinator<ValueSlot>;
|
|
61
|
+
DirectJessCallArgument: Combinator<ValueSlot>;
|
|
62
|
+
DirectJessCall: Combinator<FunctionCall>;
|
|
63
|
+
DirectJessCollectionEntry: Combinator<Declaration>;
|
|
64
|
+
DirectJessCollection: Combinator<Collection>;
|
|
65
|
+
DirectJessValueAtom: Combinator<ValueNode>;
|
|
66
|
+
DirectJessValueSpaceGroup: Combinator<ValueSlot>;
|
|
67
|
+
DirectJessValueTerm: Combinator<ValueSlot>;
|
|
68
|
+
DirectJessValue: Combinator<ValueSlot>;
|
|
69
|
+
DirectJessImportant: Combinator<true>;
|
|
70
|
+
DirectJessCustomPropertyValue: Combinator<Keyword>;
|
|
71
|
+
DirectJessCustomPropertyName: Combinator<string | Interpolation>;
|
|
72
|
+
DirectJessCustomPart: Combinator<unknown>;
|
|
73
|
+
DirectJessCustomInnerPart: Combinator<unknown>;
|
|
74
|
+
DirectJessCustomParen: Combinator<readonly unknown[]>;
|
|
75
|
+
DirectJessCustomSquare: Combinator<readonly unknown[]>;
|
|
76
|
+
DirectJessCustomCurly: Combinator<readonly unknown[]>;
|
|
77
|
+
DirectJessCustomValue: Combinator<ValueNode>;
|
|
78
|
+
DirectJessCustomDeclaration: Combinator<Declaration>;
|
|
79
|
+
DirectJessDeclaration: Combinator<Declaration>;
|
|
80
|
+
DirectJessMixinParam: Combinator<Param>;
|
|
81
|
+
DirectJessMixinParams: Combinator<Param[]>;
|
|
82
|
+
DirectJessMixinCallArg: Combinator<JessMixinCallArgument>;
|
|
83
|
+
DirectJessMixinCall: Combinator<MixinCall>;
|
|
84
|
+
DirectJessReferenceCall: Combinator<Reference>;
|
|
85
|
+
DirectJessApply: Combinator<Apply>;
|
|
86
|
+
DirectJessExtend: Combinator<ExtendInstruction[]>;
|
|
87
|
+
DirectJessMixinDef: Combinator<MixinDef>;
|
|
88
|
+
DirectJessSimple: Combinator<SimpleSelector>;
|
|
89
|
+
DirectJessParent: Combinator<SimpleSelector>;
|
|
90
|
+
DirectJessInterpolatedSimple: Combinator<SimpleSelector>;
|
|
91
|
+
DirectJessInterpolatedParentSuffix: Combinator<SimpleSelector>;
|
|
92
|
+
DirectJessAttribute: Combinator<SimpleSelector>;
|
|
93
|
+
DirectJessPseudo: Combinator<SimpleToken>;
|
|
94
|
+
DirectJessStaticPseudoArgument: Combinator<SelectorList | string>;
|
|
95
|
+
DirectJessGenericPseudoArgument: Combinator<SelectorList | string>;
|
|
96
|
+
DirectJessCompound: Combinator<CompoundSelector>;
|
|
97
|
+
DirectJessStaticCompound: Combinator<CompoundSelector>;
|
|
98
|
+
DirectJessStaticComplexTail: Combinator<JessComplexTail>;
|
|
99
|
+
DirectJessStaticComplex: Combinator<ComplexSelector>;
|
|
100
|
+
DirectJessStaticSelectorTail: Combinator<ComplexSelector>;
|
|
101
|
+
DirectJessStaticSelector: Combinator<SelectorList>;
|
|
102
|
+
DirectJessSelectorCapture: Combinator<SelectorCapture>;
|
|
103
|
+
DirectJessComplexTail: Combinator<JessComplexTail>;
|
|
104
|
+
DirectJessComplex: Combinator<ComplexSelector>;
|
|
105
|
+
DirectJessSelectorTail: Combinator<ComplexSelector>;
|
|
106
|
+
DirectJessSelector: Combinator<SelectorList>;
|
|
107
|
+
DirectJessRule: Combinator<Rule>;
|
|
108
|
+
ForName: Combinator<string>;
|
|
109
|
+
ForBinding: Combinator<ForBinding>;
|
|
110
|
+
ForRangeBound: Combinator<ValueNode>;
|
|
111
|
+
ForRange: Combinator<Range>;
|
|
112
|
+
ForSource: Combinator<ValueNode>;
|
|
113
|
+
For: Combinator<For>;
|
|
114
|
+
DirectJessIfCondition: Combinator<GuardNode>;
|
|
115
|
+
DirectJessIfGuardValue: Combinator<GuardNode>;
|
|
116
|
+
DirectJessIfGuardCompare: Combinator<GuardNode>;
|
|
117
|
+
DirectJessIfGuardPrimary: Combinator<GuardNode>;
|
|
118
|
+
DirectJessIfGuardAnd: Combinator<GuardNode>;
|
|
119
|
+
DirectJessIfGuardOr: Combinator<GuardNode>;
|
|
120
|
+
DirectJessIfGuard: Combinator<GuardNode>;
|
|
121
|
+
DirectJessIfBody: Combinator<Statement[]>;
|
|
122
|
+
DirectJessElseIfBranch: Combinator<IfBranch>;
|
|
123
|
+
DirectJessElseBranch: Combinator<IfBranch>;
|
|
124
|
+
DirectJessIf: Combinator<If>;
|
|
125
|
+
DirectJessStyleImport: Combinator<StyleImport>;
|
|
126
|
+
DirectJessModuleSpecifier: Combinator<ModuleImportSpecifier>;
|
|
127
|
+
DirectJessModuleImport: Combinator<ModuleImport>;
|
|
128
|
+
DirectJessStaticValueAtom: Combinator<ValueNode>;
|
|
129
|
+
DirectJessStaticValue: Combinator<ValueSlot>;
|
|
130
|
+
DirectJessStaticCallArgument: Combinator<ValueSlot>;
|
|
131
|
+
DirectJessStaticCall: Combinator<FunctionCall>;
|
|
132
|
+
DirectJessStaticAtNonOnlyKeyword: Combinator<Keyword>;
|
|
133
|
+
DirectJessStaticAtNonOnlyAtom: Combinator<ValueNode>;
|
|
134
|
+
DirectJessStaticAtQuery: Combinator<ValueNode>;
|
|
135
|
+
DirectJessStaticAtDashedIdent: Combinator<Keyword>;
|
|
136
|
+
DirectJessStaticAtPreludeTerm: Combinator<ValueNode>;
|
|
137
|
+
DirectJessStaticAtPrelude: Combinator<ValueNode | null>;
|
|
138
|
+
DirectJessMediaPrelude: Combinator<ValueNode | null>;
|
|
139
|
+
DirectJessStaticAtRuleHeader: Combinator<JessAtRuleHeader>;
|
|
140
|
+
DirectJessAtRuleHeader: Combinator<JessAtRuleHeader>;
|
|
141
|
+
DirectJessSupportsAtom: Combinator<ValueNode>;
|
|
142
|
+
DirectJessGeneralTemplate: Combinator<Interpolation>;
|
|
143
|
+
DirectJessGeneralTemplateParen: Combinator<Interpolation>;
|
|
144
|
+
DirectJessGeneralTemplateSquare: Combinator<Interpolation>;
|
|
145
|
+
DirectJessGeneralTemplateBrace: Combinator<Interpolation>;
|
|
146
|
+
DirectJessGeneralTemplateDoubleQuoted: Combinator<Interpolation>;
|
|
147
|
+
DirectJessGeneralTemplateSingleQuoted: Combinator<Interpolation>;
|
|
148
|
+
DirectJessGeneralQuotedTemplate: Combinator<Interpolation>;
|
|
149
|
+
DirectJessGeneralQuotedTemplateParen: Combinator<Interpolation>;
|
|
150
|
+
DirectJessGeneralQuotedTemplateSquare: Combinator<Interpolation>;
|
|
151
|
+
DirectJessGeneralQuotedTemplateBrace: Combinator<Interpolation>;
|
|
152
|
+
DirectJessGeneralQuotedTemplateDoubleQuoted: Combinator<Interpolation>;
|
|
153
|
+
DirectJessGeneralQuotedTemplateSingleQuoted: Combinator<Interpolation>;
|
|
154
|
+
DirectJessGeneralEnclosed: Combinator<GeneralEnclosed>;
|
|
155
|
+
DirectJessSupportsNot: Combinator<Keyword>;
|
|
156
|
+
DirectJessSupportsLogical: Combinator<Keyword>;
|
|
157
|
+
DirectJessSupportsFeature: Combinator<ValueNode>;
|
|
158
|
+
DirectJessSupportsInParens: Combinator<ValueNode>;
|
|
159
|
+
DirectJessSupportsCondition: Combinator<ValueNode>;
|
|
160
|
+
CssImportTarget: Combinator<Quoted | Url>;
|
|
161
|
+
DirectJessImportTailFunction: Combinator<FunctionCall>;
|
|
162
|
+
DirectJessCssImportPrelude: Combinator<ValueNode>;
|
|
163
|
+
DirectJessCharset: Combinator<AtRuleStatement>;
|
|
164
|
+
DirectJessCssImport: Combinator<AtRuleStatement>;
|
|
165
|
+
DirectJessSupportsAtRuleBlock: Combinator<AtRuleBlock>;
|
|
166
|
+
DirectJessPropertyName: Combinator<Keyword>;
|
|
167
|
+
DirectJessStaticPropertyDescriptor: Combinator<Declaration>;
|
|
168
|
+
DirectJessPropertyAtRule: Combinator<AtRuleBlock>;
|
|
169
|
+
DirectJessKeyframeSelector: Combinator<SimpleSelector>;
|
|
170
|
+
DirectJessKeyframeBlock: Combinator<Rule>;
|
|
171
|
+
DirectJessKeyframes: Combinator<AtRuleBlock>;
|
|
172
|
+
DirectJessOpaquePrelude: Combinator<string | null>;
|
|
173
|
+
DirectJessOpaqueBody: Combinator<string>;
|
|
174
|
+
DirectJessOpaqueAtRuleBlock: Combinator<OpaqueAtRuleBlock>;
|
|
175
|
+
DirectJessScopeBlock: Combinator<AtRuleBlock>;
|
|
176
|
+
DirectJessAtRuleBlock: Combinator<AtRuleBlock>;
|
|
177
|
+
DirectJessAtRuleStatement: Combinator<AtRuleStatement>;
|
|
178
|
+
rw: Combinator<unknown>;
|
|
179
|
+
whitespace: Combinator<unknown>;
|
|
180
|
+
};
|
|
181
|
+
type SharedCssSyntax = {
|
|
182
|
+
CssSyntaxAttributeModifier: Combinator<string>;
|
|
183
|
+
CssSyntaxAttributeOperator: Combinator<string>;
|
|
184
|
+
CssSyntaxDoubleQuotedText: Combinator<string>;
|
|
185
|
+
CssSyntaxHexColor: Combinator<string>;
|
|
186
|
+
CssSyntaxImportant: Combinator<string>;
|
|
187
|
+
CssSyntaxKeyframesAtKeyword: Combinator<string>;
|
|
188
|
+
CssSyntaxKeyword: Combinator<string>;
|
|
189
|
+
CssSyntaxNth: Combinator<string>;
|
|
190
|
+
CssSyntaxNthChildName: Combinator<string>;
|
|
191
|
+
CssSyntaxNthTypeName: Combinator<string>;
|
|
192
|
+
CssSyntaxNthName: Combinator<string>;
|
|
193
|
+
CssSyntaxSelectorArgPseudoName: Combinator<string>;
|
|
194
|
+
CssSyntaxOfKeyword: Combinator<string>;
|
|
195
|
+
CssSyntaxPseudoCloseAhead: Combinator<string>;
|
|
196
|
+
CssSyntaxNumber: Combinator<string>;
|
|
197
|
+
CssSyntaxProperty: Combinator<string>;
|
|
198
|
+
CssSyntaxInterpolatedPropertyStart: Combinator<string>;
|
|
199
|
+
CssSyntaxInterpolatedPropertyTail: Combinator<string>;
|
|
200
|
+
CssSyntaxCustomProperty: Combinator<string>;
|
|
201
|
+
CssSyntaxCustomOuterContent: Combinator<string>;
|
|
202
|
+
CssSyntaxCustomInnerContent: Combinator<string>;
|
|
203
|
+
CssSyntaxCustomSingleQuoted: Combinator<string>;
|
|
204
|
+
CssSyntaxCustomDoubleQuoted: Combinator<string>;
|
|
205
|
+
CssSyntaxQueryAndOr: Combinator<string>;
|
|
206
|
+
CssSyntaxQueryNot: Combinator<string>;
|
|
207
|
+
CssSyntaxQueryOnly: Combinator<string>;
|
|
208
|
+
CssSyntaxQueryComparisonOperator: Combinator<string>;
|
|
209
|
+
CssSyntaxContainerAtKeyword: Combinator<string>;
|
|
210
|
+
CssSyntaxSingleQuotedText: Combinator<string>;
|
|
211
|
+
CssSyntaxDimensionUnit: Combinator<string>;
|
|
212
|
+
CssSyntaxUrlOpen: Combinator<string>;
|
|
213
|
+
CssSyntaxUrlInner: Combinator<string>;
|
|
214
|
+
CssSyntaxStaticUrlInner: Combinator<string>;
|
|
215
|
+
CssSyntaxGenericAtRuleName: Combinator<string>;
|
|
216
|
+
CssSyntaxSimple: Combinator<string>;
|
|
217
|
+
CssSyntaxPseudoColon: Combinator<string>;
|
|
218
|
+
CssSyntaxMediaAtKeyword: Combinator<string>;
|
|
219
|
+
JessAstOpaqueStaticPrelude: Combinator<string | null>;
|
|
220
|
+
JessAstOpaqueBody: Combinator<string>;
|
|
221
|
+
};
|
|
222
|
+
export declare const jessFactory: (g: JessRules & SharedCssSyntax) => {
|
|
223
|
+
Stylesheet: Combinator<Stylesheet>;
|
|
224
|
+
JessAstDocument: Combinator<Stylesheet>;
|
|
225
|
+
DirectJessVarDeclaration: Combinator<VariableDeclaration>;
|
|
226
|
+
DirectJessValueBlockDeclaration: Combinator<VariableDeclaration>;
|
|
227
|
+
DirectJessBlockLambda: Combinator<AnonymousMixin>;
|
|
228
|
+
DirectJessExprLambda: Combinator<AnonymousMixin>;
|
|
229
|
+
DirectJessValueBlock: Combinator<ValueNode>;
|
|
230
|
+
DirectJessVarReference: Combinator<VariableReference>;
|
|
231
|
+
DirectJessReferenceTail: Combinator<JessReferenceTail>;
|
|
232
|
+
DirectJessReferenceCallTail: Combinator<JessReferenceTail>;
|
|
233
|
+
DirectJessDollarValue: Combinator<ValueNode>;
|
|
234
|
+
DirectJessDollarBrace: Combinator<Interpolation>;
|
|
235
|
+
DirectJessExpressionDollarBrace: Combinator<ExpressionFact>;
|
|
236
|
+
DirectJessDollarInterp: Combinator<Interpolation>;
|
|
237
|
+
DirectJessExpressionDollarInterp: Combinator<ExpressionFact>;
|
|
238
|
+
DirectJessExpression: Combinator<Interpolation>;
|
|
239
|
+
DirectJessExpressionInterpolation: Combinator<ExpressionFact>;
|
|
240
|
+
DirectJessExpressionQuoted: Combinator<ExpressionFact>;
|
|
241
|
+
DirectJessExpressionAtom: Combinator<ExpressionFact>;
|
|
242
|
+
DirectJessExpressionProduct: Combinator<ExpressionFact>;
|
|
243
|
+
DirectJessExpressionSum: Combinator<ExpressionFact>;
|
|
244
|
+
DirectJessExpressionCompare: Combinator<ExpressionFact>;
|
|
245
|
+
DirectJessUnwrappedProductRest: Combinator<ExpressionFact>;
|
|
246
|
+
DirectJessGuardValue: Combinator<GuardNode>;
|
|
247
|
+
DirectJessGuardCompare: Combinator<GuardNode>;
|
|
248
|
+
DirectJessGuardCall: Combinator<GuardNode>;
|
|
249
|
+
DirectJessGuardPrimary: Combinator<GuardNode>;
|
|
250
|
+
DirectJessGuardAnd: Combinator<GuardNode>;
|
|
251
|
+
DirectJessGuardOr: Combinator<GuardNode>;
|
|
252
|
+
DirectJessMixinGuard: Combinator<GuardNode>;
|
|
253
|
+
DirectJessKeyword: Combinator<Keyword>;
|
|
254
|
+
DirectJessQuoted: Combinator<Interpolation | Quoted>;
|
|
255
|
+
DirectJessStaticQuoted: Combinator<Quoted>;
|
|
256
|
+
DirectJessStyleImport: Combinator<StyleImport>;
|
|
257
|
+
DirectJessModuleSpecifier: Combinator<ModuleImportSpecifier>;
|
|
258
|
+
DirectJessModuleImport: Combinator<ModuleImport>;
|
|
259
|
+
DirectJessStaticValueAtom: Combinator<ValueNode>;
|
|
260
|
+
DirectJessStaticValue: Combinator<ValueSlot>;
|
|
261
|
+
DirectJessStaticCallArgument: Combinator<ValueSlot>;
|
|
262
|
+
DirectJessStaticCall: Combinator<FunctionCall>;
|
|
263
|
+
DirectJessStaticAtNonOnlyKeyword: Combinator<Keyword>;
|
|
264
|
+
DirectJessStaticAtNonOnlyAtom: Combinator<ValueNode>;
|
|
265
|
+
DirectJessStaticAtQuery: Combinator<ValueNode>;
|
|
266
|
+
DirectJessStaticAtDashedIdent: Combinator<Keyword>;
|
|
267
|
+
DirectJessStaticAtPreludeTerm: Combinator<ValueNode>;
|
|
268
|
+
DirectJessStaticAtPrelude: Combinator<ValueNode | null>;
|
|
269
|
+
DirectJessMediaPrelude: Combinator<ValueNode | null>;
|
|
270
|
+
DirectJessStaticAtRuleHeader: Combinator<JessAtRuleHeader>;
|
|
271
|
+
DirectJessAtRuleHeader: Combinator<JessAtRuleHeader>;
|
|
272
|
+
DirectJessSupportsAtom: Combinator<ValueNode>;
|
|
273
|
+
DirectJessGeneralTemplate: Combinator<Interpolation>;
|
|
274
|
+
DirectJessGeneralTemplateParen: Combinator<Interpolation>;
|
|
275
|
+
DirectJessGeneralTemplateSquare: Combinator<Interpolation>;
|
|
276
|
+
DirectJessGeneralTemplateBrace: Combinator<Interpolation>;
|
|
277
|
+
DirectJessGeneralTemplateDoubleQuoted: Combinator<Interpolation>;
|
|
278
|
+
DirectJessGeneralTemplateSingleQuoted: Combinator<Interpolation>;
|
|
279
|
+
DirectJessGeneralQuotedTemplate: Combinator<Interpolation>;
|
|
280
|
+
DirectJessGeneralQuotedTemplateParen: Combinator<Interpolation>;
|
|
281
|
+
DirectJessGeneralQuotedTemplateSquare: Combinator<Interpolation>;
|
|
282
|
+
DirectJessGeneralQuotedTemplateBrace: Combinator<Interpolation>;
|
|
283
|
+
DirectJessGeneralQuotedTemplateDoubleQuoted: Combinator<Interpolation>;
|
|
284
|
+
DirectJessGeneralQuotedTemplateSingleQuoted: Combinator<Interpolation>;
|
|
285
|
+
DirectJessGeneralEnclosed: Combinator<GeneralEnclosed>;
|
|
286
|
+
DirectJessSupportsNot: Combinator<Keyword>;
|
|
287
|
+
DirectJessSupportsLogical: Combinator<Keyword>;
|
|
288
|
+
DirectJessSupportsFeature: Combinator<ValueNode>;
|
|
289
|
+
DirectJessSupportsInParens: Combinator<ValueNode>;
|
|
290
|
+
DirectJessSupportsCondition: Combinator<ValueNode>;
|
|
291
|
+
CssImportTarget: Combinator<Quoted | Url>;
|
|
292
|
+
DirectJessImportTailFunction: Combinator<FunctionCall>;
|
|
293
|
+
DirectJessCssImportPrelude: Combinator<ValueNode>;
|
|
294
|
+
DirectJessUrlInterpolatedValue: Combinator<Interpolation>;
|
|
295
|
+
DirectJessCharset: Combinator<AtRuleStatement>;
|
|
296
|
+
DirectJessCssImport: Combinator<AtRuleStatement>;
|
|
297
|
+
DirectJessSupportsAtRuleBlock: Combinator<AtRuleBlock>;
|
|
298
|
+
DirectJessPropertyName: Combinator<Keyword>;
|
|
299
|
+
DirectJessStaticPropertyDescriptor: Combinator<Declaration>;
|
|
300
|
+
DirectJessPropertyAtRule: Combinator<AtRuleBlock>;
|
|
301
|
+
DirectJessKeyframeSelector: Combinator<SimpleSelector>;
|
|
302
|
+
DirectJessKeyframeBlock: Combinator<Rule>;
|
|
303
|
+
DirectJessKeyframes: Combinator<AtRuleBlock>;
|
|
304
|
+
DirectJessOpaquePrelude: Combinator<string | null>;
|
|
305
|
+
DirectJessOpaqueBody: Combinator<string>;
|
|
306
|
+
DirectJessOpaqueAtRuleBlock: Combinator<OpaqueAtRuleBlock>;
|
|
307
|
+
DirectJessScopeBlock: Combinator<AtRuleBlock>;
|
|
308
|
+
DirectJessAtRuleBlock: Combinator<AtRuleBlock>;
|
|
309
|
+
DirectJessAtRuleStatement: Combinator<AtRuleStatement>;
|
|
310
|
+
DirectJessDimension: Combinator<Dimension>;
|
|
311
|
+
DirectJessColor: Combinator<Color>;
|
|
312
|
+
DirectJessUrl: Combinator<Url>;
|
|
313
|
+
DirectJessInterpolatedUrl: Combinator<Url>;
|
|
314
|
+
DirectJessCallComponent: Combinator<ValueSlot>;
|
|
315
|
+
DirectJessCallArgument: Combinator<ValueSlot>;
|
|
316
|
+
DirectJessCall: Combinator<FunctionCall>;
|
|
317
|
+
DirectJessCollectionEntry: Combinator<Declaration>;
|
|
318
|
+
DirectJessCollection: Combinator<Collection>;
|
|
319
|
+
DirectJessInterpolatedValue: Combinator<Interpolation>;
|
|
320
|
+
DirectJessValueAtom: Combinator<ValueNode>;
|
|
321
|
+
DirectJessValueSpaceGroup: Combinator<ValueSlot>;
|
|
322
|
+
DirectJessValueTerm: Combinator<ValueSlot>;
|
|
323
|
+
DirectJessValue: Combinator<ValueSlot>;
|
|
324
|
+
DirectJessImportant: Combinator<true>;
|
|
325
|
+
DirectJessCustomPropertyValue: Combinator<Keyword>;
|
|
326
|
+
DirectJessCustomPropertyName: Combinator<string | Interpolation>;
|
|
327
|
+
DirectJessCustomPart: Combinator<unknown>;
|
|
328
|
+
DirectJessCustomInnerPart: Combinator<unknown>;
|
|
329
|
+
DirectJessCustomParen: Combinator<readonly unknown[]>;
|
|
330
|
+
DirectJessCustomSquare: Combinator<readonly unknown[]>;
|
|
331
|
+
DirectJessCustomCurly: Combinator<readonly unknown[]>;
|
|
332
|
+
DirectJessCustomValue: Combinator<ValueNode>;
|
|
333
|
+
DirectJessCustomDeclaration: Combinator<Declaration>;
|
|
334
|
+
DirectJessDeclaration: Combinator<Declaration>;
|
|
335
|
+
DirectJessMixinParam: Combinator<Param>;
|
|
336
|
+
DirectJessMixinParams: Combinator<Param[]>;
|
|
337
|
+
DirectJessMixinCallArg: Combinator<import("@jesscss/core/ast").CallArg>;
|
|
338
|
+
DirectJessMixinCall: Combinator<MixinCall>;
|
|
339
|
+
DirectJessReferenceCall: Combinator<Reference>;
|
|
340
|
+
DirectJessApply: Combinator<Apply>;
|
|
341
|
+
DirectJessExtend: Combinator<ExtendInstruction[]>;
|
|
342
|
+
DirectJessMixinDef: Combinator<MixinDef>;
|
|
343
|
+
DirectJessSimple: Combinator<SimpleSelector>;
|
|
344
|
+
DirectJessParent: Combinator<SimpleSelector>;
|
|
345
|
+
DirectJessInterpolatedSimple: Combinator<SimpleSelector>;
|
|
346
|
+
DirectJessInterpolatedParentSuffix: Combinator<SimpleSelector>;
|
|
347
|
+
DirectJessAttribute: Combinator<SimpleSelector>;
|
|
348
|
+
DirectJessPseudo: Combinator<SimpleToken>;
|
|
349
|
+
DirectJessStaticPseudoArgument: Combinator<string | SelectorList>;
|
|
350
|
+
DirectJessGenericPseudoArgument: Combinator<string | SelectorList>;
|
|
351
|
+
DirectJessCompound: Combinator<CompoundSelector>;
|
|
352
|
+
DirectJessStaticCompound: Combinator<CompoundSelector>;
|
|
353
|
+
DirectJessStaticComplexTail: Combinator<JessComplexTail>;
|
|
354
|
+
DirectJessStaticComplex: Combinator<ComplexSelector>;
|
|
355
|
+
DirectJessStaticSelectorTail: Combinator<ComplexSelector>;
|
|
356
|
+
DirectJessStaticSelector: Combinator<SelectorList>;
|
|
357
|
+
DirectJessSelectorCapture: Combinator<SelectorCapture>;
|
|
358
|
+
DirectJessComplexTail: Combinator<JessComplexTail>;
|
|
359
|
+
DirectJessComplex: Combinator<ComplexSelector>;
|
|
360
|
+
DirectJessSelectorTail: Combinator<ComplexSelector>;
|
|
361
|
+
DirectJessSelector: Combinator<SelectorList>;
|
|
362
|
+
DirectJessRule: Combinator<Rule>;
|
|
363
|
+
ForName: Combinator<string>;
|
|
364
|
+
ForBinding: Combinator<ForBinding>;
|
|
365
|
+
ForRangeBound: Combinator<ValueNode>;
|
|
366
|
+
ForRange: Combinator<Range>;
|
|
367
|
+
ForSource: Combinator<ValueNode>;
|
|
368
|
+
For: Combinator<For>;
|
|
369
|
+
DirectJessIfGuardValue: Combinator<GuardNode>;
|
|
370
|
+
DirectJessIfGuardCompare: Combinator<GuardNode>;
|
|
371
|
+
DirectJessIfGuardPrimary: Combinator<GuardNode>;
|
|
372
|
+
DirectJessIfGuardAnd: Combinator<GuardNode>;
|
|
373
|
+
DirectJessIfGuardOr: Combinator<GuardNode>;
|
|
374
|
+
DirectJessIfGuard: Combinator<GuardNode>;
|
|
375
|
+
DirectJessIfCondition: Combinator<GuardNode>;
|
|
376
|
+
DirectJessIfBody: Combinator<Statement[]>;
|
|
377
|
+
DirectJessElseIfBranch: Combinator<IfBranch>;
|
|
378
|
+
DirectJessElseBranch: Combinator<IfBranch>;
|
|
379
|
+
DirectJessIf: Combinator<If>;
|
|
380
|
+
rw: Combinator<string[]>;
|
|
381
|
+
whitespace: Combinator<string[]>;
|
|
382
|
+
};
|
|
383
|
+
export declare const jessGrammar: Record<string, import("parseman").FusedRule>;
|
|
384
|
+
export declare const jessAstGrammar: Record<string, import("parseman").FusedRule>;
|
|
385
|
+
export declare const jessCstGrammar: Record<string, import("parseman").FusedRule>;
|
|
386
|
+
export {};
|