From matlu at directbox.com Tue Jun 10 20:05:24 2008 From: matlu at directbox.com (Lubomir Matecka) Date: Tue, 10 Jun 2008 20:05:24 Subject: [metaas-dev] superclass method call Message-ID: <16D007D8060A120518AE@directbox.com> the parser cannot parse superclass method call ( e.g. super.superMethod() ) please fix it because it makes the parser unusable, thank you From daniel at digital-freestyle.de Mon Jun 23 17:51:10 2008 From: daniel at digital-freestyle.de (Daniel Fischer) Date: Mon, 23 Jun 2008 18:51:10 +0200 Subject: [metaas-dev] MetaAS: parsing/writing indenting issue and super.something issue Message-ID: <485FD47E.1070406@digital-freestyle.de> Hi together, today I stumbled across MetaAS and found it a very useful project for my problems. Unfortunately I encountered two problems: 1) I use the ActionScriptParser.parse(src) call to parse an existing ActionsScript file. Then I want to use the ActionScriptWriter.write(dst) to write the parsed ASCompilationUnit to a file again. Why? Pretty simple: I want to use the pretty printing capabilities to do auto indenting on the ActionScript file. Unfortunately ActionScriptWriter writes the AS code with the same indentation as the original file was. Can I somehow force it to "forget" the old indentation? 2) The parser fails to parse super.something calls. Regardless of it is a method call "super.something();" or a property access "super.something = 42;". As I saw in the archives the problem is known. Is it already fixed, maybe in SVN Head? Or is there a workaround? Many thanks in advanced for your efforts. Yours, Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3344 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080623/0002d718/attachment.bin From brian at blackstonebay.com Thu Jun 26 01:39:15 2008 From: brian at blackstonebay.com (Brian DeCamp) Date: Wed, 25 Jun 2008 18:39:15 -0600 Subject: [metaas-dev] namespaces, ASType.removeMethod(String) Message-ID: <5A7D202651A16E4AA67A9A600332713603C251@PHM01.jubilife.local> Hey Dave, Great work on metaas! I have a couple of questions. First, have you looked into using the parser from the SDK? It of course can parse any AS3 file, but it's not clear to me how to use their CodeGenerator emitter class, or even that it works. I'm wondering if you have been down this road. I'm having trouble parsing namespace references with your current ANTLR grammar, although everything else in metaas seems to work so well I may just avoid namespaces in my generated code for now. The SDK option seems too complex for the amount of time I have to spend on codegen frameworks if this is my only glitch. Another question I have is regarding ASType.removeMethod(String). It seems to me that the type signature for this method is insufficient. Consider the following code: public function get foo():String { return _foo; } public function set foo(afoo:String):void { _foo = afoo; } If I call ASType.removeMethod("foo"), which one gets removed?? I assume from your JavaDoc comment that modifying the array returned from ASType.getMethods() will not serve my purpose. Thanks for your contribution. Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080625/52c23eac/attachment.htm