Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Feb 17, 2024
1 parent 99abcdb commit cc45d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ _Subscript_ provides pluggable language [features](./features) and API to custom
* `nary(str, precedence, allowSkip=false)` − register n-ary (sequence) operator, optionally allowing skipping args.
* `group(str, precedence, notEmpty=false)` - register a group, like `[]`, `{}`, `()` etc, optionally prohibit empty group.
* `token(str, precedence, lnode => node)` − register custom token or literal. Callback takes left-side node and returns complete expression node.
* `operator(str, (a, b) => ctx => result)` − register evaluator for an operator. Callback takes node arguments and returns evaluator function.
* `operator(str, (a, b) => ctx => value)` − register evaluator for an operator. Callback takes node arguments and returns evaluator function.

```js
import script, { compile, operator, unary, binary, token } from './subscript.js'
Expand Down

0 comments on commit cc45d05

Please sign in to comment.