coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jim Fehrle <jim.fehrle AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Question about Custom Entries
- Date: Tue, 24 Sep 2019 12:05:28 -0700
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jim.fehrle AT gmail.com; spf=Pass smtp.mailfrom=jim.fehrle AT gmail.com; spf=None smtp.helo=postmaster AT mail-io1-f42.google.com
- Ironport-phdr: 9a23:rw63Hh2kcDFn1x/ssmDT+DRfVm0co7zxezQtwd8ZsewfI/ad9pjvdHbS+e9qxAeQG9mCsLQf06GP6PiocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmTSwbal8IRmqogndq8cbjZd/Iast1xXFpWdFdf5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALMTRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTljjoMOTwk/2HNksF/g6xbrxChqRJxwIDafZ+bO+Zlc6zHYd8XX3BMUtpNWyFDBI63cosBD/AGPeZdt4Tzo1oOrR6jDgesGuzvyiVIhnvo0qYn1OkhEwDG3Ak6E9IArnvUrM/1NKMMXu2uw6nIyC/Mb/JS2Tvn9IfIdRUhrOiKULltcsTR0VEiGx3ZgliUs4DoPDOY2v4Qv2Wa7udsT+2ih3AhpgpsuDag3N0shZPMho8NylDL6yF5wIEtKN29UkF7YNqkHIJRtyGdKod6W80iTm52tCogxb0Gvpm7fCcOyJs53RLQd/uHc42Q7hLiUuaePyt4iWp7dL6jgxu+60utx+3mWsWp0VtHrzBJn9bSunwV0hzc8MmHSv9z/ke73jaP0hje6uNFIUAxj6bbJYAuwr4qlpoXr0vOBSD2mEDsg6+XckUo4PSn6+PiYrn+vJ+TK5d0ih3iMqQpgsGwHeM4MhEXU2eH/eS8yabs8FbiQLRKi/02irPWvIrbJcQdvK65AhVa3pwt6xalXH+a14ETmmBCJ1ZYcjqGiZLoMhfAOqPWF/C61natlX9FyvDcOrCpVpfMKz7Nnbf7ebtV5EtVyQ51xtdascEHQoodKe7+Dxei/OfTCQU0ZlTtnrTXTe5l34ZbYlqhR6+UNKSI7A2N7+MrZuiLPcob5Gy7JP8i6Prjy3Q+nA1FJPj77d4scHm9W89eDQCcaHvojM0GFD5T7AU7Re3uzlaFVGwKPirgb+cH/jg+TbmeI8LbXIn02e6O2S66GttdYWUUUl0=
I don't know too much about notations, but perhaps this is not completely useless:
It appears that com doesn't have a constructor to represent calling or referencing another com such as subtract_slowly_body. And presumably that would need its own notation.
You can reproduce the problem with the following simpler example:
Definition foo : com :=[[subtract_slowly_body]].
I suppose defining a notation like "'call' x" might be a way to get around parsing limitations.
--Jim
On Tue, Sep 24, 2019 at 4:05 AM Benjamin C. Pierce <bcpierce AT cis.upenn.edu> wrote:
Any suggestions from the community on how to make custom entries work better here would be greatly appreciated. We would like to use the new features in the next release of Software Foundations (for which the timeline is rather tight), but right now we are blocked on several things that appear to be either inconveniently rigid in the design or not working as documented. :-(
Thanks!
- Benjamin
> On Sep 22, 2019, at 1:33 PM, Konstantinos Kallas <kallas AT seas.upenn.edu> wrote:
>
> Hi all,
>
> We are trying to define the syntax of a simple imperative language using the Custom entries feature but we are encountering some problems. Some of the problems might not be related to custom entries per se, but might be caused by some misuse of the notation feature (due to my lack of understanding of parsing in Coq).
>
> I have attached a file that contains the definitions, some examples that work as expected, and some examples where the parser gets confused (that are annotated with "Question:" comments).
>
> It would be great if someone could give us some hints about what could be the problem or how should we go about solving it.
>
> Thanks,
> Konstantinos
- [Coq-Club] Question about Custom Entries, Konstantinos Kallas, 09/22/2019
- Re: [Coq-Club] Question about Custom Entries, Benjamin C. Pierce, 09/24/2019
- Re: [Coq-Club] Question about Custom Entries, Jim Fehrle, 09/24/2019
- Re: [Coq-Club] Question about Custom Entries, Jasper Hugunin, 09/24/2019
- Re: [Coq-Club] Question about Custom Entries, Konstantinos Kallas, 09/24/2019
- Re: [Coq-Club] Question about Custom Entries, Konstantinos Kallas, 09/24/2019
- Re: [Coq-Club] Question about Custom Entries, Jasper Hugunin, 09/24/2019
- Re: [Coq-Club] Question about Custom Entries, Jim Fehrle, 09/24/2019
- Re: [Coq-Club] Question about Custom Entries, Benjamin C. Pierce, 09/24/2019
Archive powered by MHonArc 2.6.18.