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
[Caml-list] Parsing windows EOL
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Matt Boyd <mattwb78756@y...>
Subject: [Caml-list] Parsing windows EOL

rule volume = parse
  | ("\r\n"|"\n")     { NEWLINE }
  | _*[^'\r']*[^'\r''\n'] { LINE (Lexing.lexeme
lexbuf) }

This almost does what I want, but, ideally, it should
accept something like 


and return 


but this is the one pattern that my lexer won't

How would I create a lexer which will accept any input
on a line and terminate with either a "\r\n" or a

Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: