a9b3d295fd
* The parameter for logging the lexer is now mandatory. * The ParserAPI now thread the logging of the lexer. * LexerMain.ml now call the logging of the lexers (CameLIGO, ReasonLIGO). * Fixed bug in lexer when a line comment ends with EOF.
15 lines
284 B
OCaml
15 lines
284 B
OCaml
(** Driver for the CameLIGO lexer *)
|
|
|
|
module IO =
|
|
struct
|
|
let ext = ".mligo"
|
|
let options = EvalOpt.read "CameLIGO" ext
|
|
end
|
|
|
|
module M = LexerUnit.Make (IO) (Lexer.Make (LexToken))
|
|
|
|
let () =
|
|
match M.trace () with
|
|
Stdlib.Ok () -> ()
|
|
| Error msg -> Utils.highlight msg
|