electr 0.0.5 → 0.0.6

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.
@@ -1,34 +0,0 @@
1
- # Grammar of Electr in EBNF
2
-
3
- expression = [`(`], number {[op] expression}, [`)`];
4
-
5
- number = numeric | value | constant | f-call;
6
-
7
- numeric = integer | float;
8
-
9
- integer = ? integer ?;
10
-
11
- float = ? floating point number ?;
12
-
13
- value = ? integer or floating point directly followed by a unit ?;
14
-
15
- constant = `pi`;
16
-
17
- (* function call *)
18
- f-call = f-name, `(`, expression, `)`;
19
-
20
- (* function name *)
21
- f-name = ? regexp: [a-z]{1,} ?;
22
-
23
- (* operators *)
24
- op = `-` | `+` | `/`;
25
-
26
- ## Precisions
27
-
28
- ### Negative numbers
29
-
30
- `-123` is a negative number.<br/>
31
- `- 123` is not.
32
-
33
- This is because the multiplication is implicit, ie `2 - 3` equals `-1` and
34
- `2 -3` equals `-6`.
@@ -1,10 +0,0 @@
1
- Precedence Table
2
- ================
3
-
4
- Operator | Description | Associativity
5
- :-------: | ------------- | --------------
6
- () | Function call | Left
7
- ^ | Exponent | Left
8
- - | Unary minus | Right
9
- * / | Multiplication and division | Left
10
- + - | Addition and substraction | Left