uann/ocaml_yacc/parser.mli

18 lines
224 B
OCaml
Raw Normal View History

2024-03-25 00:32:19 +08:00
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