Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Question about writing plugins/vercular commands extension

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Question about writing plugins/vercular commands extension


Chronological Thread 
  • From: Zoe Paraskevopoulou <zoe.paraskevopoulou AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Question about writing plugins/vercular commands extension
  • Date: Fri, 31 Jan 2020 13:44:23 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=zoe.paraskevopoulou AT gmail.com; spf=Pass smtp.mailfrom=zoe.paraskevopoulou AT gmail.com; spf=None smtp.helo=postmaster AT mail-qt1-f196.google.com
  • Ironport-phdr: 9a23:XAQIchTVWGZdRM/u7FRzEp6Z8tpsv+yvbD5Q0YIujvd0So/mwa6ybBGN2/xhgRfzUJnB7Loc0qyK6vymBTRLuM7e+DBaKdoQDkRD0Z1X1yUbQ+e9QXXhK/DrayFoVO9jb3RCu0+BDE5OBczlbEfTqHDhpRQbGxH4KBYnbr+tQt2agMu4zf299IPOaAtUmjW9falyLBKrpgnNq8Uam4RvJrs+xxfTrXZEZ+tayX50KV+Rgh3w4tu88IN5/ylfpv4s+dRMXbnmc6g9ULdVECkoP2cp6cPxqBLNVxGP5nwSUmUXlhpHHQ3I5wzkU5nyryX3qPNz1DGVMsPqQ780Xy+i77pwRx/zlCgHLT85/3rJhcF2kalWvQiupx17w47TfYGVKP9zdb7TcN8GWWZMWNtaWipcCY2+coQPFfIMM+ZEoIbyulUAoxW+CxeuC+3szTFFnWX50bE/0+k7EQHKwA4tEtQTu3rUttX1M6ISXPi2w6nP0zrIculY1i3n6IfSaRAhou+DXax3ccrJzkkvCgfFjlKNqYf4OD6U1+MNvHaB4+p4T+2vkXQoqxpyojex2McsjZHJhoUIylDA8iV53Z04JdK9SEFhYN6kFIFcuD2dN4tzW84vRXxjtig9yr0Do5G7fS4KxYwoxx7ed/yHc5WI7Qn5WOmNJjd4gXRoc6+8iRaq6UWs1PHwW82u3FtJridJiMTAu3ER2xDJ98SKTvpw8l+81TuAywzf8PxILEMomabBNZIszaI8moANvUnNESL7nlj9grWMeUU+4Oeo7vzqYrX4qZ+YMI95kgT+Pb4vmsy7GOg4KxQOU3WC9eSyybHu+Uz0TK9Fjv0xlanZv5TaKtoBqqGlBA9V154v6xe5Dzi4zNQVhWcLIE5BdR6djIXkO0vCLO35APujmVigjTNmyvHeMr3kGJrNL3zDkLn7fbZ67k5R0AsyzddB6J5OErEOOujzVVXqtNzbEBA5LQu0w/7gCNVg0oMeXn+PD7SWMKPXq1CI5+YvL/OQa48SvTbxM+Il6OL2jX8lhV8derGk0ocQaHChB/hpP0GZYWf3jdoaCmcLvg8+TPTwh1GYUD5TYWyyX6Mm6T0hBoKmF9SLeof4i7uYmSy/A5d+Z2ZcC1nKH227WZ+DXqI+by/aGsZ7mycHWKamU4g80Raz/FvozLchNuPO8zYbuIzkzN9o4+rOvR43/D1wSc+a1jfeHClPgmoUSmpuj+hEqktnxwLbiPkqs7ljDdVWoshxfEI/PJ/YwfZ9DomrCA3Ed9aNDl2hR4f/WGxjfpcK29YLJn1FNZCigxTEhXT4BrYUk/mSGMVx/PuNgT7+IMFyz3uA364k3QF/Hpl/cFa+j6s6zDD9QpbTmhzAxamvfKUYmiXK8TXbwA==

Yes, that’s exactly what I did and I found that the import that was missing is Pcoq.Prim! In particular, int() didn’t work, but natural() did work for me and it’s better for my purpose. After looking at Pcoq source code I found that integer() works too.  

Thank you all, 
Zoe

On Jan 31, 2020, at 1:21 PM, Talia Ringer <tringer AT cs.washington.edu> wrote:

In that case, if you suspect it's an import, perhaps try copying the imports from the 8.9 version of the file you linked to: https://github.com/coq/coq/blob/v8.9/plugins/ltac/g_ltac.ml4

Perhaps something moved between 8.9 and 8.10? Just a guess, again. For example, the old file has:

open Vernac_classifier

while the new file does not.

On Fri, Jan 31, 2020 at 10:08 AM Zoe Paraskevopoulou <zoe.paraskevopoulou AT gmail.com> wrote:


On Jan 31, 2020, at 12:55 PM, Zoe Paraskevopoulou <zoe.paraskevopoulou AT gmail.com> wrote:

Ah, that’s an interesting observation. My file is an .ml4 file (which seems deprecated for this purpose, but I never knew until now) and the syntax is exactly the syntax that I use in the file (in fact the {} syntax gives me a syntax error in .ml4). But I’ll try to change it to .mlg and see if that works. 
My file is an .ml4 file (which seems deprecated for this purpose, but I never knew until now) and the syntax is exactly the syntax that I use in the file (in fact the {} syntax gives me a syntax error in .ml4).


Actually, it seems that for the version of Coq that we’re using (8.9.1) there’s support for .ml4 files only. 





Archive powered by MHonArc 2.6.18.

Top of Page