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
More problems with simple quotation parser
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-10-09 (18:41)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] More problems with simple quotation parser
Excerpts from John Harrison's message of Sun Sep 21 20:47:15 +0200 2008:
> I've hit another problem with the simple string transformation
> quotation parser (see my previous message). For the sake of this
> example, here is a somewhat simplified variant, which I turn
> into "Quotexpander.cma":


> Any idea what's going on? Do I need to put some kind of wrapping
> round the transformed phrase?

The camlp4 lexer allow much longer bracketing tokens like
  [<, >], [%, {#, ... )
so when using extensions of OCaml (since this lexer extension does
not break any OCaml code in original syntax) one have to put more
spaces to make separate tokens.

Nicolas Pouillard aka Ertai