about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Ast.ml8
-rw-r--r--lib/dune9
2 files changed, 17 insertions, 0 deletions
diff --git a/lib/Ast.ml b/lib/Ast.ml
new file mode 100644
index 0000000..4ca7899
--- /dev/null
+++ b/lib/Ast.ml
@@ -0,0 +1,8 @@
+type expr' =
+  | Var of string
+| Bool
+| True
+| False
+| BoolElim of string
+
+type expr = expr' Asai.Range.located
\ No newline at end of file
diff --git a/lib/dune b/lib/dune
new file mode 100644
index 0000000..a844074
--- /dev/null
+++ b/lib/dune
@@ -0,0 +1,9 @@
+(menhir
+ (flags --explain)
+ (modules Parser))
+
+; (ocamllex Lexer)
+
+(library
+ (name toytt)
+ (libraries asai))