Skip to content

Commit 8ddb4a4

Browse files
committed
Final touch
1 parent 3c989ce commit 8ddb4a4

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,21 @@ fn({ a: 1, b: 3 }) // 7
1919

2020
## Presets
2121

22-
**subscript** — common expressions:<br>
22+
### subscript
23+
24+
Common expressions:
25+
2326
`a.b a[b] a(b) + - * / % < > <= >= == != ! && || ~ & | ^ << >> ++ -- = += -= *= /=`
2427
```js
2528
import subscript from 'subscript'
2629

2730
subscript('a.b + c * 2')({ a: { b: 1 }, c: 3 }) // 7
2831
```
2932

30-
**justin** — + JSON, arrows, templates:<br>
33+
### justin
34+
35+
JSON + expressions + templates + arrows:
36+
3137
`` 'str' 0x 0b === !== ** ?? >>> ?. ? : => ... [] {} ` // /**/ true false null ``
3238
```js
3339
import justin from 'subscript/justin.js'
@@ -36,7 +42,10 @@ justin('{ x: a?.b ?? 0, y: [1, ...rest] }')({ a: null, rest: [2, 3] })
3642
// { x: 0, y: [1, 2, 3] }
3743
```
3844

39-
**jessie** — + statements, functions:<br>
45+
### jessie
46+
47+
JSON + expressions + statements, functions:
48+
4049
`if else for while do let const var function class return throw try catch switch import export /regex/`
4150
```js
4251
import jessie from 'subscript/jessie.js'
@@ -153,7 +162,7 @@ stringify(['+', ['*', 'min', [,60]], [,'sec']])
153162
// 'min * 60 + "sec"'
154163
```
155164

156-
## Bundle
165+
### Bundle
157166

158167
Create custom dialect as single file:
159168

0 commit comments

Comments
 (0)