[wg-camlp4] PG'OCaml and syntax proliferation

Gerd Stolpmann info at gerd-stolpmann.de
Mon Jan 28 21:18:53 GMT 2013


Am 28.01.2013 22:02:23 schrieb(en) Alain Frisch:
> On 1/28/2013 9:21 PM, Gerd Stolpmann wrote:
>> The second point is not obligatory if you choose to implement the  
>> first.
>> For example, an extension could register PGSQL as extension token.
>> Extension tokens would be handled as a separate type of token by the
>> parser.
> 
> -ppx is about letting external processes rewrite already parsed ASTs.  
> This does not sound compatible with this approach, unless I missed  
> your point.

Right. Even a simple registration of a string is not possible - unless  
you add another command-line switch, or, going further, have  
configuration files.

Maybe something we should keep as an option. I fear that a completely  
static syntax might be too tight.

Gerd


> Alain
> 


-- 
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    gerd at gerd-stolpmann.de
Creator of GODI and camlcity.org.
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
------------------------------------------------------------


More information about the wg-camlp4 mailing list