[ragel-users] Re: syntax improvement, new operators
Adrian Thurston
thurs... at cs.queensu.ca
Sat Feb 10 18:09:54 UTC 2007
Hi Erich,
Entering actions are always executed before any other actions which have
been previously embedded in the machine. In this example sub is
evaluated and all its actions are embedded. Then the first action is
embedded, but it goes to the front of any action list it is put in
because it is a starting action.
action a1 {}
action a2 {}
action first {}
sub = ( 'a' 'b'* ) >a1 $a2;
main := sub >first;
Regards,
Adrian
Erich Ocean wrote:
> I find how the current action operators work intuitive, it's the
> *naming* that I find unintuitive. (Perhaps that should have been
> changed along with the behavior change in 4.0.)
>
> It might be worthwhile to add a new machine-level action operator
> that was always executed before any other action was executed by the
> machine (we could call it Start), though I don't have any ready use
> for one.
>
> Best, Erich
>
>
More information about the ragel-users
mailing list