spooky/lib/spooky.mli

20 lines
697 B
OCaml
Raw Normal View History

2026-04-29 15:50:03 +00:00
module Ast = Ast
module Lexer = Lexer
module Parser = Parser
module Typechecker = Typechecker
module Generator_json = Generator_json
module Generator_c = Generator_c
2026-04-29 16:15:08 +00:00
module Module_system = Module_system
2026-04-29 15:25:15 +00:00
2026-04-29 15:50:03 +00:00
type program = Ast.program
2026-04-29 15:25:15 +00:00
val parse_string : string -> (program, string) result
2026-04-29 16:15:08 +00:00
val load_source_with_imports : string -> (string, string) result
val parse_file : string -> (program, string) result
2026-04-29 15:50:03 +00:00
val string_of_program : program -> string
2026-04-29 15:25:15 +00:00
val type_check : program -> (unit, string) result
val parse_and_type_check : string -> (program, string) result
2026-04-29 16:15:08 +00:00
val parse_and_type_check_file : string -> (program, string) result
2026-04-29 15:50:03 +00:00
val generate_json : program -> string
val generate_c : program -> string