[metaas-dev] metaas-dev Digest, Vol 5, Issue 4
Yuliang-Yang
zjuyyl at gmail.com
Wed May 23 15:25:53 UTC 2007
David, thanks for your advice,I have solve the problem,as you said it is
caused by the ANTLR libs, it doesn't work with the ANTLR V3.07 and the
newest release ANTLR V3,when I replace the jars,It works smoothly. Greate
project,thanks again.
2007/5/23, metaas-dev-request at lists.badgers-in-foil.co.uk <
metaas-dev-request at lists.badgers-in-foil.co.uk>:
>
> Send metaas-dev mailing list submissions to
> metaas-dev at lists.badgers-in-foil.co.uk
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.badgers-in-foil.co.uk/mailman/listinfo/metaas-dev
> or, via email, send a message with subject or body 'help' to
> metaas-dev-request at lists.badgers-in-foil.co.uk
>
> You can reach the person managing the list at
> metaas-dev-owner at lists.badgers-in-foil.co.uk
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of metaas-dev digest..."
>
>
> Today's Topics:
>
> 1. Can't create as3 source code (Yuliang-Yang)
> 2. Re: Can't create as3 source code (David Holroyd)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 23 May 2007 00:07:52 +0800
> From: Yuliang-Yang <zjuyyl at gmail.com>
> Subject: [metaas-dev] Can't create as3 source code
> To: metaas-dev at lists.badgers-in-foil.co.uk
> Message-ID:
> <d75235180705220907mdcc6feeub62ef9cc64516941 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> HI David,
> I download metaas-0.7-bin,
> and try to create as3 source code by the code:
>
> public static void main(String[] args){
> ActionScriptFactory fact = new ActionScriptFactory();
> ActionScriptProject proj = fact.newEmptyASProject(".");
> ASCompilationUnit unit = proj.newClass("Test");
> ASClassType clazz = (ASClassType)unit.getType();
> ASMethod meth = clazz.newMethod("test", Visibility.PUBLIC, "void");
> meth.addStmt("trace('Hello world')");
> }
> it throw exceptions:
>
> Exception in thread "main" java.lang.NoSuchFieldError: ruleNestingLevel
> at org.asdt.core.internal.antlr.AS3Lexer.mCOLON(AS3Lexer.java:2131)
> at org.asdt.core.internal.antlr.AS3Lexer.mTokens(AS3Lexer.java:5332)
> at org.antlr.runtime.Lexer.nextToken(Lexer.java:109)
> at uk.co.badgersinfoil.metaas.impl.antlr.LinkedListTokenSource.nextToken(
> LinkedListTokenSource.java:20)
> at
> uk.co.badgersinfoil.metaas.impl.antlr.LinkedListTokenStream.readNextToken(
> LinkedListTokenStream.java:77)
> at uk.co.badgersinfoil.metaas.impl.antlr.LinkedListTokenStream.LT(
> LinkedListTokenStream.java:143)
> at org.asdt.core.internal.antlr.AS3Parser.typeExpression(AS3Parser.java
> :7344)
> at uk.co.badgersinfoil.metaas.impl.AS3FragmentParser.parseTypeSpec(
> AS3FragmentParser.java:164)
> at uk.co.badgersinfoil.metaas.impl.ASTBuilder.newClassMethod(
> ASTBuilder.java:122)
> at uk.co.badgersinfoil.metaas.impl.ASTASClassType.newMethod(
> ASTASClassType.java:29)
> at org.myway.Generator.main(Generator.java:124)
>
>
>
> it is cause by : ASMethod meth = clazz.newMethod("test", Visibility.PUBLIC
> ,
> "void");
>
> --
> best regards,
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070523/763c50e2/attachment.html
>
> ------------------------------
>
> Message: 2
> Date: Tue, 22 May 2007 23:11:56 +0000
> From: David Holroyd <dave at badgers-in-foil.co.uk>
> Subject: Re: [metaas-dev] Can't create as3 source code
> To: metaas-dev at lists.badgers-in-foil.co.uk
> Message-ID: <20070522231155.GB12671 at badgers-in-foil.co.uk>
> Content-Type: text/plain; charset=us-ascii
>
> On Wed, May 23, 2007 at 12:07:52AM +0800, Yuliang-Yang wrote:
> > it throw exceptions:
> >
> > Exception in thread "main" java.lang.NoSuchFieldError: ruleNestingLevel
> > at org.asdt.core.internal.antlr.AS3Lexer.mCOLON(AS3Lexer.java:2131)
>
> Have you got some version of ANTLR other than the one from the download
> zip in your classpath? Sounds like it's not using the included
> antlr-20070101.jar, but an older one (or maybe a newer one, not sure).
>
> Please check, and let us know how you get on
> thanks!
> dave
>
> --
> http://david.holroyd.me.uk/
>
>
>
> ------------------------------
>
> _______________________________________________
> metaas-dev mailing list
> metaas-dev at lists.badgers-in-foil.co.uk
> http://lists.badgers-in-foil.co.uk/mailman/listinfo/metaas-dev
>
>
> End of metaas-dev Digest, Vol 5, Issue 4
> ****************************************
>
--
best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070523/57a515c8/attachment.htm
More information about the metaas-dev
mailing list