[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Patrick M Doane <patrick@w...> |
| Subject: | Re: rfc822 / date parser, ocamllex |
Hi Julian, I've started work on a library to implement internet protocols. One of the modules has a lexer for mail headers as well as parsers for addresses and dates. The address parser supports all of rfc822 and also includes updates that have been in later documents. Also included are modules which implement client-side POP3 and SMTP. You can get this from: http://www.watson.org/~patrick/ Patrick On 28 Jul 2000, Julian Assange wrote: > > Does anyone know of an O'caml rfc822 address parser? > > `mmm', the O'caml web-browser has a simple date lexer, although its > not rfc822 compliant. > > The ocamllex documentation doesn't mention any method of specifying > start conditions. While I can see several different way of gaining > this functionality using sub-lexers and grouping, is this the most > elegant approach? > > Cheers, > Julian. > >