Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* rfc822 / date parser, ocamllex
@ 2000-07-28  1:31 Julian Assange
  2000-07-28 14:06 ` Gerd Stolpmann
  2000-07-28 23:10 ` Patrick M Doane
  0 siblings, 2 replies; 4+ messages in thread
From: Julian Assange @ 2000-07-28  1:31 UTC (permalink / raw)
  To: caml-list; +Cc: proff


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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rfc822 / date parser, ocamllex
  2000-07-28  1:31 rfc822 / date parser, ocamllex Julian Assange
@ 2000-07-28 14:06 ` Gerd Stolpmann
  2000-07-28 23:10 ` Patrick M Doane
  1 sibling, 0 replies; 4+ messages in thread
From: Gerd Stolpmann @ 2000-07-28 14:06 UTC (permalink / raw)
  To: Julian Assange, caml-list; +Cc: proff

On Fri, 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.

My netstring package contains some useful functions for RFC 822 message
parsing, especially a configurable scanner. However, concrete parsers are
missing.

See http://www.ocaml-programming.de/packages/documentation/netstring/.

Gerd
-- 
----------------------------------------------------------------------------
Gerd Stolpmann      Telefon: +49 6151 997705 (privat)
Viktoriastr. 100             
64293 Darmstadt     EMail:   gerd@gerd-stolpmann.de
Germany                     
----------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rfc822 / date parser, ocamllex
  2000-07-28  1:31 rfc822 / date parser, ocamllex Julian Assange
  2000-07-28 14:06 ` Gerd Stolpmann
@ 2000-07-28 23:10 ` Patrick M Doane
  2000-07-30  4:41   ` Julian Assange
  1 sibling, 1 reply; 4+ messages in thread
From: Patrick M Doane @ 2000-07-28 23:10 UTC (permalink / raw)
  To: Julian Assange; +Cc: caml-list

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.
> 
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rfc822 / date parser, ocamllex
  2000-07-28 23:10 ` Patrick M Doane
@ 2000-07-30  4:41   ` Julian Assange
  0 siblings, 0 replies; 4+ messages in thread
From: Julian Assange @ 2000-07-30  4:41 UTC (permalink / raw)
  To: Patrick M Doane; +Cc: caml-list, proff

Patrick M Doane <patrick@watson.org> writes:

> 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. 

Thanks patrick, that's perfect.

I'll let you know if I have any additions.

Cheers,
Julian.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-08-02 11:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-28  1:31 rfc822 / date parser, ocamllex Julian Assange
2000-07-28 14:06 ` Gerd Stolpmann
2000-07-28 23:10 ` Patrick M Doane
2000-07-30  4:41   ` Julian Assange

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox