Reorganized basically everything, making way for the compiler
This commit is contained in:
16
parser/parser.ml
Normal file
16
parser/parser.ml
Normal file
@@ -0,0 +1,16 @@
|
||||
let parse_one lb = Parse.prog (Lex.read) lb
|
||||
|
||||
let parse lb =
|
||||
let rec helper () =
|
||||
match parse_one lb with
|
||||
| None -> []
|
||||
| Some (t) -> t :: helper ()
|
||||
in
|
||||
helper ()
|
||||
|
||||
let parse_str s =
|
||||
parse (Lexing.from_string s)
|
||||
|
||||
|
||||
module Ast = Ast
|
||||
module Parse = Parse
|
||||
Reference in New Issue
Block a user