diff --git a/README.md b/README.md index d5d4e5a..024fd23 100644 --- a/README.md +++ b/README.md @@ -101,10 +101,11 @@ fn({min: 5}) // min*60 + "sec" == "300sec" #### Node Kinds -* `[∘, a]` - unary prefix or postfix operator -* `[∘, a, b]` - binary operator -* `[∘, a, b, c]` n-ary operator -* `[, a]` - literal value +* `[⚬, a]` - unary prefix or postfix operator `⚬a` +* `[⚬, a, b]` - binary operator `a ⚬ b` +* `[⚬, a, b, c]` n-ary operator `a ⚬ b ⚬ c` +* `[, a]` - literal value `'a'` +* `[⦅⦆, a, b]` - group operator `a⦅b⦆` * `a` - variable (from scope) @@ -115,7 +116,7 @@ _Subscript_ provides pluggable language [features](./features) and API to custom * `unary(str, precedence, postfix=false)` − register unary operator, either prefix or postfix. * `binary(str, precedence, rightAssoc=false)` − register binary operator, optionally right-associative. * `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. +* `group(str, precedence, prefix=false)` - register a group, like `[]`, `{}`, `()` etc, optionally parse prefix id eg. `a[]`, `a{}`. * `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 => value)` − register evaluator for an operator. Callback takes node arguments and returns evaluator function.