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 16, 2024
1 parent 62d5bbd commit 83ab4f1
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,26 @@ operator('||=', (a, b) => {
})
```
Common syntax features are defined under [`./feature/*`](./feature):
, [`access`](./feature/access.js) - `a.b`, `a[b]`, [`add`](./feature/add.js) - `-a`, `+a`, `a+b`, `a-b`, `a-=b`, `a+=b`, [`array`](./feature/array.js) - `[a, [b, c]]`, [`assign`](./feature/assign.js) - `a=b`, [`bitwise`](./feature/bitwise.js) - `~a`, `a|b`, `a&b`, `a^b`, [`bool`](./feature/bool.js) - `true`, `false`, [`call`](./feature/call.js) - `a(b, c+d)`, [`comment`](./feature/comment.js) - `// a`, `/* b */`, [`compare`](./feature/compare.js) - `a==b`, `a!=b`, `a>=b`, `a<=b`, `a>b`, `a<b`, [`group`](./feature/group) -`(a, (b, c));`, [`increment`](./feature/increment.js) - `a++`, `a--`, `--a`, `++a`, [`logic`](./feature/logic.js) - `!a`, `a&&b`, `a||b`, [`mult`](./feature/mult.js) - `a/b`, `a*b`, `a%b`, `a*=b`, `a/=b`, `a%=b`, [`number`](./feature/number.js) - `1.23`, `4e-5`, [`object`](./feature/object.js) - `{a: {"b": c}}`, [`string`](./feature/string.js) - `'abc'`, `"def"`, [`ternary`](./feature/ternary.js) - `a ? b : c`
Common syntax features are defined under [`./feature/*`](./feature) and can be used as language building blocks:
* [`access`](./feature/access.js) - `a.b`, `a[b]`
* [`add`](./feature/add.js) - `-a`, `+a`, `a+b`, `a-b`, `a-=b`, `a+=b`
* [`array`](./feature/array.js) - `[a, [b, c]]`
* [`assign`](./feature/assign.js) - `a=b`
* [`bitwise`](./feature/bitwise.js) - `~a`, `a|b`, `a&b`, `a^b`
* [`bool`](./feature/bool.js) - `true`, `false`
* [`call`](./feature/call.js) - `a(b, c+d)`
* [`comment`](./feature/comment.js) - `// a`, `/* b */`
* [`compare`](./feature/compare.js) - `a==b`, `a!=b`, `a>=b`, `a<=b`, `a>b`, `a<b`
* [`group`](./feature/group) -`(a, (b, c));`
* [`increment`](./feature/increment.js) - `a++`, `a--`, `--a`, `++a`
* [`logic`](./feature/logic.js) - `!a`, `a&&b`, `a||b`
* [`mult`](./feature/mult.js) - `a/b`, `a*b`, `a%b`, `a*=b`, `a/=b`, `a%=b`
* [`number`](./feature/number.js) - `1.23`, `4e-5`
* [`object`](./feature/object.js) - `{a: {"b": c}}`
* [`string`](./feature/string.js) - `'abc'`, `"def"`
* [`ternary`](./feature/ternary.js) - `a ? b : c`
Expand Down

0 comments on commit 83ab4f1

Please sign in to comment.