From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA12770; Fri, 27 Sep 2002 16:56:07 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA12765 for caml-list@pauillac.inria.fr; Fri, 27 Sep 2002 16:56:07 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA19971 for ; Thu, 26 Sep 2002 21:13:36 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from web80307.mail.yahoo.com (web80307.mail.yahoo.com [66.218.79.23]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id g8QJDZ503741 for ; Thu, 26 Sep 2002 21:13:36 +0200 (MET DST) Message-ID: <20020926191335.50048.qmail@web80307.mail.yahoo.com> Received: from [209.99.70.98] by web80307.mail.yahoo.com via HTTP; Thu, 26 Sep 2002 12:13:35 PDT Date: Thu, 26 Sep 2002 12:13:35 -0700 (PDT) From: Matt Boyd Subject: [Caml-list] Parsing windows EOL To: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 "\r\r\n" and return LINE("\r") NEWLINE but this is the one pattern that my lexer won't accept. How would I create a lexer which will accept any input on a line and terminate with either a "\r\n" or a "\n"? __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners