-
Notifications
You must be signed in to change notification settings - Fork 646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document the *.glob file format #4834
Comments
Comment author: @siegebell Please document the *.glob file format. |
I think the |
Maybe then edit the issue title and remove the |
I am not opposed to someone writing the documentation for |
OK but what I would like to understand is what you meant by the "good first issue" label: is it a good first issue to document the glob format or to export a query API for it? |
To document the Writing a query API requires redesign of |
Thanks for the clarification. |
It would be very nice to have a query API for glob files. Emilio, do you already have some of that information in SerAPI? |
@cpitclaudel there is some information indeed that can be already accessed, the rest should be easy. glob is slightly awkward in the sense that it is fully ad-hoc. I am working on a new setup that should provide pretty good query capabilities [and my schedule is finally freeing so expect to do progress soon], but meanwhile, if you open an issue for SerAPI I'm sure we can easily add many things. Additionally there is hope we get someone to work on improving the A particular problem to take into account is that Coq tends to store the same information in different layers, and with different semantics; usually you have at least:
glob information is not derived from any of those, but globally dumped by interleaving calls in different codepaths. |
So what is the proposed solution for doc2html? Since tools using .glob already exist I am not sure an API would be appreciated. |
Recent Github activity points me to this issue report, which I hadn't seen before. My own coq2html tool would very much benefit from a specification of the .glob file format, kept up to date as it evolves. I'm not interested in an API, for two reasons. First, the .glob file format is line-oriented and trivial to parse using regexps or ocamllex lexers. What's not easy is to understand the meaning of the various fields. Second, coq2html today is a single source file with zero dependencies, and I'd rather keep it like this than link with a big API and its boatload of dependencies. |
Hi @xavierleroy , see #14966 ; could you have a look and see if that would suffice?
Actually one of the reasons this format has not evolved at all is that the current implementation and format is a mess; moreover, there is no way to use the type system for example to be sure that Specifying the format a an OCaml data type is, IMHO, superior in every possible way [and allows to have a clear upgrade path, etc...] Moreover, good semantic information cannot be just encoded this way, UIANM (*) But you are correct that documenting the format takes a few mins and it is benefitial for users of it. IMVHO the "single source file with zero deps" argument is a bit weak these days too, it takes 3 lines to do a build definition such as
and you get a lot of other benefits such as integration with dune-release, etc... (*) Actually we almost got ready a replacement for |
Note: the issue was created automatically with bugzilla2github tool
Original bug ID: BZ#4834
From: @siegebell
Reported version: unspecified
CC: coq-bugs-redist@lists.gforge.inria.fr
The text was updated successfully, but these errors were encountered: