[ragel-users] Re: can't pull parse strings - BUG?

Adrian Thurston thurs... at cs.queensu.ca
Mon Feb 5 20:46:27 UTC 2007


Indeed, that is a bug. The act variable should be referenced in the same
way througout the generated code. Thanks!

-Adrian


>
> Adrian,
>
> I think I found a bug, then. Note that "int act" is already declared
> in our example.
>
> In looking through the generated code I found several uses of "s->act"
> but I also found it missing in the switch.
>
> I hope this helpful.
>
> cheers,
> Jason
>
>
> #line 1 "pullscan.rl"
> 	{	switch( act ) {
> 	case 6:
> 	{
> 		ret_tok (TK_Integer); {{p = (( s->tokend))-1;}goto _out14;}
> 	}
> 	break;
> 	case 8:
> 	{ ret_tok (TK_Integer); {{p = (( s->tokend))-1;}goto _out14;} }
> 	break;
> 	default: break;
> 	}
> 	{p = (( s->tokend))-1;}}
> 	goto st14;
> st14:
>
>
> >




More information about the ragel-users mailing list