[ragel-users] [bug][ragel 6.6]

Adrian Thurston thurston at complang.org
Mon Nov 21 05:09:01 UTC 2011


Hi Mark,

My apologies, I somehow failed to see the attachment the first time you 
sent it.

I have confirmed the bug.

http://www.complang.org/redmine/issues/334

Thanks,
  Adrian

On 11-10-23 08:52 PM, Марк Коренберг wrote:
> 2011/10/24 Adrian Thurston<thurston at complang.org>:
>> Hi, could you please verify with 6.7? If the bug is still present can you
>> please send me (not necessarily the list) a ragel program that exibits the
>> error?
>
> The problem still exists in ragel 6.7
> The program is attached to letter. If attachements does not work, I
> paste same program in the body:
> ################################
> #include<stdio.h>
> #include<string.h>
>
> %%{
> machine defs;
>
> CRLF = "\r\n";
> SP = " ";
> TAB = '\x09';
> textstring = (TAB|SP|[!-~])+;
>
> Domain = [a-z.]+;
>
>
> domain_instance := Domain %{ printf("%d: domain complete\n", __LINE__); fret;};
>
> action parse_domain {
>      printf("%d:, calling parse_domain  {%s}\n", __LINE__, p);
>      fcall domain_instance;
> }
>
> Greeting := "220 " %parse_domain (SP textstring)? CRLF;
> }%%
>
> int main()
> {
>      const char * const text= "220 qwe.ru text qweqweqweqwe\r\n";
>      int cs;
>      const char* p=text;
>      const char* pe = text + strlen(text);
>      const char* eof = pe;
>
>      int top;
>      int stack[100];
>
>      %% write data;
>      %% write init;
>      %% write exec;
>      return 0;
> }
> ################################
>
>>
>> Thanks,
>>   Adrian
>>
>> On 11-10-22 11:59 AM, Марк Коренберг wrote:
>>>
>>> source attached.
>>>
>>> ragel -L -C -G2 -e -p  smtp.rl
>>>
>>>
>>> ----------------------
>>> smtp.c:167:2: error: label ‘_again’ used but not defined
>>> ---------------------
>>>
>>> $ ragel -v
>>> Ragel State Machine Compiler version 6.6 Dec 2009
>>> Copyright (c) 2001-2009 by Adrian Thurston
>>> -------------------------------------
>>>
>>> Also, -T0 compiles OK, but does not work as expected. How to debug ?
>>> graphviz diagrams says that everything is fine.
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>
>
>
>
>
> _______________________________________________
> 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