2019-12-20 16:44:03 +01:00
|
|
|
(** Driver for the PascaLIGO parser *)
|
2019-05-12 20:56:22 +00:00
|
|
|
|
2020-01-04 19:49:22 +01:00
|
|
|
module IO =
|
|
|
|
struct
|
|
|
|
let ext = ".ligo"
|
|
|
|
let options = EvalOpt.read "PascaLIGO" ext
|
|
|
|
end
|
|
|
|
|
|
|
|
module ExtParser =
|
|
|
|
struct
|
|
|
|
type ast = AST.t
|
|
|
|
type expr = AST.expr
|
|
|
|
include Parser
|
|
|
|
end
|
|
|
|
|
|
|
|
module ExtParserLog =
|
|
|
|
struct
|
|
|
|
type ast = AST.t
|
|
|
|
include ParserLog
|
|
|
|
end
|
|
|
|
|
|
|
|
module M = ParserUnit.Make (IO)
|
|
|
|
(Lexer.Make (LexToken))
|
|
|
|
(AST)
|
|
|
|
(ExtParser)
|
|
|
|
(ParErr)
|
|
|
|
(ExtParserLog)
|