diff options
| author | David Phillips <david@sighup.nz> | 2018-08-02 00:32:59 +1200 | 
|---|---|---|
| committer | David Phillips <david@sighup.nz> | 2018-08-02 00:32:59 +1200 | 
| commit | 0b35912033dfa8984629c760097ce6691a7e5816 (patch) | |
| tree | 4733e5138327ea4e32e93be75e45ebe28a3aa2fa /sample | |
| parent | 0ddd53b66c1069ebab588285e3cbc894816de7ad (diff) | |
| download | hence-0b35912033dfa8984629c760097ce6691a7e5816.tar.xz | |
lex,parse: Add nand, nor
Also update sample script to avoid idents colliding with keywords
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/gates.hence | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/sample/gates.hence b/sample/gates.hence index 6cd6aae..d004391 100644 --- a/sample/gates.hence +++ b/sample/gates.hence @@ -3,10 +3,10 @@ module gates  input a  input b -expr and: and a b -expr or: or a b -expr nand: nand a b -expr nor: nor a b -expr xor: xor a b +expr And: and a b +expr Or: or a b +expr Nand: nand a b +expr Nor: nor a b +expr Xor: xor a b  expr nota: not a  expr notb: not b  | 
