[ragel-users] Re: Am I misinterpreting the purpose of fbreak?
Andrei Polushin
polus... at gmail.com
Fri Jan 11 13:00:01 UTC 2008
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
More information about the ragel-users
mailing list