dune 548 B

123456789101112131415161718192021222324252627282930
  1. (library
  2. (name qparser)
  3. (libraries
  4. str
  5. menhirLib
  6. qsp_syntax
  7. sedlex
  8. )
  9. (preprocess (pps
  10. sedlex.ppx
  11. ))
  12. )
  13. (rule
  14. (targets parser_messages.ml)
  15. (deps expression_parser.messages tokens.mly qsp_expression.mly qsp_instruction.mly parser.mly)
  16. (action (with-stdout-to %{targets} (run menhir --base parser.mly --compile-errors %{deps}))))
  17. (menhir
  18. (modules tokens)
  19. (flags --only-tokens)
  20. )
  21. (menhir
  22. (modules tokens parser qsp_instruction qsp_expression)
  23. (flags --table --external-tokens Tokens)
  24. (merge_into parser)
  25. )