[ragel-users] Actions with arguments?

Kevin T. Ryan kevin.t.ryan at gmail.com
Thu Jun 9 17:31:09 PDT 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!



More information about the ragel-users mailing list