Git Product home page Git Product logo

Comments (3)

joelburget avatar joelburget commented on June 18, 2024 1

Wonderful. Thank you!

from coq-serapi.

ejgallego avatar ejgallego commented on June 18, 2024

Hi @joelburget indeed there are two problems here:

  1. Coq's Prelude is not loaded by the web version. [hence the parsing error].
  2. The documentation of the protocol itself is poor.

Point 1 should be solved the next time I update the web build, as it was due to a limitation of the old library pre-loading API that was solved in 8.8. The workaround is to do (Add () "From Coq Require Import Prelude.") first.

Regarding point 2, documentation for the protocol is indeed incomplete as a major revision is expected for Coq 8.9. The new protocol revision will indeed pretty well documented and expected to be "stable", so I didn't bother to write a lot about the current one.

I'll try to improve the README tho. The command line help for sertop is a bit better in this regard. Anyways, most of the relevant information can be extracted from the mli file:

type answer_kind =
    Ack
  | Completed
  | Added     of Stateid.t * Loc.t * [`NewTip | `Unfocus of Stateid.t ]
  | Canceled  of Stateid.t list
  | ObjList   of coq_object list
  | CoqExn    of Loc.t option * (Stateid.t * Stateid.t) option * Printexc.raw_backtrace * exn

type cmd =
  | Add        of add_opts  * string
  | Cancel     of Stateid.t list
  | Exec       of Stateid.t
  | Query      of query_opt * query_cmd
  | Print      of print_opt * coq_object

The Help command is also supported and should provide some help, but it is sadly outdated.

from coq-serapi.

ejgallego avatar ejgallego commented on June 18, 2024

Ok the demo is updated, most problems should be fixed. I'll also push a release build to jscoq-builds under the proper branch.

from coq-serapi.

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.