[ragel-users] Actions with arguments?

Kevin T. Ryan kevin.t.ryan at gmail.com
Fri Jun 10 00:31:09 UTC 2011


> instead of
>  > action number {
>  > ...
>  > parse(NUMBER, buff);
>  > }
> and [0-9]+ %number
> write this
> void CallParser(int type) {

Got it - thx for the suggestion.  I guess I knew that, but didn't
really want to put it into a function bc it would require passing a
pointer to a pointer for the buffp (char**) and I originally thought a
pointer to the space_left too (but instead I just made that the return
value of the function).  All in all not a bad workaround.  Thanks
again!

_______________________________________________
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