06_test_Terms.ini 260 Bytes
Newer Older
1
2
3
[match:term]
M1: "2 * 4"
M2: "2 / 4"
4
5
6
7
8
M3: "(2 * 4)(4 / 4)"
M4: "(2 + 4) * (2 - 4)"
M5: "(a + b)(a - b)"
M6: "4x"
M7: "-2x"
9
10
11
12
13
14

[ast:term]

[fail:term]


15
[match:mul]
16
17
M1:  "2 * 4"

18
[ast:mul]
19

20
[fail:mul]
21
22


23
[match:div]
24
25
26
M1: "2 / 4"
M2: "-x / 7"

27
[ast:div]
28

29
[fail:div]
30