[antlr-interest] Trouble with outdated? c language target?
Carter Cheng
carter_cheng at yahoo.com
Fri Jan 30 07:57:43 PST 2009
I have been using a build of ANTLR 3.1.1 and havent had any problems with parsing lexing and tree building all seem to work ok for me. Here is the modified file I am using to test my parser. It's pretty much the file on the page with some modifications.
You might have gotten past this already.
--- On Fri, 1/30/09, funkyworklehead at gmail.com <funkyworklehead at gmail.com> wrote:
> From: funkyworklehead at gmail.com <funkyworklehead at gmail.com>
> Subject: Re: [antlr-interest] Trouble with outdated? c language target?
> To: antlr-interest at antlr.org
> Date: Friday, January 30, 2009, 7:28 AM
> Thanks Carter. Using 'TOKENSOURCE(lxr)' worked.
>
> Now I'm seeing
> error: expected '=', ',', ';',
> 'asm' or '__attribute__' before
> 'FOLLOW_section_in_file28'
>
> for line
> static ANTLR3_BITSET_LIST FOLLOW_section_in_file28 = {
> FOLLOW_section_in_file28_bits, 1 };
>
> in my *Parser.c file.
>
> It looks like macro ANTLR3_BITSET_LIST is not valid.
>
> Maybe I'll try antrl3.0 and libcantrl.3.0
>
>
> On Thu, Jan 29, 2009 at 8:37 AM, Carter Cheng
> <carter_cheng at yahoo.com> wrote:
> > I did manage to get it to work but I had to make
> several modifications there are several other sources for
> examples which may be more up to date. I think there is an
> examples.zip which you can find on the www.antlr.org
> download page. For the line in question I had to make a
> modification per this comment (under macro changes):
> >
> > http://www.antlr.org/api/C/changes31.html
> >
> > Good luck!
> >
> > Regards,
> >
> > Carter.
> >
> >
> >
> >
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 9661 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090130/9cb8afd3/attachment.bin
More information about the antlr-interest
mailing list