Reorganized project

This commit is contained in:
2025-12-08 22:25:36 +03:00
parent 8e980a8f1b
commit adbf083c3d
15 changed files with 621 additions and 0 deletions

16
lib/parser/parser.ml Normal file
View 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