Bugs item #1692718, was opened at 2007-04-02 10:25
Message generated for change (Comment added) made by freddy77
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1692718&group_id=96864

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Frediano Ziglio (freddy77)
Assigned to: Marcus Börger (helly)
Summary: re2c not working

Initial Comment:
I tried both 0.11.3 and 0.10.8. I tried with example from man page. This is the 
result of my small test:

$ cat foo.c
char *scan(char *p)
{
/*!re2c
        re2c:define:YYCTYPE  = "unsigned char";
        re2c:define:YYCURSOR = p;
        re2c:yyfill:enable   = 0;
        re2c:yych:conversion = 1;
        re2c:indent:top      = 1;
        [0-9]+          {return p;}
        [\000-\377]     {return (char*)0;}
*/
}

$ hexdump -C foo.c
00000000  63 68 61 72 20 2a 73 63  61 6e 28 63 68 61 72 20  |char *scan(char |
00000010  2a 70 29 0a 7b 0a 2f 2a  21 72 65 32 63 0a 09 72  |*p).{./*!re2c..r|
00000020  65 32 63 3a 64 65 66 69  6e 65 3a 59 59 43 54 59  |e2c:define:YYCTY|
00000030  50 45 20 20 3d 20 22 75  6e 73 69 67 6e 65 64 20  |PE  = "unsigned |
00000040  63 68 61 72 22 3b 0a 09  72 65 32 63 3a 64 65 66  |char";..re2c:def|
00000050  69 6e 65 3a 59 59 43 55  52 53 4f 52 20 3d 20 70  |ine:YYCURSOR = p|
00000060  3b 0a 09 72 65 32 63 3a  79 79 66 69 6c 6c 3a 65  |;..re2c:yyfill:e|
00000070  6e 61 62 6c 65 20 20 20  3d 20 30 3b 0a 09 72 65  |nable   = 0;..re|
00000080  32 63 3a 79 79 63 68 3a  63 6f 6e 76 65 72 73 69  |2c:yych:conversi|
00000090  6f 6e 20 3d 20 31 3b 0a  09 72 65 32 63 3a 69 6e  |on = 1;..re2c:in|
000000a0  64 65 6e 74 3a 74 6f 70  20 20 20 20 20 20 3d 20  |dent:top      = |
000000b0  31 3b 0a 09 5b 30 2d 39  5d 2b 20 20 20 20 20 20  |1;..[0-9]+      |
000000c0  20 20 20 20 7b 72 65 74  75 72 6e 20 70 3b 7d 0a  |    {return p;}.|
000000d0  09 5b 5c 30 30 30 2d 5c  33 37 37 5d 20 20 20 20  |.[\000-\377]    |
000000e0  20 7b 72 65 74 75 72 6e  20 28 63 68 61 72 2a 29  | {return (char*)|
000000f0  30 3b 7d 0a 2a 2f 0a 7d  0a 0a                    |0;}.*/.}..|
000000fa
$ ./re2c -is foo.c
re2c: error: line 4, column 40: unrecognized configuration name or illegal 
string value

freddy77


----------------------------------------------------------------------

>Comment By: Frediano Ziglio (freddy77)
Date: 2007-04-03 09:08

Message:
Logged In: YES 
user_id=75766
Originator: YES

I tried again today and got no problem. Perhaps was related to a problem
of my cache at work. Sorry to waste your time.

freddy77


----------------------------------------------------------------------

Comment By: Marcus Börger (helly)
Date: 2007-04-03 00:08

Message:
Logged In: YES 
user_id=271023
Originator: NO

Cannot reproduce under either linux or windows. Try re2c -v to ensure you
are using the correct re2c version. The features you are using require at
least 0.11.2.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=616200&aid=1692718&group_id=96864

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Re2c-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/re2c-general

Reply via email to