logic 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/logic_parser.treetop +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f481073e7764c17e89d4b3dc6c815a4f80a6c5bbe1127e7c1eb6aed715a772cf
4
- data.tar.gz: d376cb1038e3d591a8f08f7f729cac2cb63212bf253b42923391e594dc1b6f8a
3
+ metadata.gz: d89fae3b91c6e322df581dc3a0206d81f61beb9f33dd0f56eb18b62b3a5e5c65
4
+ data.tar.gz: ca6a666a5ee241522c7f096b10b455c495f3a6bf216f3abbec9d390e942a1583
5
5
  SHA512:
6
- metadata.gz: 9e5151ce6d38b0b049d8b10fe0daa4aaf35d8e10e8dd138239c64f76ede097fd80f724c9fd69c54a4cd628f4484465903fe2164c83555ef650ef4f7b7a999591
7
- data.tar.gz: 155670f39c0a88e89fc7be17ac12338f984c89a4aede20af26d4587bd744967a4f18090c939ac3a30e2a3576bc35695c1a077844ed3799c747cdf8e8b3416d04
6
+ metadata.gz: 5a2d1fe22d5713bc31c1723fa95a5d555b152726fed8eea3b1014d62f87b96a42ce211d56023e0286a7d006c6c81319a24f538fd03100f6d5a94fcde2017a062
7
+ data.tar.gz: 3324822b82cd10c1c2ec212edf81660a31611c79f0e84b8c97c0cda2525f8481732e11225d654f682503d9836580b1d39c9792b7c1595460d0931206db64ef63
@@ -30,7 +30,7 @@ grammar Logic
30
30
  end
31
31
 
32
32
  rule negation
33
- ('not' space / '!' space?) operand:primitive <Negation>
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Ash