[prev in list] [next in list] [prev in thread] [next in thread]
List: antlr-interest
Subject: Re: [antlr-interest] Composed grammars and AST, pb with .h files;
From: Jim Idle <jimi () temporal-wave ! com>
Date: 2008-07-30 17:31:47
Message-ID: 1217439107.9052.38.camel () jimi
[Download RAW message or body]
On Wed, 2008-07-30 at 15:55 +0200, Jean-Claude Durand wrote:
> ~/Soft/Ariane-Y/V3Compilateur/ForAI:
> ~/Soft/Ariane-Y/V3Compilateur/ForAI: java org.antlr.Tool Lex.g
> ANTLR Parser Generator Version 3.1b2 (May 20, 2008) 1989-2008
This is not the correct verison of the beta 2 jar. It should say:
ANTLR Parser Generator Version 3.1b2 (July 17, 2008) 1989-2008
> Generating Lex.h
> ~/Soft/Ariane-Y/V3Compilateur/ForAI: java org.antlr.Tool Composed.g
> ANTLR Parser Generator Version 3.1b2 (May 20, 2008) 1989-2008
> Generating Composed.c
> Generating Composed.h
> Generating Composed_Id.c
> Generating Composed_Id.h
> Generating Composed_Int.c
> Generating Composed_Int.h
> ~/Soft/Ariane-Y/V3Compilateur/ForAI:
> ~/Soft/Ariane-Y/V3Compilateur/ForAI: c++ -c Composed.c Composed_Id.c
> Composed_Int.c Lex.c main.c -I/usr/include/sys
> -I/usr/local/pkg/antlr-2008-06-26.17/runtime/C/include/ -I.
> ./Composed_Int.h:157: error: expected declaration before '}' token
This is already fixed if your sue the correct beta 2 jar with the C
runtime beta 2. Looks like you are using an earlier snapshot and not the
actual beta 2 ANTLR tool:
ANTLR Parser Generator Version 3.1b2 (July 17, 2008) 1989-2008
Jim
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.18.3">
</HEAD>
<BODY>
On Wed, 2008-07-30 at 15:55 +0200, Jean-Claude Durand wrote:<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
~/Soft/Ariane-Y/V3Compilateur/ForAI:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
~/Soft/Ariane-Y/V3Compilateur/ForAI: java org.antlr.Tool Lex.g
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
ANTLR Parser Generator Version 3.1b2 (May 20, 2008) 1989-2008
</BLOCKQUOTE>
<BR>
This is not the correct verison of the beta 2 jar. It should say:<BR>
<BR>
ANTLR Parser Generator Version 3.1b2 (July 17, 2008) 1989-2008<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
Generating Lex.h
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
~/Soft/Ariane-Y/V3Compilateur/ForAI: java org.antlr.Tool Composed.g
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
ANTLR Parser Generator Version 3.1b2 (May 20, 2008) 1989-2008
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Generating Composed.c
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Generating Composed.h
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Generating Composed_Id.c
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Generating Composed_Id.h
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Generating Composed_Int.c
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Generating Composed_Int.h
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
~/Soft/Ariane-Y/V3Compilateur/ForAI:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
~/Soft/Ariane-Y/V3Compilateur/ForAI: c++ -c Composed.c Composed_Id.c \
Composed_Int.c Lex.c main.c -I/usr/include/sys \
-I/usr/local/pkg/antlr-2008-06-26.17/runtime/C/include/ -I. </BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
./Composed_Int.h:157: error: expected declaration before '}' token
</BLOCKQUOTE>
<BR>
This is already fixed if your sue the correct beta 2 jar with the C runtime beta 2. \
Looks like you are using an earlier snapshot and not the actual beta 2 ANTLR \
tool:<BR> <BR>
<B>ANTLR Parser Generator Version 3.1b2 (July 17, 2008) 1989-2008</B><BR>
<BR>
<BR>
Jim
</BODY>
</HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic