Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
camlp4 stream parser syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-03-08 (15:32)
From: Matthieu Wipliez <mwipliez@y...>
Subject: Re : Re : Re : [Caml-list] Re: camlp4 stream parser syntax

> > I believe there is a (partially acceptable) solution, if you are willing to 
> accept having all your keywords in lower-case in the grammar (not in the lexer), 
> ie you match against "buyorsell", "sellshort" etc.
> Nope, I want camel case! :D

lol ok :-)

> I think a functor or something like that is called 
> for here. There must be a way to include Structure into a module to redefine 
> 'using', without having to duplicate Camlp4.Struct.Grammar.Static.Make!
> The problem is that Static includes Structure.

I'd say duplicate Static, and redefine "using". Seems like the simplest solution to me, certainly not the cleanest though (but is there an alternative?).