[Caml-list] Re: How to achieve this camlp4 syntax extension

2009-04-02 Thread Zheng Li
On 4/2/2009 1:42 PM, Conglun Yao wrote: Different kinds of error happened, when trying to use it. Even the ordinary expression: List.length [1; 2;3 ], failed. 'List' is parsed as module_longident, try to match the rule I defined. Thanks for any help. Conglun You may have a look at the so

[Caml-list] Re: How to achieve this camlp4 syntax extension

2009-04-02 Thread Conglun Yao
Nice code!!! Thank you very much. I'm trying to get the Module name, then used in my syntax extension. ModuleName.[ my extension ] It's really a great idea to perform checking in the rule definition. Conglun On Thu, Apr 2, 2009 at 2:00 PM, Zheng Li wrote: > On 4/2/2009 1:42 PM, Conglun Yao

Re: [Caml-list] Re: How to achieve this camlp4 syntax extension

2009-04-13 Thread Christophe TROESTLER
> On 4/2/2009 1:42 PM, Conglun Yao wrote: >> >> Different kinds of error happened, when trying to use it. >> >> Even the ordinary expression:  List.length [1; 2;3 ],  failed.  'List' >> is parsed as module_longident, try to match the rule I defined. Not sure whether you are still looking for a sol