subscript 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +19 -17
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -34,20 +34,22 @@ _Subscript_ has [2kb](https://npmfs.com/package/subscript/6.0.0/subscript.min.js
34
34
 
35
35
  ## Design
36
36
 
37
- Default operators (precedence order):
38
-
39
- * `++ --` unary postfix
40
- * `! + - ++ --` unary prefix
41
- * `* / %`
42
- * `+ -`
43
- * `<< >> >>>`
44
- * `< <= > >=`
45
- * `== !=`
46
- * `&`
47
- * `^`
48
- * `|`
49
- * `&&`
50
- * `||`
37
+ Default operators (same as JS precedence order):
38
+
39
+ * `( a, b, c )`
40
+ * `a . b`, `a [ b ]`, `a ( b, c )`
41
+ * `a++`, `a--` unary postfix
42
+ * `!a`, `+a`, `-a`, `++a`, `--a` unary prefix
43
+ * `a * b`, `a / b`, `a % b`
44
+ * `a + b`, `a - b`
45
+ * `a << b`, `a >>b`, `a >>>b`
46
+ * `a < b`, `a <= b`, `a >b`, `a >=b`
47
+ * `a == b`, `a != b`
48
+ * `a & b`
49
+ * `a ^ b`
50
+ * `a | b`
51
+ * `a && b`
52
+ * `a || b`
51
53
 
52
54
  Default literals:
53
55
 
@@ -115,10 +117,10 @@ It extends _subscript_ with:
115
117
  <!-- + strings interpolation -->
116
118
 
117
119
  ```js
118
- import { parse, evaluate } from 'subscript/justin.js'
120
+ import jstin from 'subscript/justin.js'
119
121
 
120
- let xy = parse('{ x: 1, "y": 2+2 }["x"]') // ['[', {x:1, y: ['+', 2, 2]}, '@x']
121
- evaluate(xy) // 1
122
+ let xy = jstin('{ x: 1, "y": 2+2 }["x"]')
123
+ xy() // 1
122
124
  ```
123
125
 
124
126
  <!--
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "subscript",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Microlanguage with common syntax for JS/C++/Python/Rust",
5
5
  "main": "subscript.js",
6
6
  "type": "module",