Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Fwd: help w/ coqtop programmatic interaction for Netbeans plugin

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Fwd: help w/ coqtop programmatic interaction for Netbeans plugin


Chronological Thread 
  • From: Valentin Robert <valentin.robert.42 AT gmail.com>
  • To: Abhishek Anand <abhishek.anand.iitg AT gmail.com>
  • Cc: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Fwd: help w/ coqtop programmatic interaction for Netbeans plugin
  • Date: Thu, 4 Jul 2013 16:17:48 +0100

Hello,
 
I cannot provide good answers to your questions, but some people recently wrote a vim plugin for using Coq. Their development is available on github. I suggest looking at this file in particular:
 
https://github.com/trefis/coquille/blob/pathogen-bundle/autoload/coquille.py
 
It might give you some insight.
 
Best luck,
- Valentin


On Thu, Jul 4, 2013 at 4:10 PM, Abhishek Anand <abhishek.anand.iitg AT gmail.com> wrote:
Hi,
I'm trying to develop a Coq plugin for my fav. IDE(https://netbeans.org/) as a hobby project.
The plugin needs programmatically talk to coqtop. 
Is there some description of a "protocol" one should follow while
programmatically talking to coqtop?
So far, I did some reverse engineering and found out:
(please correct me if I am wrong)

1) Coqtop prints "coq<" on stderr when ready to accept an input. I guess I need to wait until prints "coq < " on stderr before writing to coq's inputstream.
2) If coqtop didn't like the previous command, the last line is of the form "error ...". 
   So, while sending the contents of user's editor window to coqtop, I need to stop as soon
   as I encounter one of these and prompt the user about the error.

I need more information so that I can reliably parse coqtop's output, especially proof state and present them to the user in a more intuitive way. I can try to reverse engineering most of these, but would appreciate if some description of a protocol that coqtop follows is available somewhere.
Some brief description of how CoqIDE works might also be useful.

Thanks,
-- Abhishek






Archive powered by MHonArc 2.6.18.

Top of Page