Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Theoretical model behind Coq's "Notation"

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Theoretical model behind Coq's "Notation"


Chronological Thread 
  • From: gallais <guillaume.allais AT ens-lyon.org>
  • To: t x <txrev319 AT gmail.com>
  • Cc: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Theoretical model behind Coq's "Notation"
  • Date: Tue, 6 Aug 2013 00:20:52 +0100

Hi,

I don't know about Coq's counterpart of this but this is, I believe, the
standard reference for the parsing of agda's mixfix operators. Notations
may be somewhat related.

http://www.cse.chalmers.se/~nad/publications/danielsson-norell-mixfix.html

Cheers,
--
gallais


On 5 August 2013 22:53, t x
<txrev319 AT gmail.com>
wrote:
> Hi,
>
> I'm currently (past few days, trying to) writing a parser for Coq. With
> the exception of Notation (for which I hard coded the common cases I use)
> and proper handling of precedence (i.e. "1 + 2 * 3" is incorrectly parsed as
> "(1+2)*3"), everything appears to work.
>
> Courses I had previously take in compilers / automata theory tend to
> assume that the grammar is fixed before the program is compiled. Notation
> breaks this assumption. Can someone explain to me (or point me at a paper)
> on the theoretical foundations behind notation and how it's implemented?
>
> Thanks!



Archive powered by MHonArc 2.6.18.

Top of Page