<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/a74b4211ff6f1c1241c93b24e6b20882"
  from="jean-david hsu &lt;jhsu1@e...&gt;"
  author="jean-david hsu"
  date="2006-02-13T01:32:58"
  subject="I don t get the lexer"
  prev="2006/02/a45690b88065de88ec908956c5350120"
  next="2006/02/ec0d44ff62d75045f20c72ef969673d9"
  next-in-thread="2006/02/3de24107f5dd6700992f62be4ab0e6c5"
  prev-thread="2006/02/20b9bddf6cd70a75c82f40d837c93956"
  next-thread="2006/02/37d39060650086440a25f738a8d7ce2b"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="I don t get the lexer">
<msg 
  url="2006/02/a74b4211ff6f1c1241c93b24e6b20882"
  from="jean-david hsu &lt;jhsu1@e...&gt;"
  author="jean-david hsu"
  date="2006-02-13T01:32:58"
  subject="I don t get the lexer">
<msg 
  url="2006/02/3de24107f5dd6700992f62be4ab0e6c5"
  from="Nicolas Pouillard &lt;nicolas.pouillard@i...&gt;"
  author="Nicolas Pouillard"
  date="2006-02-14T07:55:29"
  subject="Re: [Caml-list] I don t get the lexer">
</msg>
</msg>
</thread>

<contents>
Hello everyone
how come my lexer does not break "?!" both defined as keywords but puts 
"." aside?


# let lexer = make_lexer [".";"!";"?"];;
val lexer : char Stream.t -&gt; Genlex.token Stream.t = &lt;fun&gt;
# let token_stream = lexer(Stream.of_string "hello! but ?! but!?. . jhg.");;
val token_stream : Genlex.token Stream.t = &lt;abstr&gt;
# Stream.next token_stream;;
- : Genlex.token = Ident "hello"
# Stream.next token_stream;;
- : Genlex.token = Kwd "!"
# Stream.next token_stream;;
- : Genlex.token = Ident "but"
# Stream.next token_stream;;
- : Genlex.token = Ident "?!"
# Stream.next token_stream;;
- : Genlex.token = Ident "but"
# Stream.next token_stream;;
- : Genlex.token = Ident "!?"
# Stream.next token_stream;;
- : Genlex.token = Kwd "."
# Stream.next token_stream;;
- : Genlex.token = Kwd "."
# Stream.next token_stream;;
- : Genlex.token = Ident "jhg"
# Stream.next token_stream;;
- : Genlex.token = Kwd "."

JD

	

	
		
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

</contents>

</message>

