[ragel-users] Re: Am I misinterpreting the purpose of fbreak?
David Waite
dwa... at gmail.com
Fri Jan 11 19:51:26 UTC 2008
Hopefully when I eliminate the StartDocument and EndDocument events, it will
no longer be possible for me to have more than a single event per character.
-DW
On 1/11/08, Andrei Polushin <polus... at gmail.com> wrote:
>
>
> Adrian Thurston wrote:
> > What you could do is queue up actions and then embed the break action
> [...]
>
> I guess the same goal can be achieved *without the queue*. One can use
> additional states: the machine goes to the next "fake" state,
> generates output event, but does not advance to the next character:
>
> action StartDocument { result = "StartDocument"; fbreak; }
>
> main := any at StartDocument ............ ;
>
> --
> Andrei Polushin
>
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20080111/badfa40c/attachment-0001.html>
More information about the ragel-users
mailing list