summaryrefslogtreecommitdiff
path: root/adder.lg
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-12-27 21:21:54 +1300
committerDavid Phillips <david@sighup.nz>2017-12-27 21:21:54 +1300
commitf23abfdde683aee4b808f2795af1a1418125156c (patch)
treef6faf313a32395b41ca4db628ef2eb4d4d950c1f /adder.lg
downloadhence-f23abfdde683aee4b808f2795af1a1418125156c.tar.xz
Initual dump of partial work on parser and data structure
Diffstat (limited to 'adder.lg')
-rw-r--r--adder.lg9
1 files changed, 9 insertions, 0 deletions
diff --git a/adder.lg b/adder.lg
new file mode 100644
index 0000000..a883081
--- /dev/null
+++ b/adder.lg
@@ -0,0 +1,9 @@
+module adder
+
+node input a
+node input b
+node output r0
+node output r1
+
+expr r0: xor a b
+expr r1: and a b