[antlr-interest] New C runtime dist

ning dong ningd2004 at gmail.com
Fri Jun 22 10:00:56 PDT 2007


Sorry for this newbie question. But could someone elaborate how to
rebuild ANTLR to incorporate this new C runtime update?
I download the antlr3 tarbll and replace the old C.stg with the new
one. Then I followed FAQ to rebuild ANTLR. but failed with the
following error.

/home/ningd/tmp/antlr-3.0>echo $CLASSPATH
/home/ningd/pkgs/antlr-3.0/lib/stringtemplate-3.0.jar:/home/ningd/pkgs/antlr-3.0/lib/antlr-2.7.7.jar

/home/ningd/tmp/antlr-3.0> ant build
Buildfile: build.xml

BUILD FAILED
file:/home/ningd/tmp/antlr-3.0/build.xml:45: Unexpected element "condition"

Total time: 0 seconds

Try to use Ter's way to rebuild, but failed with lots of undefined
symbol errors
/home/ningd/tmp/antlr-3.0/src> javac -d . org/antlr/Tool.java
org/antlr/*/*.java org/antlr/*/*/*.java
org/antlr/Tool.java:33: package org.antlr.runtime.misc does not exist
import org.antlr.runtime.misc.Stats;
                              ^
org/antlr/analysis/DFA.java:35: package org.antlr.runtime does not exist
import org.antlr.runtime.IntStream;
                         ^
org/antlr/analysis/DFA.java:731: cannot find symbol
symbol  : class IntStream
location: class org.antlr.analysis.DFA
        public int predict(IntStream input) {
                           ^
org/antlr/codegen/ActionTranslatorLexer.java:4: package
org.antlr.runtime does not exist
import org.antlr.runtime.*;
^
.....
On 6/19/07, Jim Idle <jimi at temporal-wave.com> wrote:
>
>
>
>
> There is a new distribution snapshot checked in which is labeled 3.0.1. This
> may change if Ter decides that the first bug fix release will be called
> something completely different.
>
>
>
> To use this, you also need to rebuild ANTLR or at least make it pick up the
> latest C.stg.
>
>
>
> This fixes:
>
>
>
> -          All bugs that you lot know about ;-) – Mistyped MACRO names,
> followSet problem, and all those problems that people moaned at me for
> making them waste two hours on there are actually quite a number of trivial
> little fixes in there too;
>
> -          Provides stacked streams so that they may be handled trivially in
> lexers etc (see example of the C parser in the C examples, which now caters
> for #include.)
>
> -          Corrects a couple of tree stream rewrite issues (one is code gen,
> one was in the runtime);
>
>
>
> I have not been able to extensively test this and remember this is snapshot
> to see if bugs are fixed properly. If you had a bug and know how to rebuild
> things then please try this out and let me know if you still have issues.
> Please try to be polite – most people are J. I am well aware of all the
> typos in my comments – I type at 2342342 characters a second and 98% are BS
> J and I will fix all those up at some point so no need to send me things
> like that.
>
>
>
> Share and Enjoy,
>
>
>
> Jim


-- 
Best Regards!
Ning Dong


More information about the antlr-interest mailing list