Skip to content

Commit

Permalink
Update main.ml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ailrun authored Dec 26, 2023
1 parent 2f65cf1 commit 06a6dc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions driver/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ let parse text =
which we then feed into the parser. *)
let rec loop lexbuf = lazy (Buf_cons (Lexer.read lexbuf, loop lexbuf)) in
let token_stream = loop (Lexing.from_string text) in
let parse : int -> buffer -> Parser.Cst.obj parse_result = Parser.prog in
match parse 50 token_stream with
match Parser.prog 50 token_stream with
| Parsed_pr (e, _) -> Some e
| Fail_pr_full (_, _) -> None
| _ -> None

0 comments on commit 06a6dc8

Please sign in to comment.