e0/lib/dune
Michael Zhang e66b515826
Parsing
2022-03-08 02:52:20 -06:00

17 lines
393 B
Plaintext

(library
(name e0)
(libraries menhirLib)
(preprocess (pps ppx_deriving.show ppx_deriving.ord)))
(ocamllex lexer)
(menhir
(flags --table)
(modules parser))
; https://baturin.org/blog/declarative-parse-error-reporting-with-menhir/
(rule
(targets parser_messages.ml)
(deps parser.messages parser.mly)
(action (with-stdout-to %{targets} (run menhir --compile-errors %{deps}))))