Git Product home page Git Product logo

Comments (2)

xavierleroy avatar xavierleroy commented on June 18, 2024

The reason we need the latest Menhir version is actually not for cparser/Parser.{vy,v} (the Coq-verified parser) but for cparser/pre_parser.{mly,mli,.ml} (the "pre-parser" that is responsible for token disambiguation and error messages). The latest Menhir adds sophisticated support for reporting and explaining syntax errors, which the CompCert trunk takes great advantage.

Putting generated files in a Git repo is never a good thing to do. We did it for a while with cparser/Parser.v when Menhir's Coq output mode was brand new, but it caused much problems with merges and with the configure/Makefile logic.

For Linux and MacOS X, the OPAM package manager makes it extremely easy to get up-to-date versions of OCaml and Menhir. Install OPAM (http://opam.ocaml.org/doc/Install.html), then do opam switch 4.02.3 then opam install menhir, and you're done.

For MS Windows, the Cygwin packages for OCaml and Menhir are too old, so installation from sources is needed.

from compcert.

xavierleroy avatar xavierleroy commented on June 18, 2024

The AbsInt folks mention that their customers in the critical software industry frown on generated files being included in a source distribution. (It's not cricket with respect to certification procedures.) So, we decided not to include Menhir-generated files in the repository. Sorry for the inconvenience.

from compcert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.