Date: Thu, 7 Nov 1996 11:07:04 +0100 (MET)
Message-Id: <199611071007.LAA25922@aenegada.inria.fr>
From: Olivier Pons <opons@aenegada.inria.fr>
To: caml-list@inria.fr
Subject: another question on lexer function
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