This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
compilation/flap/src/fopix/fopix.ml
2023-10-04 15:40:22 +02:00

32 lines
561 B
OCaml

(** The fopix programming language. *)
module AST = FopixAST
let name = "fopix"
type ast = FopixAST.t
let parse lexer_init input =
SyntacticAnalysis.process
~lexer_init
~lexer_fun:FopixLexer.token
~parser_fun:FopixParser.program
~input
let parse_filename filename =
parse Lexing.from_channel (open_in filename)
let extension =
".fopix"
let executable_format =
false
let parse_string =
parse Lexing.from_string
let print_ast ast =
FopixPrettyPrinter.(to_string program ast)
include FopixInterpreter
include FopixTypechecker