]> git.kianting.info Git - uann/blobdiff - ocaml_yacc/parser.mli
add ocaml EoC ast viewet
[uann] / ocaml_yacc / parser.mli
diff --git a/ocaml_yacc/parser.mli b/ocaml_yacc/parser.mli
new file mode 100644 (file)
index 0000000..2a8b331
--- /dev/null
@@ -0,0 +1,17 @@
+type token =
+  | INT of (string)
+  | ID of (string)
+  | PLUS
+  | MINUS
+  | TIMES
+  | DIV
+  | LPAREN
+  | RPAREN
+  | ASSIGN
+  | IN
+  | IMPLY
+  | FUNC
+  | EOL
+
+val main :
+  (Lexing.lexbuf  -> token) -> Lexing.lexbuf -> Ast.ast