Date: Mon, 2 Dec 1996 14:02:07 -0700 (MST) From: Ade Barkah <mbarkah@hemi.com> To: terry@lambert.org (Terry Lambert) Cc: hackers@freebsd.org Subject: Re: Lex/Yacc question Message-ID: <199612022102.OAA07802@hemi.com> In-Reply-To: <199612021835.LAA10927@phaeton.artisoft.com> from "Terry Lambert" at Dec 2, 96 11:35:37 am
index | next in thread | previous in thread | raw e-mail
> > You can also avoid states if you want to... for example, in your rfc821.l:
>
> [ ... ]
>
> > | command: /* nothing*/
> > | | command incomplete_helo
> > | | command helo_command
> > | { yyerrok; }
> > | ;
>
> [ ... ]
>
> I found in implementation for an interactive parser, this tends to fail.
>
> Specifically, using the "-i" option to get a case insensitive parser
> (instead of specifying [Hh][Ee][Ll][Oo]) results in your string that
> you assemble from '.' returns coming back case converted.
>
> I actually though this was bad from several perspectives, [...]
=-) Probably getting far off topic from -hackers now. In any case,
I tested my quicky implementation and it does *not* convert the
input case, regardless of using the '-l' "lex compatibility flag".
(And I do use -i, otherwise those regexes look very ugly very fast!)
I do have some additional rules to handle things like empty lines,
syntax errors, etc.
| mail FROM : <Ade.BARKAH@Barkah.ORG>
| 250 <Ade.BARKAH@Barkah.ORG>... Sender ok
Converting the case would violate even rfc821, since many mail
systems are case sensitive. If I'm not too busy with real work
I'll finish up a minimal rfc821 implementation later today.
Regards,
-Ade
[ps: We're probably going to sell a standalone email-to-paging
gateway with FreeBSD as its host OS. If we actually sell them,
I plan that a portion of the each sale would be donated back to
FreeBSD.]
-------------------------------------------------------------------
Inet: mbarkah@hemi.com - HEMISPHERE ONLINE - <http://www.hemi.com/>
-------------------------------------------------------------------
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612022102.OAA07802>
