Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Possible bug in the lexer?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ceri Storey <cez@p...>
Subject: [Caml-list] Possible bug in the lexer?
Hi,
I think I've discovered wierd bug in ocaml's lexer. it seems that in
ocaml 3.01, and 3.02, (and camlp4 original syntax) the following will not 
parse:
parser [< ' '"' >] -> ();;
but the following will:
parser [< ' (**) '"' >] -> ();;

As far as i can tell, the '"' is being interpreted as an apostrophe, and
then the beginning of a string containing an apostrophe. This is also 
the case for '\\' too. 

Thanks...
-- 
ceri storey <cez@pkl.net> http://pkl.net/~cez/
vi(1)! qmail(7)! pie(5)!
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr