@formulavize/lezer-fiz 0.2.2 → 0.2.3
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/index.cjs +13 -13
- package/dist/index.es.js +13 -13
- package/package.json +1 -1
- package/src/fiz.grammar +3 -1
- package/test/namespaces.txt +40 -21
- package/test/qualifiers.txt +1 -0
package/dist/index.cjs
CHANGED
|
@@ -5,10 +5,10 @@ var highlight = require('@lezer/highlight');
|
|
|
5
5
|
|
|
6
6
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
7
7
|
const Unit = 1,
|
|
8
|
-
cssIdentifier =
|
|
9
|
-
insertSemi =
|
|
10
|
-
spaces =
|
|
11
|
-
newline =
|
|
8
|
+
cssIdentifier = 44,
|
|
9
|
+
insertSemi = 45,
|
|
10
|
+
spaces = 47,
|
|
11
|
+
newline = 48,
|
|
12
12
|
LineComment = 2,
|
|
13
13
|
BlockComment = 3;
|
|
14
14
|
|
|
@@ -110,24 +110,24 @@ const fizHighlighting = highlight.styleTags({
|
|
|
110
110
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
111
111
|
const parser = lr.LRParser.deserialize({
|
|
112
112
|
version: 14,
|
|
113
|
-
states: "
|
|
114
|
-
stateData: "
|
|
115
|
-
goto: "&
|
|
116
|
-
nodeNames: "⚠ Unit LineComment BlockComment Recipe Call QualifiableIdentifier Identifier . ) ( ArgList RhsVariable } { StyleArgList StyleDeclaration PropertyName : ColorLiteral NumberLiteral StringLiteral StyleTag # Alias LhsVariable Eq Assignment StyleTagDeclaration StyleBinding % StyleTagList Namespace [
|
|
117
|
-
maxTerm:
|
|
113
|
+
states: "+vQ`QSOOOnQdO'#CbO!YQdO'#ChO!kQSO'#CtO!sQSO'#CxO!xQSO'#CyO!}QSO'#DPO#`QdO'#C|O#nQdO'#D_OOQO'#DQ'#DQQ`QSOOO#vQSO'#DRO#{QfO,58|O$mQUO'#CkOOQO,59a,59aO${QdO,59hO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~O^!UO~OVPOgSOnTOq!WOrUO~Ob!XO~O]![OesOgrO|pO~O^]O}pi!Xpi~OWZOXUXYUX!TUX}UX!XUX]UXeUXgUX|UX~OX!`O!T!^O~O^]OjiX!TiX~O]!eOgrO~Oc!gOe!gO!V!fO~OX!kO!T!^O~OY`O~O]!mOgrO~OP!nO}dX!TdX!XdX~O}kO!T!oO!XkO~O!P!QV!Q~",
|
|
115
|
+
goto: "&e!XPPPPP!Y!jPPPP!y#TPP#b#v#zPP$OP$SP$[$bP$[$[$[P$k$[PP$n$w%R%Y%`%f%l%rPPPPPP%x&OP&UP&[WWOUYhSy`!^Q!ObR!b!S^QOUY`bh!^Q!YrR!a!SSaQ!aQjVRw_WWOUYhSy`!^R}bS^P!PQiVSv_jQ|aQ!TeR!]wTs]tTq]tT!g!X!oSs]tT!c!U!dXWOUYhWROUYhR!QcR!VfWVOUYhR_PQYOQhUTmYhS[PxRo[Q!_{R!j!_Qt]R!ZtQ!p!hR!s!pQdRR!RdQ!d!UR!l!dXXOUYhQ{`R!i!^Q!h!XR!r!oQlWQ!q!hR!t!p",
|
|
116
|
+
nodeNames: "⚠ Unit LineComment BlockComment Recipe Call QualifiableIdentifier Identifier . ) ( ArgList RhsVariable } { StyleArgList StyleDeclaration PropertyName : ColorLiteral NumberLiteral StringLiteral StyleTag # Alias LhsVariable Eq Assignment StyleTagDeclaration StyleBinding % StyleTagList Namespace ] [ StatementList",
|
|
117
|
+
maxTerm: 55,
|
|
118
118
|
context: trackNewline,
|
|
119
119
|
nodeProps: [
|
|
120
120
|
["group", -2,5,12,"Statement Value",-3,19,20,21,"StyleValue",-5,24,27,28,29,32,"Statement"],
|
|
121
|
-
["openedBy", 9,"(",13,"{"],
|
|
122
|
-
["closedBy", 10,")",14,"}"]
|
|
121
|
+
["openedBy", 9,"(",13,"{",33,"["],
|
|
122
|
+
["closedBy", 10,")",14,"}",34,"]"]
|
|
123
123
|
],
|
|
124
124
|
propSources: [fizHighlighting],
|
|
125
125
|
skipp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132
132
|
|
|
133
133
|
exports.parser = parser;
|
package/dist/index.es.js
CHANGED
|
@@ -3,10 +3,10 @@ import { styleTags, tags } from '@lezer/highlight';
|
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
5
|
const Unit = 1,
|
|
6
|
-
cssIdentifier =
|
|
7
|
-
insertSemi =
|
|
8
|
-
spaces =
|
|
9
|
-
newline =
|
|
6
|
+
cssIdentifier = 44,
|
|
7
|
+
insertSemi = 45,
|
|
8
|
+
spaces = 47,
|
|
9
|
+
newline = 48,
|
|
10
10
|
LineComment = 2,
|
|
11
11
|
BlockComment = 3;
|
|
12
12
|
|
|
@@ -108,24 +108,24 @@ const fizHighlighting = styleTags({
|
|
|
108
108
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
109
109
|
const parser = LRParser.deserialize({
|
|
110
110
|
version: 14,
|
|
111
|
-
states: "
|
|
112
|
-
stateData: "
|
|
113
|
-
goto: "&
|
|
114
|
-
nodeNames: "⚠ Unit LineComment BlockComment Recipe Call QualifiableIdentifier Identifier . ) ( ArgList RhsVariable } { StyleArgList StyleDeclaration PropertyName : ColorLiteral NumberLiteral StringLiteral StyleTag # Alias LhsVariable Eq Assignment StyleTagDeclaration StyleBinding % StyleTagList Namespace [
|
|
115
|
-
maxTerm:
|
|
111
|
+
states: "+vQ`QSOOOnQdO'#CbO!YQdO'#ChO!kQSO'#CtO!sQSO'#CxO!xQSO'#CyO!}QSO'#DPO#`QdO'#C|O#nQdO'#D_OOQO'#DQ'#DQQ`QSOOO#vQSO'#DRO#{QfO,58|O$mQUO'#CkOOQO,59a,59aO${QdO,59hO%ZQSO'#CgO%cQdO,58{O%tQSO,59`O%yQSO'#DVO&OQSO,59cO&WQSO,59dO&]QSO,59eOOQ`,59k,59kO&bQSO,59kOOQ`,59h,59hO%OQdO,59hOOQQ'#Dd'#DdOOQO,59y,59yOOQO-E7O-E7OOOQb,59m,59mOOQb-E7P-E7POOQO'#Cm'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X!TdX!XdX~O}kO!T!oO!XkO~O!P!QV!Q~",
|
|
113
|
+
goto: "&e!XPPPPP!Y!jPPPP!y#TPP#b#v#zPP$OP$SP$[$bP$[$[$[P$k$[PP$n$w%R%Y%`%f%l%rPPPPPP%x&OP&UP&[WWOUYhSy`!^Q!ObR!b!S^QOUY`bh!^Q!YrR!a!SSaQ!aQjVRw_WWOUYhSy`!^R}bS^P!PQiVSv_jQ|aQ!TeR!]wTs]tTq]tT!g!X!oSs]tT!c!U!dXWOUYhWROUYhR!QcR!VfWVOUYhR_PQYOQhUTmYhS[PxRo[Q!_{R!j!_Qt]R!ZtQ!p!hR!s!pQdRR!RdQ!d!UR!l!dXXOUYhQ{`R!i!^Q!h!XR!r!oQlWQ!q!hR!t!p",
|
|
114
|
+
nodeNames: "⚠ Unit LineComment BlockComment Recipe Call QualifiableIdentifier Identifier . ) ( ArgList RhsVariable } { StyleArgList StyleDeclaration PropertyName : ColorLiteral NumberLiteral StringLiteral StyleTag # Alias LhsVariable Eq Assignment StyleTagDeclaration StyleBinding % StyleTagList Namespace ] [ StatementList",
|
|
115
|
+
maxTerm: 55,
|
|
116
116
|
context: trackNewline,
|
|
117
117
|
nodeProps: [
|
|
118
118
|
["group", -2,5,12,"Statement Value",-3,19,20,21,"StyleValue",-5,24,27,28,29,32,"Statement"],
|
|
119
|
-
["openedBy", 9,"(",13,"{"],
|
|
120
|
-
["closedBy", 10,")",14,"}"]
|
|
119
|
+
["openedBy", 9,"(",13,"{",33,"["],
|
|
120
|
+
["closedBy", 10,")",14,"}",34,"]"]
|
|
121
121
|
],
|
|
122
122
|
propSources: [fizHighlighting],
|
|
123
123
|
skippedNodes: [0,2,3],
|
|
124
124
|
repeatNodeCount: 7,
|
|
125
|
-
tokenData: "2o~R!PXY$UYZ$yZ[$U]^$ypq$Urs%Ost&rtu)Tuv)xwx)}xy+lyz+q{|+v|}-b}!O+v!O!P-g!P!Q-o!Q![-P![!]/h!]!^/m!_!`/r!c!})T!}#O/w#P#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wx%kx#O)}#O#P*j#P;'S)};'S;=`+f<%lO)}~*mRO;'S)};'S;=`*v;=`O)}~*yXOY)}Zw)}wx%kx#O)}#O#P*j#P;'S)};'S;=`+f;=`<%l)}<%lO)}~+iP;=`<%l)}~+qOY~~+vOX~Q+yQ!O!P,P!Q![-PQ,SP!Q![,VQ,[R!VQ!Q![,V!g!h,e#X#Y,eQ,hR{|,q}!O,q!Q![,wQ,tP!Q![,wQ,|P!VQ!Q![,wQ-US!VQ!O!P,V!Q![-P!g!h,e#X#Y,e~-gO!T~R-lPWP!Q![,V~-rQz{-x!P!Q/P~-{TOz-xz{.[{;'S-x;'S;=`.y<%lO-x~._VOz-xz{.[{!P-x!P!Q.t!Q;'S-x;'S;=`.y<%lO-x~.yOR~~.|P;=`<%l-x~/USQ~OY/PZ;'S/P;'S;=`/b<%lO/P~/eP;=`<%l/P~/mOb~~/rO!X~~/wOj~~/|Or~~0ROq~~0WO^~~0]O]~~0dh!P~V~XY$UZ[$Upq$Utu)T!Q![)T!c!})T#R#S)T#T#o)T$f$g$U$g#BY)T#BY#BZ0]#BZ$IS)T$IS$I_0]$I_$JT)T$JT$JU0]$JU$KV)T$KV$KW0]$KW&FU)T&FU&FV0]&FV;'S)T;'S;=`)r<%l?HT)T?HT?HU0]?HUO)T~2VW!Q~V~tu)T!Q![)T!c!})T#R#S)T#T#o)T$g;'S)T;'S;=`)r<%lO)T",
|
|
126
126
|
tokenizers: [unitToken, cssIdentifierToken, 0, 1, insertSemicolon],
|
|
127
127
|
topRules: {"Recipe":[0,4]},
|
|
128
|
-
tokenPrec:
|
|
128
|
+
tokenPrec: 411
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
export { parser };
|
package/package.json
CHANGED
package/src/fiz.grammar
CHANGED
|
@@ -46,7 +46,9 @@ StyleTagList { "{" StyleTag* "}" }
|
|
|
46
46
|
|
|
47
47
|
StyleBinding { "%" Identifier StyleTagList }
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
StatementList { "[" statement* "]" }
|
|
50
|
+
|
|
51
|
+
Namespace { Identifier? StatementList ArgList? StyleArgList? }
|
|
50
52
|
|
|
51
53
|
@skip { spaces | newline | LineComment | BlockComment }
|
|
52
54
|
|
package/test/namespaces.txt
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
==>
|
|
6
6
|
|
|
7
7
|
Recipe(
|
|
8
|
-
Namespace()
|
|
8
|
+
Namespace(StatementList)
|
|
9
9
|
)
|
|
10
10
|
|
|
11
11
|
# Empty Named Namespace
|
|
@@ -15,7 +15,7 @@ n[]
|
|
|
15
15
|
==>
|
|
16
16
|
|
|
17
17
|
Recipe(
|
|
18
|
-
Namespace(Identifier)
|
|
18
|
+
Namespace(Identifier, StatementList)
|
|
19
19
|
)
|
|
20
20
|
|
|
21
21
|
# Call in Namespace
|
|
@@ -27,7 +27,11 @@ Recipe(
|
|
|
27
27
|
==>
|
|
28
28
|
|
|
29
29
|
Recipe(
|
|
30
|
-
Namespace(
|
|
30
|
+
Namespace(
|
|
31
|
+
StatementList(
|
|
32
|
+
Call(QualifiableIdentifier(Identifier), ArgList)
|
|
33
|
+
)
|
|
34
|
+
)
|
|
31
35
|
)
|
|
32
36
|
|
|
33
37
|
# Alias in Namespace
|
|
@@ -40,10 +44,12 @@ Recipe(
|
|
|
40
44
|
|
|
41
45
|
Recipe(
|
|
42
46
|
Namespace(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
StatementList(
|
|
48
|
+
Alias(
|
|
49
|
+
LhsVariable(Identifier),
|
|
50
|
+
Eq,
|
|
51
|
+
RhsVariable(QualifiableIdentifier(Identifier))
|
|
52
|
+
)
|
|
47
53
|
)
|
|
48
54
|
)
|
|
49
55
|
)
|
|
@@ -58,12 +64,14 @@ Recipe(
|
|
|
58
64
|
|
|
59
65
|
Recipe(
|
|
60
66
|
Namespace(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
StatementList(
|
|
68
|
+
Assignment(
|
|
69
|
+
LhsVariable(Identifier),
|
|
70
|
+
Eq,
|
|
71
|
+
Call(
|
|
72
|
+
QualifiableIdentifier(Identifier),
|
|
73
|
+
ArgList(RhsVariable(QualifiableIdentifier(Identifier)))
|
|
74
|
+
)
|
|
67
75
|
)
|
|
68
76
|
)
|
|
69
77
|
)
|
|
@@ -79,9 +87,11 @@ Recipe(
|
|
|
79
87
|
|
|
80
88
|
Recipe(
|
|
81
89
|
Namespace(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
90
|
+
StatementList(
|
|
91
|
+
StyleTagDeclaration(
|
|
92
|
+
Identifier,
|
|
93
|
+
StyleArgList
|
|
94
|
+
)
|
|
85
95
|
)
|
|
86
96
|
)
|
|
87
97
|
)
|
|
@@ -96,7 +106,9 @@ Recipe(
|
|
|
96
106
|
|
|
97
107
|
Recipe(
|
|
98
108
|
Namespace(
|
|
99
|
-
|
|
109
|
+
StatementList(
|
|
110
|
+
StyleBinding(Identifier, StyleTagList())
|
|
111
|
+
)
|
|
100
112
|
)
|
|
101
113
|
)
|
|
102
114
|
|
|
@@ -112,8 +124,10 @@ a[
|
|
|
112
124
|
Recipe(
|
|
113
125
|
Namespace(
|
|
114
126
|
Identifier,
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
StatementList(
|
|
128
|
+
Namespace(StatementList),
|
|
129
|
+
Namespace(Identifier, StatementList)
|
|
130
|
+
)
|
|
117
131
|
)
|
|
118
132
|
)
|
|
119
133
|
|
|
@@ -128,8 +142,10 @@ Recipe(
|
|
|
128
142
|
|
|
129
143
|
Recipe(
|
|
130
144
|
Namespace(
|
|
131
|
-
|
|
132
|
-
|
|
145
|
+
StatementList(
|
|
146
|
+
LineComment,
|
|
147
|
+
BlockComment
|
|
148
|
+
)
|
|
133
149
|
)
|
|
134
150
|
)
|
|
135
151
|
|
|
@@ -141,6 +157,7 @@ Recipe(
|
|
|
141
157
|
|
|
142
158
|
Recipe(
|
|
143
159
|
Namespace(
|
|
160
|
+
StatementList,
|
|
144
161
|
ArgList
|
|
145
162
|
)
|
|
146
163
|
)
|
|
@@ -153,6 +170,7 @@ Recipe(
|
|
|
153
170
|
|
|
154
171
|
Recipe(
|
|
155
172
|
Namespace(
|
|
173
|
+
StatementList,
|
|
156
174
|
StyleArgList
|
|
157
175
|
)
|
|
158
176
|
)
|
|
@@ -165,6 +183,7 @@ Recipe(
|
|
|
165
183
|
|
|
166
184
|
Recipe(
|
|
167
185
|
Namespace(
|
|
186
|
+
StatementList,
|
|
168
187
|
ArgList,
|
|
169
188
|
StyleArgList
|
|
170
189
|
)
|