You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> This applies to: `=`/`==`/`===`, `!`/`!=`/`!==`, `|`/`||`, `&`/`&&`, etc.
247
256
248
257
249
-
250
258
## Extend Compiler
251
259
252
260
### `operator(op, handler)`
253
261
262
+
Register evaluator for an operator.
263
+
254
264
```js
255
265
import { operator, compile } from'subscript'
256
266
@@ -307,6 +317,27 @@ import {
307
317
} from'subscript'
308
318
```
309
319
320
+
## Syntax Tree
321
+
322
+
AST has simplified lispy tree structure (inspired by [frisk](https://ghub.io/frisk) / [nisp](https://github.com/ysmood/nisp)), opposed to [ESTree](https://github.com/estree/estree):
323
+
324
+
* portable to any language, not limited to JS;
325
+
* reflects execution sequence, rather than code layout;
326
+
* has minimal overhead, directly maps to operators;
0 commit comments