Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Building an ml plugin for Coq 8.5pl2

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Building an ml plugin for Coq 8.5pl2


Chronological Thread 
  • From: Kenneth Roe <kendroe AT hotmail.com>
  • To: Emilio Jesús Gallego Arias <e AT x80.org>, "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Building an ml plugin for Coq 8.5pl2
  • Date: Mon, 11 Sep 2017 03:04:59 +0000
  • Accept-language: en-US
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=kendroe AT hotmail.com; spf=Pass smtp.mailfrom=kendroe AT hotmail.com; spf=Pass smtp.helo=postmaster AT NAM01-SN1-obe.outbound.protection.outlook.com
  • Ironport-phdr: 9a23:N4b//hS93GoP6yMH4tTm14I/VNpsv+yvbD5Q0YIujvd0So/mwa64ZRKN2/xhgRfzUJnB7Loc0qyN7PCmBDRIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnZBUin4YCdwJ+D0Hbnwgt8lzNed8pnXbgpPsxOnYLppZEG7hRWB7o8Rm4Q0bu57wRzQ53BMZu5+xGVyJFvVkQy2rpO7+4cm+CBNsdog8dRBWOP0ZfJrY6ZfCWEFPmYz6dHr/SPEQEPb5XYaXn8RnzJIBBTA5RD+GJz2t32p5aJGxCCGMJiuHvgPUjO44vIzRQ==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Actually, I figured out this error.  It turns out the files in the .mllib file need to be ordered by dependencies.

         - Ken

From: coq-club-request AT inria.fr <coq-club-request AT inria.fr> on behalf of Kenneth Roe <kendroe AT hotmail.com>
Sent: Sunday, September 10, 2017 7:34 PM
To: Emilio Jesús Gallego Arias
Cc: Coq-Club
Subject: Re: [Coq-Club] Building an ml plugin for Coq 8.5pl2
 
Thanks.  I'm getting a bit further.  I created an AdvancedRewritePlugin.mllib with the following contents:

Builtin

Cache

Rcontext

Crewrite

Derive

Disc

Env

Exp

ExpIntern

Getfile

Inner

Intern

Kbrewrite

Lex

Match

Mylist

Parser

PrettyPrint

Rule_app

Rsubst

Rtrace

Rtype

Rtrie

Advanced_rewrite


I added it to my _CoqProject.  I still get the following error:

"coqc"  -q  -R "theories" AdvancedRewrite -I "src"   theories/advancedRewrite.v

File "./theories/advancedRewrite.v", line 1, characters 0-42:

Error: while loading src/AdvancedRewritePlugin.cmxs:

no implementation available for Rtype

make[1]: *** [theories/advancedRewrite.vo] Error 1

make: *** [plugin] Error 2


This error appears when I compile the file "theories/AdvancedRewrite.v" which contains one file:

Declare ML Module "AdvancedRewritePlugin".


How do I fix this error?

               - Ken


From: Emilio Jesús Gallego Arias <e AT x80.org>
Sent: Sunday, September 10, 2017 4:50 PM
To: Kenneth Roe
Cc: Coq-Club
Subject: Re: [Coq-Club] Building an ml plugin for Coq 8.5pl2
 
e AT x80.org (Emilio Jesús Gallego Arias) writes:

> Assuming you are using Coq 8.7 [which you should be], I suggest you add
> a file to _CoqProject:
>
> src/advanced_rewrite_plugin.mlpack

Oh, I missed the Coq version in the Subject. Then, you may want to use a
mllib file:

> src/advanced_rewrite_plugin.mllib

and list the modules your plugin will need.

E.



Archive powered by MHonArc 2.6.18.

Top of Page