@formulavize/lezer-fiz 2.3.0 → 2.3.2
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/.github/workflows/ci.yml +4 -4
- package/README.md +172 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +1 -1
- package/package.json +18 -17
package/.github/workflows/ci.yml
CHANGED
|
@@ -14,15 +14,15 @@ jobs:
|
|
|
14
14
|
|
|
15
15
|
steps:
|
|
16
16
|
- name: Checkout code
|
|
17
|
-
uses: actions/checkout@
|
|
17
|
+
uses: actions/checkout@v7
|
|
18
18
|
|
|
19
19
|
- name: Install pnpm
|
|
20
|
-
uses: pnpm/action-setup@
|
|
20
|
+
uses: pnpm/action-setup@v6
|
|
21
21
|
with:
|
|
22
|
-
version:
|
|
22
|
+
version: 12
|
|
23
23
|
|
|
24
24
|
- name: Set up Node.js
|
|
25
|
-
uses: actions/setup-node@
|
|
25
|
+
uses: actions/setup-node@v7
|
|
26
26
|
with:
|
|
27
27
|
node-version: 26
|
|
28
28
|
cache: pnpm
|
package/README.md
CHANGED
|
@@ -2,4 +2,175 @@
|
|
|
2
2
|
|
|
3
3
|
This is the fiz grammar for the [lezer](https://lezer.codemirror.net) parser system.
|
|
4
4
|
|
|
5
|
-
**fiz** is a functionally inspired language for describing workflows in [formulavize](https://github.com/formulavize/formulavize). It borrows many language constructs from [javascript](https://github.com/lezer-parser/javascript) and [CSS](https://github.com/lezer-parser/css).
|
|
5
|
+
**fiz** is a functionally inspired language for describing workflows in [formulavize](https://github.com/formulavize/editor-formulavize). It borrows many language constructs from [javascript](https://github.com/lezer-parser/javascript) and [CSS](https://github.com/lezer-parser/css).
|
|
6
|
+
|
|
7
|
+
This package exports nothing but the parser. It has no opinion about editors,
|
|
8
|
+
highlighting themes, or what a parsed recipe _means_ — CodeMirror integration
|
|
9
|
+
lives in [`@formulavize/lang-fiz`](https://github.com/formulavize/lang-fiz), and
|
|
10
|
+
the compiler that turns a syntax tree into a DAG lives in formulavize itself.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
pnpm add @formulavize/lezer-fiz
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
import { parser } from "@formulavize/lezer-fiz";
|
|
22
|
+
|
|
23
|
+
const tree = parser.parse("x = f(y){ color: #abc }");
|
|
24
|
+
console.log(tree.toString());
|
|
25
|
+
// Recipe(Assignment(LhsVariable(Identifier),Eq,Call(Identifier,
|
|
26
|
+
// ArgList("(",RhsVariable(QualifiableIdentifier(Identifier)),")"),
|
|
27
|
+
// StyleArgList("{",StyleDeclaration(PropertyName,":",ColorLiteral),"}"))))
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The export is a plain `LRParser`, so it can be `configure()`d with node props
|
|
31
|
+
(indentation, folding, custom highlighting) the way any lezer parser can. See
|
|
32
|
+
`lang-fiz` for a worked example.
|
|
33
|
+
|
|
34
|
+
## The Grammar
|
|
35
|
+
|
|
36
|
+
The top node is `Recipe`, a flat sequence of statements. Each statement is one
|
|
37
|
+
of the forms below, terminated by `;` or by a newline (see
|
|
38
|
+
[Automatic semicolons](#automatic-semicolons)).
|
|
39
|
+
|
|
40
|
+
| Form | Example | Top node |
|
|
41
|
+
| --------------------- | ----------------- | ---------------------------------------------------------------- |
|
|
42
|
+
| Call | `f(x, g())` | `Call(Identifier, ArgList, StyleArgList?)` |
|
|
43
|
+
| Variable reference | `x`, `pkg.x` | `RhsVariable(QualifiableIdentifier)` |
|
|
44
|
+
| Assignment | `a, b = f()` | `Assignment(LhsVariable+, Eq, …)` |
|
|
45
|
+
| Style tag declaration | `#tag{ … }` | `StyleTagDeclaration(Identifier, StyleArgList)` |
|
|
46
|
+
| Style binding | `%name{ … }` | `StyleBinding(Identifier, StyleArgList)` |
|
|
47
|
+
| Global style binding | `*node{ … }` | `GlobalStyleBinding(Identifier, StyleArgList)` |
|
|
48
|
+
| Renderer directive | `^cytoscape{ … }` | `RendererDirective(Identifier, StyleArgList)` |
|
|
49
|
+
| About note | `~about{ … }` | `AboutNote(Identifier?, StyleArgList)` |
|
|
50
|
+
| Namespace | `ns[ … ](){}` | `Namespace(Identifier?, StatementList, ArgList?, StyleArgList?)` |
|
|
51
|
+
| Import | `pkg @ "pkg.fiz"` | `Import(Identifier?, StringLiteral)` |
|
|
52
|
+
|
|
53
|
+
A few asymmetries are deliberate:
|
|
54
|
+
|
|
55
|
+
- **`ArgList` holds only values.** `value` is `RhsVariable | Call`, so a
|
|
56
|
+
namespace or an import cannot appear as an argument, even though both are
|
|
57
|
+
legal on the right-hand side of an `Assignment`. Allowing them parses fine;
|
|
58
|
+
it just reads badly.
|
|
59
|
+
- **`QualifiableIdentifier` is dotted, `Identifier` is not.** Anything being
|
|
60
|
+
_referred to_ (`RhsVariable`, `StyleTag`) is qualifiable; anything being
|
|
61
|
+
_declared_ (`LhsVariable`, a call's name, a namespace's name, an import
|
|
62
|
+
alias) is a bare `Identifier`.
|
|
63
|
+
- **`LhsVariable` carries its own `StyleArgList`.** `x{ } = f()` styles the
|
|
64
|
+
variable, `x = f(){ }` styles the call.
|
|
65
|
+
|
|
66
|
+
### Style blocks
|
|
67
|
+
|
|
68
|
+
`StyleArgList` (`{ … }`) is shared by every form that takes styling, and holds
|
|
69
|
+
any mix of three things:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
#mystyle{
|
|
73
|
+
#base // StyleTag — include another tag's declarations
|
|
74
|
+
color: #ff0000, 12px // StyleDeclaration — PropertyName ":" styleValue+
|
|
75
|
+
"a description" // bare StringLiteral — the description shortcut
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`styleValue` is `ColorLiteral | NumberLiteral | StringLiteral`. `PropertyName`
|
|
80
|
+
is a CSS-style identifier, so `kebab-case`, `snake_case`, `camelCase`, and
|
|
81
|
+
`PascalCase` all work.
|
|
82
|
+
|
|
83
|
+
### Tokens
|
|
84
|
+
|
|
85
|
+
Three external tokenizers in `src/tokens.js` cover what the grammar itself
|
|
86
|
+
cannot express:
|
|
87
|
+
|
|
88
|
+
- **`insertSemicolon`** — emits the implicit `insertSemi` terminal (see below).
|
|
89
|
+
- **`unitToken`** — the `Unit` suffix on a `NumberLiteral` (`12px`, `1.2%`,
|
|
90
|
+
`10E2px`). It only fires when the preceding character is not a space, so
|
|
91
|
+
`12px` is one united number while `12 px` is an error rather than a number
|
|
92
|
+
followed by an identifier.
|
|
93
|
+
- **`cssIdentifierToken`** — `PropertyName`, lifted from
|
|
94
|
+
[lezer-css](https://github.com/lezer-parser/css) so that property names can
|
|
95
|
+
contain `-` where fiz `Identifier`s cannot.
|
|
96
|
+
|
|
97
|
+
`ColorLiteral` and `StyleTag` both start with `#`; they are distinguished
|
|
98
|
+
lexically, since a color literal's body is 3, 4, 6, or 8 hex digits and
|
|
99
|
+
nothing else.
|
|
100
|
+
|
|
101
|
+
#### Automatic semicolons
|
|
102
|
+
|
|
103
|
+
`semi` is `";" | insertSemi`, and `insertSemi` is produced by an external
|
|
104
|
+
tokenizer with a `ContextTracker` (`trackNewline`) that tracks whether a
|
|
105
|
+
newline has been crossed. A statement therefore ends at a newline, at a `}`, at
|
|
106
|
+
end of input, or at an explicit `;`. Comments and spaces do not reset the
|
|
107
|
+
context, so a comment between two statements does not join them. An explicit
|
|
108
|
+
`;` lets several statements share a line (`a=b();f();x=y;`), and a long
|
|
109
|
+
parenthesized call can span lines freely because the newline inside `ArgList`
|
|
110
|
+
cannot terminate a statement there.
|
|
111
|
+
|
|
112
|
+
### Highlighting
|
|
113
|
+
|
|
114
|
+
`src/highlight.js` attaches `@lezer/highlight` tags via `@external propSource`,
|
|
115
|
+
so highlighting ships with the grammar rather than with the editor package.
|
|
116
|
+
Notably, `RendererDirective/Identifier` is tagged `processingInstruction` and
|
|
117
|
+
`AboutNote/Identifier` is tagged `annotation`, which is what makes `^` and `~`
|
|
118
|
+
statements read as directives rather than as calls.
|
|
119
|
+
|
|
120
|
+
## Development
|
|
121
|
+
|
|
122
|
+
Requirements: **Node.js >= 26**, **pnpm >= 12** (this package is pnpm-only,
|
|
123
|
+
enforced by `only-allow`).
|
|
124
|
+
|
|
125
|
+
```sh
|
|
126
|
+
pnpm install
|
|
127
|
+
pnpm all # build, then test — the usual one-shot check
|
|
128
|
+
pnpm build # generate dist/ from src/fiz.grammar with Rollup
|
|
129
|
+
pnpm test # run the Mocha test suite
|
|
130
|
+
pnpm dev # watch: rebuild on src/ change, retest on dist/ or test/ change
|
|
131
|
+
pnpm format # Prettier
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**`pnpm test` reads `dist/`, not `src/`.** `test/test-fiz.js` imports
|
|
135
|
+
`../dist/index.es.js`, so a grammar change is invisible to the tests until
|
|
136
|
+
`pnpm build` has run. Prefer `pnpm all` or `pnpm dev` over a bare `pnpm test`.
|
|
137
|
+
|
|
138
|
+
Unlike `lang-fiz`, this package runs `mocha` directly instead of through
|
|
139
|
+
`cm-runtests`, which is what lets it track current mocha. See the dependency
|
|
140
|
+
notes in the formulavize monorepo's `CLAUDE.md` before changing that.
|
|
141
|
+
|
|
142
|
+
### Tests
|
|
143
|
+
|
|
144
|
+
Tests are lezer's own `fileTests` format: `test/*.txt` files holding
|
|
145
|
+
`# Name`, source, `==>`, and the expected tree. `test/test-fiz.js` globs the
|
|
146
|
+
directory, so a new `.txt` file needs no registration.
|
|
147
|
+
|
|
148
|
+
| File | Covers |
|
|
149
|
+
| ----------------- | --------------------------------------------------- |
|
|
150
|
+
| `statements.txt` | statement separation, semicolons, comments |
|
|
151
|
+
| `calls.txt` | `Call` and nested calls |
|
|
152
|
+
| `assignments.txt` | single and unpacked assignment |
|
|
153
|
+
| `namespaces.txt` | `StatementList`, nesting, namespace arg/style lists |
|
|
154
|
+
| `imports.txt` | named, anonymous, and assigned imports |
|
|
155
|
+
| `qualifiers.txt` | dotted `QualifiableIdentifier` in every position |
|
|
156
|
+
| `styling.txt` | style blocks, literals, units, bindings |
|
|
157
|
+
| `directives.txt` | `^` renderer directives |
|
|
158
|
+
| `about.txt` | `~` about notes |
|
|
159
|
+
|
|
160
|
+
Expected trees elide unnamed nodes, so punctuation shows up only where it is
|
|
161
|
+
given a name (`Eq`, `LineComment`).
|
|
162
|
+
|
|
163
|
+
### Known limitations
|
|
164
|
+
|
|
165
|
+
- **No `StyleValueName`.** A bare CSS keyword as a style value (`color: red`)
|
|
166
|
+
is not accepted; quote it (`color: "red"`). Adding `cssIdentifier` to
|
|
167
|
+
`styleValue` makes it ambiguous with `NumberLiteral`'s `Unit` suffix, which
|
|
168
|
+
would only be resolvable by making `;` mandatory in `StyleDeclaration`. There
|
|
169
|
+
is a tombstone comment in the grammar at the spot.
|
|
170
|
+
- **Import locations are string literals.** `Import` takes a `StringLiteral`
|
|
171
|
+
rather than a path or package expression; unquoted forms are left open for a
|
|
172
|
+
future package repository.
|
|
173
|
+
|
|
174
|
+
## License
|
|
175
|
+
|
|
176
|
+
MIT
|
package/dist/index.cjs
CHANGED
|
@@ -113,7 +113,7 @@ const fizHighlighting = highlight.styleTags({
|
|
|
113
113
|
const parser = lr.LRParser.deserialize({
|
|
114
114
|
version: 14,
|
|
115
115
|
states: ",xQ`QSOOO!`QdO'#CgOOQ`'#Cf'#CfO!mQSO'#CzO!tQdO'#CwO#SQSO'#C{O#XQSO'#CtO#aQSO'#C}O#fQSO'#DOO#kQSO'#DQO#pQSO'#DSO#uQSO'#DUO#}QdO'#DdOOQO'#DW'#DWQ`QSOOO$VQSO'#DXO$[QfO,59RO$yQSO'#CeO%RQUO'#CkO%aQdO,58{OOQO,59a,59aO%rQdO,59cO&QQSO,59gOOQ`,59f,59fO&VQSO,59fOOQ`,59c,59cO%uQdO,59cOOQ`,59g,59gO&^QSO'#D]O&cQSO,59`O&kQSO,59`O#xQSO,59iO#xQSO,59jO#xQSO,59lO#xQSO,59nOOQ`,59p,59pO#xQSO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O^bO!Ski!^ki~O^bOjiX!YiX~OUzO~OV!rO!Y!fO~Oc!tOe!tO![!sO~O[_O]ZXeZXgZX!RZX~OP!vO!SdX!YdX!^dX~O!SuO!Y!wO!^uO~O!U!VU~",
|
|
117
117
|
goto: "&k!^PPPPP!_PPP!o!_!zPPP#X#|$QPP$UP#|P$Y$`P$iPP$u$iP$Y$YP$YP$YP$YP%R%]%f%l%r%xPPPPPP&O&UP&[P&bW[OR^hS{a!fQ!`nR!o!^UcPz!_QjSR!We`QOR^ahn!^!fR!k!QSdP!ZQiSQsZQ!UcS!VejQ!aoQ!bpQ!cqQ!drQ!etR!n!WT!Rb!ST!Pb!ST!t!i!wX[OR^hWUOR^hR![lW[OR^hQ!`nR!o!^[SOR^hn!^TeP!_Q^OQhRTw^hW`Pz!_!jRy`Q!g}R!q!gQ!SbR!l!SQ!x!uR!{!xQmUR!]mX]OR^hQ}aR!p!fQ!u!iR!z!wQv[Q!y!uR!|!x",
|
|
118
118
|
nodeNames: "⚠ Unit LineComment BlockComment Recipe Call Identifier ) ( ArgList RhsVariable QualifiableIdentifier . } { StyleArgList StyleDeclaration PropertyName : ColorLiteral NumberLiteral StringLiteral StyleTag # Assignment LhsVariable Eq Namespace ] [ StatementList Import @ StyleTagDeclaration StyleBinding % GlobalStyleBinding * RendererDirective ^ AboutNote ~",
|
|
119
119
|
maxTerm: 60,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LRParser } from "@lezer/lr";
|
|
2
2
|
|
|
3
|
-
export const parser:
|
|
3
|
+
export const parser: LRParser;
|
package/dist/index.es.js
CHANGED
|
@@ -111,7 +111,7 @@ const fizHighlighting = styleTags({
|
|
|
111
111
|
const parser = LRParser.deserialize({
|
|
112
112
|
version: 14,
|
|
113
113
|
states: ",xQ`QSOOO!`QdO'#CgOOQ`'#Cf'#CfO!mQSO'#CzO!tQdO'#CwO#SQSO'#C{O#XQSO'#CtO#aQSO'#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OlgO~P`OWaO^bO!SkX!^kX~OekO~OjnO!YlO~OUoO~OUpO~OUqO~OUrO~OUtO^bO~O!SuO!^uO~OUxO~O[_O!SZa!^ZaVZa!YZa]ZaeZagZa!RZa~OUzOV|O~O]!TOe!ROg!QO!R!OO~O^bO!STa!^TaVTa!YTa~OWaO^bO!Ska!^ka~Oe!XO~Ol!YO~P`OU!ZO~Oj!^O!YlO~OU!_OmROpTO~OWaO[_OVZX!YZX~OV!hO!Y!fO~Ob!iO~OU!jO~O]!mOe!ROg!QO!R!OO~O^bO!Ski!^ki~O^bOjiX!YiX~OUzO~OV!rO!Y!fO~Oc!tOe!tO![!sO~O[_O]ZXeZXgZX!RZX~OP!vO!SdX!YdX!^dX~O!SuO!Y!wO!^uO~O!U!VU~",
|
|
115
115
|
goto: "&k!^PPPPP!_PPP!o!_!zPPP#X#|$QPP$UP#|P$Y$`P$iPP$u$iP$Y$YP$YP$YP$YP%R%]%f%l%r%xPPPPPP&O&UP&[P&bW[OR^hS{a!fQ!`nR!o!^UcPz!_QjSR!We`QOR^ahn!^!fR!k!QSdP!ZQiSQsZQ!UcS!VejQ!aoQ!bpQ!cqQ!drQ!etR!n!WT!Rb!ST!Pb!ST!t!i!wX[OR^hWUOR^hR![lW[OR^hQ!`nR!o!^[SOR^hn!^TeP!_Q^OQhRTw^hW`Pz!_!jRy`Q!g}R!q!gQ!SbR!l!SQ!x!uR!{!xQmUR!]mX]OR^hQ}aR!p!fQ!u!iR!z!wQv[Q!y!uR!|!x",
|
|
116
116
|
nodeNames: "⚠ Unit LineComment BlockComment Recipe Call Identifier ) ( ArgList RhsVariable QualifiableIdentifier . } { StyleArgList StyleDeclaration PropertyName : ColorLiteral NumberLiteral StringLiteral StyleTag # Assignment LhsVariable Eq Namespace ] [ StatementList Import @ StyleTagDeclaration StyleBinding % GlobalStyleBinding * RendererDirective ^ AboutNote ~",
|
|
117
117
|
maxTerm: 60,
|
package/package.json
CHANGED
|
@@ -1,39 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formulavize/lezer-fiz",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "fiz grammar for lezer",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
8
9
|
"import": "./dist/index.es.js",
|
|
9
10
|
"require": "./dist/index.cjs"
|
|
10
11
|
},
|
|
11
12
|
"module": "dist/index.es.js",
|
|
12
13
|
"types": "dist/index.d.ts",
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@lezer/highlight": "^1.2.
|
|
15
|
-
"@lezer/lr": "^1.4.
|
|
15
|
+
"@lezer/highlight": "^1.2.5",
|
|
16
|
+
"@lezer/lr": "^1.4.12"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
|
-
"@lezer/generator": "^1.8.
|
|
19
|
+
"@lezer/generator": "^1.8.1",
|
|
19
20
|
"chokidar-cli": "^3.0.0",
|
|
20
|
-
"mocha": "^
|
|
21
|
+
"mocha": "^12.0.3",
|
|
21
22
|
"npm-run-all": "^4.1.5",
|
|
22
23
|
"only-allow": "^1.2.2",
|
|
23
|
-
"prettier": "^3.9.
|
|
24
|
-
"rollup": "^4.
|
|
24
|
+
"prettier": "^3.9.10",
|
|
25
|
+
"rollup": "^4.67.2"
|
|
25
26
|
},
|
|
26
27
|
"engines": {
|
|
27
28
|
"node": ">=26.0",
|
|
28
|
-
"pnpm": ">=
|
|
29
|
+
"pnpm": ">=12"
|
|
29
30
|
},
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/formulavize/lezer-fiz.git"
|
|
33
|
-
},
|
|
34
|
-
"author": "anthologen",
|
|
35
|
-
"license": "MIT",
|
|
36
|
-
"homepage": "https://github.com/formulavize/lezer-fiz#readme",
|
|
37
31
|
"scripts": {
|
|
38
32
|
"preinstall": "npx only-allow pnpm",
|
|
39
33
|
"build": "rollup -c",
|
|
@@ -43,5 +37,12 @@
|
|
|
43
37
|
"format": "prettier . --write",
|
|
44
38
|
"dev": "run-p *:watch",
|
|
45
39
|
"all": "run-s build test"
|
|
46
|
-
}
|
|
47
|
-
|
|
40
|
+
},
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://github.com/formulavize/lezer-fiz.git"
|
|
44
|
+
},
|
|
45
|
+
"author": "anthologen",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"homepage": "https://github.com/formulavize/lezer-fiz#readme"
|
|
48
|
+
}
|