Skip to Content.
Sympa Menu

coq-club - [Coq-Club] get the type of a term

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] get the type of a term


chronological Thread 
  • From: Anamaria Martins-Moreira <Anamaria.Martins-Moreira AT loria.fr>
  • To: <coq-club AT pauillac.inria.fr>
  • Subject: [Coq-Club] get the type of a term
  • Date: Tue, 17 Dec 2002 11:25:12 +0100 (MET)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

 Hi,

 I am a novice user of Coq and I am trying to define a grammar
 extension where I extract the type of a term given by the user:

 Grammar vernac vernac :=
  toto [ "Toto" constr:constr($term) "."] ->
          let $type = ...(type of $term) in
                                           (action usinf $term and $type)


 My question is how can I do it? (apparently I cannot call Check
 inside the let, or maybe there is a special way to do it)

 Thanks for any information,
 Anamaria









Archive powered by MhonArc 2.6.16.

Top of Page