spooky/lib/spooky.mli

16 lines
476 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 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 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 15:50:03 +00:00
val generate_json : program -> string
val generate_c : program -> string