ligo/src/passes/1-parser/cameligo/LexerMain.ml
Christian Rinderknecht a9b3d295fd Fixes to the lexer and the parser API.
* 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.
2020-01-31 12:31:25 +01:00

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