caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* another question on lexer function
@ 1996-11-07 10:07 Olivier Pons
  1996-11-08 13:21 ` Pierre Weis
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Pons @ 1996-11-07 10:07 UTC (permalink / raw)
  To: caml-list

	hello !

is it forbidden  to use the ";;" token  in a make_lexer function ?

as  the silly exemple below suggests:

#let lexer = make_lexer [ "titi"; "::";";;"; "toto"];;
lexer : char stream -> token stream = <fun>
#let token_stream = lexer(stream_of_string "toto ;; titi");;
token_stream : token stream = <abstr>
#stream_next token_stream;; 
- : token = Kwd "toto"
#stream_next token_stream;; 
Uncaught exception: Parse_error


thanks in advance,

Olivier





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-11-08 13:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-07 10:07 another question on lexer function Olivier Pons
1996-11-08 13:21 ` Pierre Weis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).