Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Joel Reymont <joelr1@g...>
Subject: Re: Re : Re : [Caml-list] Re: camlp4 stream parser syntax

On Mar 8, 2009, at 3:07 PM, Matthieu Wipliez wrote:

> 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 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 haven't figured out a solution yet.

I already downcase the idents in the lexer, what I want is to use  
camel case in the camlp4 parser and have that be stored as lower case  
in the internal hash table.

	Thanks, Joel

---
http://tinyco.de
Mac, C++, OCaml