logic 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logic_parser.treetop +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d89fae3b91c6e322df581dc3a0206d81f61beb9f33dd0f56eb18b62b3a5e5c65
|
4
|
+
data.tar.gz: ca6a666a5ee241522c7f096b10b455c495f3a6bf216f3abbec9d390e942a1583
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a2d1fe22d5713bc31c1723fa95a5d555b152726fed8eea3b1014d62f87b96a42ce211d56023e0286a7d006c6c81319a24f538fd03100f6d5a94fcde2017a062
|
7
|
+
data.tar.gz: 3324822b82cd10c1c2ec212edf81660a31611c79f0e84b8c97c0cda2525f8481732e11225d654f682503d9836580b1d39c9792b7c1595460d0931206db64ef63
|
data/lib/logic_parser.treetop
CHANGED
@@ -30,7 +30,7 @@ grammar Logic
|
|
30
30
|
end
|
31
31
|
|
32
32
|
rule negation
|
33
|
-
(
|
33
|
+
(not space / '!' space?) operand:primitive <Negation>
|
34
34
|
end
|
35
35
|
|
36
36
|
rule condition
|
@@ -45,6 +45,10 @@ grammar Logic
|
|
45
45
|
[aA] [nN] [dD]
|
46
46
|
end
|
47
47
|
|
48
|
+
rule not
|
49
|
+
[nN] [oO] [tT]
|
50
|
+
end
|
51
|
+
|
48
52
|
rule or
|
49
53
|
[oO] [rR]
|
50
54
|
end
|