[ragel-users] Potential Bug?

Adrian Thurston thurston at complang.org
Sat Mar 17 01:28:54 UTC 2012


Definitely a bug. That should be a syntax error and not a crash.

Thanks!

-Adrian

On 12-03-07 01:18 PM, Kevin T. Ryan wrote:
> Hi - I think I've run into a bug.  If I create a file like:
>
>
> #include<stdio.h>
>
> %%{
>      machine test;
>
>      main := |*
>          [^] { printf("CARET\n"); };
>      *|;
> }%%
>
> %% write data;
>
> and try to run it with ragel -G2 test.rl -o test.c, ragel crashes.
> Changing the line starting with '[^]' to '"^"' fixes the problem, but
> I don't think Ragel should crash, but rather print an error message
> stating that it encountered invalid input at line xxxx.  ragel -v
> gives me:
>
> Ragel State Machine Compiler version 6.7 May 2011
> Copyright (c) 2001-2009 by Adrian Thurston
>
> I am on Windows XP.  Hope this is helpful.  Thanks!
>
> ktr
>
> _______________________________________________
> ragel-users mailing list
> ragel-users at complang.org
> http://www.complang.org/mailman/listinfo/ragel-users

_______________________________________________
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