[ragel] C++ and ragel 7
Adrian Thurston
thurston at colm.net
Thu Jun 1 18:11:00 UTC 2017
Hi Avi,
These are part of a new backtracking feature and should not be generated
when not used. Will need to fix that.
Thanks,
-Adrian
On 2017-06-01 12:57, Avi Kivity wrote:
> Testing out ragel 7 (7.0.0.9, from Fedora 26), I get these in my
> generated code:
>
>
> static const char _nfa_targs[] = {
> 0, 0
> };
>
> static const char _nfa_offsets[] = {
> 0, 0, 0, 0, 0, 0, 0, 0,
> 0, 0, 0, 0, 0, 0, 0, 0,
> 0, 0, 0, 0, 0, 0, 0, 0,
> 0, 0, 0, 0, 0, 0, 0, 0,
> 0, 0, 0, 0
> };
>
> static const char _nfa_push_actions[] = {
> 0, 0
> };
>
> static const char _nfa_pop_trans[] = {
> 0, 0
> };
>
> Now, these are never used by the rest of the code, and also don't
> compile in some versions of the C++ compiler.
>
>
> This is my command line:
>
>
> ragel -G2 -o $out $in
>
>
> Is this a regression? Or am I doing something incorrectly? Since
> those arrays are zeroed and unreferenced, I'm guessing they shouldn't
> have been emitted in the first place.
>
>
> _______________________________________________
> ragel mailing list
> ragel at colm.net
> http://www.colm.net/cgi-bin/mailman/listinfo/ragel
More information about the ragel-users
mailing list