[ragel-users] Writing a Telnet parser
Adrian Thurston
thurston at complang.org
Sun Oct 3 05:21:37 UTC 2010
Woops, the * should be **.
-Adrian
On 10-10-02 10:04 PM, Jonathan Castello wrote:
> "plain_text" is actually a bit of a misnomer; it's really anything not
> an IAC or a CR, as I have now. The only other difference here seems to
> be the + after plain_text, which I've tried. Graphing your example
> machine shows that the end_of_plain_text event is still executed after
> each plain_text character anyways.
>
> I've decided not to worry too much about it at this point. Thanks for
> your help anyways!
> ~Jonathan
>
> On Sat, Oct 2, 2010 at 9:53 PM, Adrian Thurston<thurston at complang.org> wrote:
>> Try refactoring your grammar:
>>
>> plain_text = [a-z];
>> something_else = ^plain_text;
>>
>> main := (
>> plain_text+ %{ end_of_plain_text(); } |
>> something_else+
>> )*;
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users
_______________________________________________
ragel-users mailing list
ragel-users at complang.org
http://www.complang.org/mailman/listinfo/ragel-users
More information about the ragel-users
mailing list