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

Марк Коренберг socketpair at gmail.com
Mon Oct 24 03:52:12 UTC 2011


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



-- 
Segmentation fault
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smtp.rl
Type: application/octet-stream
Size: 772 bytes
Desc: not available
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20111024/3b9076d6/attachment-0001.obj>
-------------- next part --------------
_______________________________________________
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