From michael_ramirez44 at yahoo.com Wed Jan 2 15:26:06 2008 From: michael_ramirez44 at yahoo.com (Michael Ramirez) Date: Wed, 2 Jan 2008 07:26:06 -0800 (PST) Subject: [metaas-dev] Meta As Dependencies Message-ID: <775557.81793.qm@web52510.mail.re2.yahoo.com> When I download MetaAs I noticed it has libs for antlr-2.7.6 and stringtemplate-2.3b9. Will MetaAs be upgraded to use both Antlr 3.0 and StringTemplate 3.0? Michael ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From dave at badgers-in-foil.co.uk Wed Jan 2 15:47:19 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed, 2 Jan 2008 15:47:19 +0000 Subject: [metaas-dev] Meta As Dependencies In-Reply-To: <775557.81793.qm@web52510.mail.re2.yahoo.com> References: <775557.81793.qm@web52510.mail.re2.yahoo.com> Message-ID: <20080102154719.GA9764@badgers-in-foil.co.uk> On Wed, Jan 02, 2008 at 07:26:06AM -0800, Michael Ramirez wrote: > When I download MetaAs I noticed it has libs for antlr-2.7.6 and > stringtemplate-2.3b9. Will MetaAs be upgraded to use both Antlr 3.0 > and StringTemplate 3.0? The last version I uploaded *is* actually dependent on ANTLR v3, though a pre-release version (antlr-20070101.jar). ANTLR v3 has actually been implemented in terms of ANTLR v2, which is why the ANTLR 2.7.6 and older stringtemplate versions are bundled in there too. The code in Subversion is using a proper, released version from the ANTLR 3.x series. There's a 'beta' version of the next (0.8) release of metaas in my Maven repository. You can find the 0.8-b1 release in this repo location (assuming you are familiar with Maven): http://maven.badgers-in-foil.co.uk/maven2/ ta, dave -- http://david.holroyd.me.uk/ From rflament at laposte.net Mon Jan 7 10:09:44 2008 From: rflament at laposte.net (=?ISO-8859-1?Q?R=E9mi_Flament?=) Date: Mon, 07 Jan 2008 11:09:44 +0100 Subject: [metaas-dev] patch for additional statements Message-ID: <4781FA68.3000304@laposte.net> Hi, Thanks for MetaAS, it's a great tool. I've done a checkout to have the last version but I had some errors while parsing my source code, so I wrote a small patch. You can find it attached to this email. It's a very simple patch, it just add some statements that statementbuilder was unabled to understand (break, null, true, false, and so on). Regards, R?mi. -------------- next part -------------- A non-text attachment was scrubbed... Name: patch1.patch Type: text/x-patch Size: 13380 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080107/0640640c/attachment.bin From rflament at laposte.net Mon Jan 7 11:44:43 2008 From: rflament at laposte.net (=?ISO-8859-1?Q?R=E9mi_Flament?=) Date: Mon, 07 Jan 2008 12:44:43 +0100 Subject: [metaas-dev] super statements Message-ID: <478210AB.40701@laposte.net> Hi, Is there a way to support super statements like : super.myfield = "toto"; super.callmymethod(); super.myfield.callmymethod(); ? Thanks, R?mi. ___________________________________________________________________________ Yahoo! Mail r?invente le mail ! D?couvrez le nouveau Yahoo! Mail et son interface r?volutionnaire. http://fr.mail.yahoo.com From dave at badgers-in-foil.co.uk Mon Jan 7 21:39:15 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 07 Jan 2008 21:39:15 +0000 Subject: [metaas-dev] [SVN metaas] first part of patch from Matthew J Tretter; add ASExpressionStatement#getExpression() Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080107/eb9d14fb/attachment.htm From dave at badgers-in-foil.co.uk Mon Jan 7 22:14:34 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon, 7 Jan 2008 22:14:34 +0000 Subject: [metaas-dev] patch for additional statements In-Reply-To: <4781FA68.3000304@laposte.net> References: <4781FA68.3000304@laposte.net> Message-ID: <20080107221433.GA2070@badgers-in-foil.co.uk> Hi there! On Mon, Jan 07, 2008 at 11:09:44AM +0100, R?mi Flament wrote: > Thanks for MetaAS, it's a great tool. > > I've done a checkout to have the last version but I had some errors > while parsing my source code, so I wrote a small patch. > You can find it attached to this email. > > It's a very simple patch, it just add some statements that > statementbuilder was unabled to understand (break, null, true, false, > and so on). Many thanks for taking the time to contribute! I've just had a quick look at your patch and I can integrate some bits as they are. But, I think that in several instances, new types of 'statement' shouldn't be needed. If things were functioning correctly, the AST nodes in question should probably be wrapped within the existing ASExpressionStatement type. For instance, within a method body, the following, meth(); should cause metaas to produce an ASExpressionStatement who's expression is an ASInvocationExpression. This leads me to wonder how you came across errors where the StatementBuilder encountered nodes like METHOD_CALL, rather than the expected EXPR_STMNT? Sounds like you found a bug in the Antlr grammar. I will see if I can pull out the other usable pieces, add unit tests, and integrate into the codebase. For the rest, can you give some example code that causes the additional entries in StatementBuilder to be needed? Thank you again for helping! dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Mon Jan 7 22:33:22 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon, 7 Jan 2008 22:33:22 +0000 Subject: [metaas-dev] super statements In-Reply-To: <478210AB.40701@laposte.net> References: <478210AB.40701@laposte.net> Message-ID: <20080107223321.GB2070@badgers-in-foil.co.uk> On Mon, Jan 07, 2008 at 12:44:43PM +0100, R?mi Flament wrote: > Is there a way to support super statements like : > > super.myfield = "toto"; > super.callmymethod(); > super.myfield.callmymethod(); Well, AS3 supports both super-statements, http://livedocs.adobe.com/specs/actionscript/3/as3_specification152.html *and* super-expressions, http://livedocs.adobe.com/specs/actionscript/3/as3_specification129.html (though I don't currently understand why these are differentiated). Your examples are of the 'super-expression' form, which unfortunately isn't currently supported by the metaas Antlr grammar (the super-statement form is already allowed). I think I tried to make both forms work, but the super-expr was more difficult for reasons I no longer remember. Would you like to learn something of Antlr3 grammars? ;) I can try to take another look, but this will be after working though the patches I've been sent recently. ta! dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Mon Jan 7 22:57:54 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 07 Jan 2008 22:57:54 +0000 Subject: [metaas-dev] [SVN metaas] Support for assignment-expressions, mostly contributed by Matthew J Tretter Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080107/d64e5221/attachment-0001.htm From dave at badgers-in-foil.co.uk Mon Jan 7 22:58:39 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 07 Jan 2008 22:58:39 +0000 Subject: [metaas-dev] [SVN metaas] Basic tests for assignment-expression stuff Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080107/1d26b184/attachment.htm From dave at badgers-in-foil.co.uk Mon Jan 7 23:12:09 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 07 Jan 2008 23:12:09 +0000 Subject: [metaas-dev] [SVN metaas] The Hall of Fame! (Did I miss anyone?) Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080107/74b3b2f6/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 8 00:05:15 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Tue, 8 Jan 2008 00:05:15 +0000 Subject: [metaas-dev] ASFieldAccessExpression In-Reply-To: <001801c850d8$61da17a0$0201a8c0@CreativeRoomPC> References: <006b01c84a5b$8fb9b190$0201a8c0@CreativeRoomPC> <20071229222736.GC12420@badgers-in-foil.co.uk> <001801c850d8$61da17a0$0201a8c0@CreativeRoomPC> Message-ID: <20080108000515.GC2070@badgers-in-foil.co.uk> On Sun, Jan 06, 2008 at 09:52:45PM -0500, Matthew J Tretter wrote: > I've done a little work tonight and am attaching another patch. This one > is an ASFieldAccessExpression interface (and corresponding > ASTASFieldAccessExpression implementation). It's modelled after the > already-exisitng ASArrayAccessExpression. Let me know what you think. Do you have corresponding changes to ExpressionBuilder too? > I'd also like to flesh out ASTASUnresolvedNameExpression, however, I wanted > to get your input on that before I did anything. Currently, there's no > corresponding interface. Should the interface just mirror the class (i.e. > contain only a getName method)? Or should it be updated to address the > problem of qualified names that we talked about last week? I thought that > you may want to introduce something like Eclipse's QualifiedName and > SimpleName objects, though I'm not sure how one would go about phasing them > in. First thing; don't worry about phasing changes to expression handling stuff -- I've not done a proper release that uses this yet so just ripping stuff out is fine! ;) The reason that there's not yet much included that models 'expressions with dots in' is that it seems like we will not be able to do a great job unless we perform additional semantic analysis. i.e. given the expression, A.B.C is this, 1) the class 'C', in the package 'A.B'? 2) access to the field 'C' in class 'B' (which is in package 'A')? 3) a series of property accesses, starting at local var 'A'? etc. In some cases, we can unambiguously identify access to a field based only on syntax, e.g., a().b but in the other examples above, we'd need to have access to information that could be outside of the current compilation-unit. (See the class uk.co.badgersinfoil.metaas.impl.AutoImporter for a big fat hack that *almost* does this kind of processing.) I guess the Eclipse model of allowing A.B to be represented as either a field-access or just a qualified-name (depending on how much semantic informations is available) is ok, but I wonder what happens if modifications to the tree mean that the representation should change? Well, I'm not sure, so let's just get on with writing the code, and refactor it if all goes to shit :) ta, dave > Index: > src/main/java/uk/co/badgersinfoil/metaas/dom/ASFieldAccessExpression.java > =================================================================== > --- > src/main/java/uk/co/badgersinfoil/metaas/dom/ASFieldAccessExpression.java > (revision 0) > +++ > src/main/java/uk/co/badgersinfoil/metaas/dom/ASFieldAccessExpression.java > (revision 0) > @@ -0,0 +1,8 @@ > +package uk.co.badgersinfoil.metaas.dom; > + > +public interface ASFieldAccessExpression extends ASExpression { > + public String getName(); > + public void setName(String name); > + public ASExpression getTargetExpression(); > + public void setTargetExpression(ASExpression expr); > +} > Index: > src/main/java/uk/co/badgersinfoil/metaas/impl/ASTASFieldAccessExpression.java > =================================================================== > --- > src/main/java/uk/co/badgersinfoil/metaas/impl/ASTASFieldAccessExpression.java (revision 575) > +++ > src/main/java/uk/co/badgersinfoil/metaas/impl/ASTASFieldAccessExpression.java (working copy) > @@ -1,10 +1,32 @@ > package uk.co.badgersinfoil.metaas.impl; > > +import uk.co.badgersinfoil.metaas.dom.ASExpression; > +import uk.co.badgersinfoil.metaas.dom.ASFieldAccessExpression; > import uk.co.badgersinfoil.metaas.impl.antlr.LinkedListTree; > > -public class ASTASFieldAccessExpression extends ASTASExpression { > - > +public class ASTASFieldAccessExpression extends ASTASExpression > implements ASFieldAccessExpression { > + > public ASTASFieldAccessExpression(LinkedListTree ast) { > super(ast); > } > + > + public String getName() { > + return ASTUtils.stringifyNode(ast.getLastChild()); > + } > + > + public void setName(String expr) { > + LinkedListTree name = AS3FragmentParser.parseIdent(expr); > + ast.setChildWithTokens(1, name); > + } > + > + public ASExpression getTargetExpression() { > + return ExpressionBuilder.build(ast.getFirstChild()); > + } > + > + public void setTargetExpression(ASExpression expr) > + { > + LinkedListTree exprAST = ((ASTASExpression)expr).getAST(); > + ast.setChildWithTokens(0, exprAST); > + } > + > } > \ No newline at end of file -- http://david.holroyd.me.uk/ From matthew at exanimo.com Tue Jan 8 02:16:41 2008 From: matthew at exanimo.com (Matthew J Tretter) Date: Mon, 7 Jan 2008 21:16:41 -0500 Subject: [metaas-dev] ASFieldAccessExpression References: <006b01c84a5b$8fb9b190$0201a8c0@CreativeRoomPC><20071229222736.GC12420@badgers-in-foil.co.uk><001801c850d8$61da17a0$0201a8c0@CreativeRoomPC> <20080108000515.GC2070@badgers-in-foil.co.uk> Message-ID: <004501c8519c$82f5e440$0201a8c0@CreativeRoomPC> > Do you have corresponding changes to ExpressionBuilder too? I don't think I made any. You already had ASTASFieldAccessExpression (and therefore the ExpressionBuilder logic), I believe.. it just didn't have a corresponding interface (or any functionality). > I guess the Eclipse model of allowing > > A.B > > to be represented as either a field-access or just a qualified-name > (depending on how much semantic informations is available) is ok, but I > wonder what happens if modifications to the tree mean that the > representation should change? I was thinking about this as I was working on ASFieldExpression. Wouldn't variable bindings first need to be in place for us to do this kind of analysis (a la Eclipse's Name.resolveBinding)? Which would in turn force a change in the getName functions (can't return Strings anymore). I guess you could sidestep the issue by inspecting the AST, but it seems like something you're going to need anyway (and already could use in AutoImporter). matthew From dave at badgers-in-foil.co.uk Thu Jan 10 08:53:27 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Thu, 10 Jan 2008 08:53:27 +0000 Subject: [metaas-dev] [SVN metaas] Change from Matthew J Tretter to add public DOM interface for field-access-expressions Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080110/a15bfc9e/attachment.htm From dave at badgers-in-foil.co.uk Thu Jan 10 22:26:44 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Thu, 10 Jan 2008 22:26:44 +0000 Subject: [metaas-dev] [SVN metaas] API to create new field-access-expressions Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080110/d62f1fa0/attachment.htm From dave at badgers-in-foil.co.uk Thu Jan 10 22:27:27 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Thu, 10 Jan 2008 22:27:27 +0000 Subject: [metaas-dev] [SVN metaas] simple unit test for field-access-expression Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080110/85b45a39/attachment.htm From dave at badgers-in-foil.co.uk Thu Jan 10 22:39:58 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Thu, 10 Jan 2008 22:39:58 +0000 Subject: [metaas-dev] [SVN metaas] Support for break-statements, supplied by R?\195?\169mi Flament Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080110/dec99933/attachment.htm From michael_ramirez44 at yahoo.com Fri Jan 11 17:41:24 2008 From: michael_ramirez44 at yahoo.com (Michael Ramirez) Date: Fri, 11 Jan 2008 09:41:24 -0800 (PST) Subject: [metaas-dev] Maven 2 Dependency Message-ID: <97324.2070.qm@web52505.mail.re2.yahoo.com> How to I add MetaAs-0.7 as a dependency on my Maven 2 project? Michael Ramirez ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From rflament at laposte.net Sat Jan 12 15:19:58 2008 From: rflament at laposte.net (=?ISO-8859-1?Q?R=E9mi_Flament?=) Date: Sat, 12 Jan 2008 16:19:58 +0100 Subject: [metaas-dev] patch for additional statements In-Reply-To: <20080107221433.GA2070@badgers-in-foil.co.uk> References: <4781FA68.3000304@laposte.net> <20080107221433.GA2070@badgers-in-foil.co.uk> Message-ID: <4788DA9E.40102@laposte.net> Hi, I can't send you the code that causes the errors, but I've managed to isolate different cases. I've attached 3 files which contains cases that crashes the parser. Basically it seems that the parser doesn't support this syntax : if (bla) doSomething(); but only if (bla) { doSomething(); } It seems to be ok for the "else" statement though. R?mi. David Holroyd a ?crit : > Hi there! > > On Mon, Jan 07, 2008 at 11:09:44AM +0100, R?mi Flament wrote: > >> Thanks for MetaAS, it's a great tool. >> >> I've done a checkout to have the last version but I had some errors >> while parsing my source code, so I wrote a small patch. >> You can find it attached to this email. >> >> It's a very simple patch, it just add some statements that >> statementbuilder was unabled to understand (break, null, true, false, >> and so on). >> > > Many thanks for taking the time to contribute! > > I've just had a quick look at your patch and I can integrate some > bits as they are. > > But, I think that in several instances, new types of 'statement' > shouldn't be needed. If things were functioning correctly, the AST > nodes in question should probably be wrapped within the existing > ASExpressionStatement type. > > For instance, within a method body, the following, > > meth(); > > should cause metaas to produce an ASExpressionStatement who's expression > is an ASInvocationExpression. > > This leads me to wonder how you came across errors where the > StatementBuilder encountered nodes like METHOD_CALL, rather than the > expected EXPR_STMNT? Sounds like you found a bug in the Antlr grammar. > > > I will see if I can pull out the other usable pieces, add unit tests, > and integrate into the codebase. > > For the rest, can you give some example code that causes the additional > entries in StatementBuilder to be needed? > > > Thank you again for helping! > dave > > -------------- next part -------------- A non-text attachment was scrubbed... Name: case1.as Type: application/x-applix-spreadsheet Size: 602 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080112/ed8b840a/attachment.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: case2.as Type: application/x-applix-spreadsheet Size: 577 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080112/ed8b840a/attachment-0001.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: case3.as Type: application/x-applix-spreadsheet Size: 590 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080112/ed8b840a/attachment-0002.bin From dave at badgers-in-foil.co.uk Sat Jan 12 16:33:20 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sat, 12 Jan 2008 16:33:20 +0000 Subject: [metaas-dev] Maven 2 Dependency In-Reply-To: <97324.2070.qm@web52505.mail.re2.yahoo.com> References: <97324.2070.qm@web52505.mail.re2.yahoo.com> Message-ID: <20080112163320.GA18657@badgers-in-foil.co.uk> On Fri, Jan 11, 2008 at 09:41:24AM -0800, Michael Ramirez wrote: > How to I add MetaAs-0.7 as a dependency on my Maven 2 project? You need an additional repository, ... ... uk.co.badgersinfoil.metaas metaas 0.7 ... ... bif-repo http://maven.badgers-in-foil.co.uk/maven2 ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sat Jan 12 16:39:04 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sat, 12 Jan 2008 16:39:04 +0000 Subject: [metaas-dev] Maven 2 Dependency In-Reply-To: <20080112163320.GA18657@badgers-in-foil.co.uk> References: <97324.2070.qm@web52505.mail.re2.yahoo.com> <20080112163320.GA18657@badgers-in-foil.co.uk> Message-ID: <20080112163904.GB18657@badgers-in-foil.co.uk> On Sat, Jan 12, 2008 at 04:33:20PM +0000, David Holroyd wrote: > On Fri, Jan 11, 2008 at 09:41:24AM -0800, Michael Ramirez wrote: > > How to I add MetaAs-0.7 as a dependency on my Maven 2 project? > > You need an additional repository, Oops. That should be "" of course! > > ... > > ... > > uk.co.badgersinfoil.metaas > metaas > 0.7 > > ... > > ... > > > bif-repo > http://maven.badgers-in-foil.co.uk/maven2 > > > -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sat Jan 12 17:22:25 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sat, 12 Jan 2008 17:22:25 +0000 Subject: [metaas-dev] patch for additional statements In-Reply-To: <4788DA9E.40102@laposte.net> References: <4781FA68.3000304@laposte.net> <20080107221433.GA2070@badgers-in-foil.co.uk> <4788DA9E.40102@laposte.net> Message-ID: <20080112172224.GC18657@badgers-in-foil.co.uk> On Sat, Jan 12, 2008 at 04:19:58PM +0100, R?mi Flament wrote: > I can't send you the code that causes the errors, but I've managed to > isolate different cases. > > I've attached 3 files which contains cases that crashes the parser. > Basically it seems that the parser doesn't support this syntax : > > if (bla) doSomething(); > > but only > > if (bla) { doSomething(); } > > It seems to be ok for the "else" statement though. Ah! I fixed basically the same problem as your seeing here a little while back, but only for the else-clause. I forgot that the same fix would be required for the 'then'-clause too :( metaas is assuming that the 'if' will always be applied to a block-statement, and is breaking when this isn't the case (as in your examples). This actually needs a change to the API. Maybe something like, ASIfStatement.getThenStatement() So, I'll add that, and make attempts to use an ASIfStatement as a statement container fail when the contained statement isn't actually a block. I suppose it might sometimes be nice if attempting to add a statement to an existing 'if' like, if (foo) bar(); caused a block-statement to automatically be created, if (foo) { bar(); trace("magic"); } but I'm not going to bother with that for the moment :) ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sat Jan 12 19:06:20 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 12 Jan 2008 19:06:20 +0000 Subject: [metaas-dev] [SVN metaas] Work to resolve issues with if-statement bodies, as noted by R?\195?\169mi Flament. Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080112/c9039ab8/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 13 20:39:39 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun, 13 Jan 2008 20:39:39 +0000 Subject: [metaas-dev] ANTLR 3.1 Message-ID: <20080113203939.GB4628@badgers-in-foil.co.uk> So I've been having a go at getting metaas to work with the recent ANTLR 3.1 pre-releases. I've had a few problems, some of which I've forwarded to the ANTLR mailing list. (Thread here...) http://www.antlr.org:8080/pipermail/antlr-interest/2008-January/025682.html I'll probably not commit any these changes until there's actually a final release of ANTLR 3.1 in any case, as I don't want to make it *too* hard to build the metaas code :) ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sun Jan 13 21:10:22 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 13 Jan 2008 21:10:22 +0000 Subject: [metaas-dev] [SVN metaas] Don't break when asked for the name of the end-of-file token References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080113/c029a04e/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 13 21:16:05 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 13 Jan 2008 21:16:05 +0000 Subject: [metaas-dev] [SVN metaas] Fix rewind() breakage when mark() called while a read of the next token from the TokenStream is still pending (i.e. this.p == null) Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080113/f4e1e235/attachment.htm From rflament at laposte.net Mon Jan 14 13:23:08 2008 From: rflament at laposte.net (=?ISO-8859-1?Q?R=E9mi_Flament?=) Date: Mon, 14 Jan 2008 14:23:08 +0100 Subject: [metaas-dev] try statements Message-ID: <478B623C.5030302@laposte.net> Hi, Thanks for the "if" correction, it works perfectly now ! I've found another case which make the parser crash (attached file). The antlr file knows about the try {} catch {} structure but the java model doesn't. Regards, R?mi. -------------- next part -------------- A non-text attachment was scrubbed... Name: case4.as Type: application/x-applix-spreadsheet Size: 192 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080114/47791829/attachment.bin From dave at badgers-in-foil.co.uk Mon Jan 14 22:34:40 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 14 Jan 2008 22:34:40 +0000 Subject: [metaas-dev] [SVN metaas] remove debugging code References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080114/efd691ef/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 15 08:36:22 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Tue, 15 Jan 2008 08:36:22 +0000 Subject: [metaas-dev] try statements In-Reply-To: <478B623C.5030302@laposte.net> References: <478B623C.5030302@laposte.net> Message-ID: <20080115083621.GE23106@badgers-in-foil.co.uk> On Mon, Jan 14, 2008 at 02:23:08PM +0100, R?mi Flament wrote: > Thanks for the "if" correction, it works perfectly now ! > > I've found another case which make the parser crash (attached file). > > The antlr file knows about the try {} catch {} structure but the java > model doesn't. I will try to look at it soon. ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Tue Jan 15 08:37:53 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 15 Jan 2008 08:37:53 +0000 Subject: [metaas-dev] [SVN metaas] further supporting bits for ASBreakStatement Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080115/700dc9e6/attachment.htm From dave at badgers-in-foil.co.uk Wed Jan 16 22:26:48 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Wed, 16 Jan 2008 22:26:48 +0000 Subject: [metaas-dev] [SVN metaas] Build a more useful AST for try-catch-finally References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080116/c9d21ab4/attachment.htm From dave at badgers-in-foil.co.uk Wed Jan 16 22:27:20 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Wed, 16 Jan 2008 22:27:20 +0000 Subject: [metaas-dev] [SVN metaas] another useful check References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080116/117cd7e1/attachment.htm From dave at badgers-in-foil.co.uk Wed Jan 16 22:31:22 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Wed, 16 Jan 2008 22:31:22 +0000 Subject: [metaas-dev] [SVN metaas] need to parse simple identifiers for var names, and the like References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080116/e9130893/attachment.htm From dave at badgers-in-foil.co.uk Wed Jan 16 22:32:42 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Wed, 16 Jan 2008 22:32:42 +0000 Subject: [metaas-dev] [SVN metaas] Support in the DOM for handling try-statements Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080116/17d8281a/attachment-0001.htm From dave at badgers-in-foil.co.uk Wed Jan 16 22:40:29 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Wed, 16 Jan 2008 22:40:29 +0000 Subject: [metaas-dev] [SVN metaas] Implement just enough default-xml-namespace-statement support to get E4XTests to pass again Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080116/c0e8a48a/attachment.htm From dave at badgers-in-foil.co.uk Wed Jan 16 22:44:18 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Wed, 16 Jan 2008 22:44:18 +0000 Subject: [metaas-dev] [SVN metaas] New Cobertura plugin version fixes problems with the 2.1 release References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080116/0259fec7/attachment.htm From dave at badgers-in-foil.co.uk Wed Jan 16 23:06:03 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Wed, 16 Jan 2008 23:06:03 +0000 Subject: [metaas-dev] [SVN metaas] do the TODO! References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080116/960ad624/attachment.htm From dave at badgers-in-foil.co.uk Thu Jan 17 21:18:27 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Thu, 17 Jan 2008 21:18:27 +0000 Subject: [metaas-dev] [SVN metaas] simplify the AST for conditional-expressions References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080117/50a5a5f6/attachment.htm From dave at badgers-in-foil.co.uk Thu Jan 17 21:23:16 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Thu, 17 Jan 2008 21:23:16 +0000 Subject: [metaas-dev] [SVN metaas] support for conditional-expressions Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080117/d77dee47/attachment.htm From dave at badgers-in-foil.co.uk Thu Jan 17 21:27:19 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Thu, 17 Jan 2008 21:27:19 +0000 Subject: [metaas-dev] [SVN metaas] more uses of handy util function References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080117/52f6117d/attachment-0001.htm From dave at badgers-in-foil.co.uk Fri Jan 18 23:26:43 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Fri, 18 Jan 2008 23:26:43 +0000 Subject: [metaas-dev] [SVN metaas] handy util function References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080118/5fce30bc/attachment.htm From dave at badgers-in-foil.co.uk Fri Jan 18 23:29:26 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Fri, 18 Jan 2008 23:29:26 +0000 Subject: [metaas-dev] [SVN metaas] ASExpression support for do-while-statement Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080118/db6c308a/attachment.htm From dave at badgers-in-foil.co.uk Fri Jan 18 23:51:38 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Fri, 18 Jan 2008 23:51:38 +0000 Subject: [metaas-dev] [SVN metaas] ASExpression support in for-each-in Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080118/c8ac9cd5/attachment.htm From dave at badgers-in-foil.co.uk Fri Jan 18 23:57:18 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Fri, 18 Jan 2008 23:57:18 +0000 Subject: [metaas-dev] [SVN metaas] ASExpression support for for-in-statement Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080118/ffd5fb47/attachment-0001.htm From dave at badgers-in-foil.co.uk Sat Jan 19 00:57:04 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 00:57:04 +0000 Subject: [metaas-dev] [SVN metaas] ASExpression support for for-statement Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/611eb203/attachment.htm From dave at badgers-in-foil.co.uk Sat Jan 19 01:09:30 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 01:09:30 +0000 Subject: [metaas-dev] [SVN metaas] ASExpression support in return-statement Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/3d5fa613/attachment.htm From dave at badgers-in-foil.co.uk Sat Jan 19 01:17:16 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 01:17:16 +0000 Subject: [metaas-dev] [SVN metaas] ASExpression support for while-statement Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/83477b6a/attachment-0001.htm From dave at badgers-in-foil.co.uk Sat Jan 19 01:22:27 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 01:22:27 +0000 Subject: [metaas-dev] [SVN metaas] ASExpression support for with-statement Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/99d8c0a2/attachment.htm From dave at badgers-in-foil.co.uk Sat Jan 19 13:57:10 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sat, 19 Jan 2008 13:57:10 +0000 Subject: [metaas-dev] try statements In-Reply-To: <478B623C.5030302@laposte.net> References: <478B623C.5030302@laposte.net> Message-ID: <20080119135709.GB14699@badgers-in-foil.co.uk> On Mon, Jan 14, 2008 at 02:23:08PM +0100, R?mi Flament wrote: > I've found another case which make the parser crash (attached file). > > The antlr file knows about the try {} catch {} structure but the java > model doesn't. Any better with changeset 592? ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sat Jan 19 14:18:39 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 14:18:39 +0000 Subject: [metaas-dev] [SVN metaas] check previously untested setSubscript() method References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/717d4397/attachment.htm From dave at badgers-in-foil.co.uk Sat Jan 19 14:22:58 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 14:22:58 +0000 Subject: [metaas-dev] [SVN metaas] add missing tests of field-access-expr setter methods References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/d015fa93/attachment.htm From dave at badgers-in-foil.co.uk Sat Jan 19 14:31:28 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 14:31:28 +0000 Subject: [metaas-dev] [SVN metaas] allow access to the list of entries in a switch-statement Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/1888bf54/attachment.htm From dave at badgers-in-foil.co.uk Sat Jan 19 16:37:32 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 16:37:32 +0000 Subject: [metaas-dev] [SVN metaas] finaly-clause must implement ScriptElement too References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/ffc7f5f7/attachment.htm From dave at badgers-in-foil.co.uk Sat Jan 19 18:07:07 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 18:07:07 +0000 Subject: [metaas-dev] [SVN metaas] Lets have simple names in the DOM API Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/ab3de0ab/attachment-0001.htm From dave at badgers-in-foil.co.uk Sat Jan 19 18:18:28 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 18:18:28 +0000 Subject: [metaas-dev] [SVN metaas] support for 'undefined'-literal in the DOM Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/8446c16b/attachment.htm From dave at badgers-in-foil.co.uk Sat Jan 19 23:45:17 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 23:45:17 +0000 Subject: [metaas-dev] [SVN metaas] fail with useful message on abuse of ASMethod in an interface Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/88b3dd61/attachment.htm From dave at badgers-in-foil.co.uk Sat Jan 19 23:55:53 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 19 Jan 2008 23:55:53 +0000 Subject: [metaas-dev] [SVN metaas] be more defensive against bad input References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080119/773b7bee/attachment-0001.htm From dave at badgers-in-foil.co.uk Sun Jan 20 00:14:53 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 20 Jan 2008 00:14:53 +0000 Subject: [metaas-dev] [SVN metaas] Proper access to while-loop body Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080120/cf7460a0/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 20 00:27:34 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 20 Jan 2008 00:27:34 +0000 Subject: [metaas-dev] [SVN metaas] added support for continue-statement Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080120/7eb5aa62/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 20 00:28:20 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 20 Jan 2008 00:28:20 +0000 Subject: [metaas-dev] [SVN metaas] test for continue-statement References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080120/f8ee9c92/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 20 00:43:42 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 20 Jan 2008 00:43:42 +0000 Subject: [metaas-dev] [SVN metaas] provide proper access to with-statement body Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080120/f7d4d8d2/attachment-0001.htm From dave at badgers-in-foil.co.uk Sun Jan 20 13:44:47 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 20 Jan 2008 13:44:47 +0000 Subject: [metaas-dev] [SVN metaas] Support for function-expression. Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080120/66a283ec/attachment-0001.htm From dave at badgers-in-foil.co.uk Sun Jan 20 14:29:01 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 20 Jan 2008 14:29:01 +0000 Subject: [metaas-dev] [SVN metaas] remove unused import References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080120/48113b45/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 20 14:30:38 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 20 Jan 2008 14:30:38 +0000 Subject: [metaas-dev] [SVN metaas] Support for array-literal-expression Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080120/d192063a/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 20 14:34:20 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 20 Jan 2008 14:34:20 +0000 Subject: [metaas-dev] [SVN metaas] create DOM nodes for array-literal-expression when parsed, too Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080120/50a88cb6/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 20 17:41:54 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 20 Jan 2008 17:41:54 +0000 Subject: [metaas-dev] [SVN metaas] Basic support for object-literal-expression Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080120/ef5457b7/attachment-0001.htm From rflament at laposte.net Sun Jan 20 19:45:43 2008 From: rflament at laposte.net (=?ISO-8859-1?Q?R=E9mi_Flament?=) Date: Sun, 20 Jan 2008 20:45:43 +0100 Subject: [metaas-dev] try statements In-Reply-To: <20080119135709.GB14699@badgers-in-foil.co.uk> References: <478B623C.5030302@laposte.net> <20080119135709.GB14699@badgers-in-foil.co.uk> Message-ID: <4793A4E7.4060203@laposte.net> Hi, Yes it's all fine now, at least with try statements ! But, as usual, I've found another case that doesn't work :-) Basically semi-colons are sometimes optionals... In my code I have something like : if (foo) { trace('xyz') } and this is valid according to flexbuilder. Note that there's no semicolon at the end of the statement. In the specs they talk about "automatic semicolon insertion" in the paragraph 7.9 : http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Personally I think this is stupid and I've corrected my code, but I'm not the one who wrote the specs :-) Thank you, R?mi. David Holroyd a ?crit : > On Mon, Jan 14, 2008 at 02:23:08PM +0100, R?mi Flament wrote: > >> I've found another case which make the parser crash (attached file). >> >> The antlr file knows about the try {} catch {} structure but the java >> model doesn't. >> > > Any better with changeset 592? > > > ta, > dave > > ___________________________________________________________________________ Yahoo! Mail r?invente le mail ! D?couvrez le nouveau Yahoo! Mail et son interface r?volutionnaire. http://fr.mail.yahoo.com From dave at badgers-in-foil.co.uk Sun Jan 20 23:13:13 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun, 20 Jan 2008 23:13:13 +0000 Subject: [metaas-dev] try statements In-Reply-To: <4793A4E7.4060203@laposte.net> References: <478B623C.5030302@laposte.net> <20080119135709.GB14699@badgers-in-foil.co.uk> <4793A4E7.4060203@laposte.net> Message-ID: <20080120231312.GA6897@badgers-in-foil.co.uk> On Sun, Jan 20, 2008 at 08:45:43PM +0100, R?mi Flament wrote: > But, as usual, I've found another case that doesn't work :-) > > Basically semi-colons are sometimes optionals... > > In my code I have something like : > > if (foo) > { > trace('xyz') > } > > and this is valid according to flexbuilder. > Note that there's no semicolon at the end of the statement. > > In the specs they talk about "automatic semicolon insertion" in the > paragraph 7.9 : > http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf > > Personally I think this is stupid and I've corrected my code, but I'm > not the one who wrote the specs :-) You can try enabling this in the grammar by editing src/main/antlr/org/asdt/core/internal/antlr/AS3.g3 and changing, semi : SEMI! // | { virtualSemi() }? ; so that the 'virtualSemi()' line isn't commented-out. I warn you though that you'll probably need to play with the JVM heap size settings to allow the JVM to use more memory, e.g. MAVEN_OPTS="-mx512M" mvn clean generate-sources I've currently got this feature disabled because it makes it quite a lot more difficult to work on the grammar. Can flexbuilder insert the missing semicolons for you? :) ta, dave -- http://david.holroyd.me.uk/ From rflament at laposte.net Mon Jan 21 16:16:07 2008 From: rflament at laposte.net (=?ISO-8859-1?Q?R=E9mi_Flament?=) Date: Mon, 21 Jan 2008 17:16:07 +0100 Subject: [metaas-dev] try statements In-Reply-To: <20080120231312.GA6897@badgers-in-foil.co.uk> References: <478B623C.5030302@laposte.net> <20080119135709.GB14699@badgers-in-foil.co.uk> <4793A4E7.4060203@laposte.net> <20080120231312.GA6897@badgers-in-foil.co.uk> Message-ID: <4794C547.7060805@laposte.net> OK, I'll try this ! I've just found another parsing error : "throw" statements are not handled by statementbuilder. Here is a exemple of code that causes the parser to crash : if (foo) { throw new Error("bar"); } Thanks, R?mi. David Holroyd a ?crit : > On Sun, Jan 20, 2008 at 08:45:43PM +0100, R?mi Flament wrote: > >> But, as usual, I've found another case that doesn't work :-) >> >> Basically semi-colons are sometimes optionals... >> >> In my code I have something like : >> >> if (foo) >> { >> trace('xyz') >> } >> >> and this is valid according to flexbuilder. >> Note that there's no semicolon at the end of the statement. >> >> In the specs they talk about "automatic semicolon insertion" in the >> paragraph 7.9 : >> http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf >> >> Personally I think this is stupid and I've corrected my code, but I'm >> not the one who wrote the specs :-) >> > > You can try enabling this in the grammar by editing > > src/main/antlr/org/asdt/core/internal/antlr/AS3.g3 > > and changing, > > semi > : SEMI! > // | { virtualSemi() }? > ; > > so that the 'virtualSemi()' line isn't commented-out. > > I warn you though that you'll probably need to play with the JVM heap > size settings to allow the JVM to use more memory, e.g. > > MAVEN_OPTS="-mx512M" mvn clean generate-sources > > I've currently got this feature disabled because it makes it quite a lot > more difficult to work on the grammar. > > Can flexbuilder insert the missing semicolons for you? :) > > > ta, > dave > > ___________________________________________________________________________ Yahoo! Mail r?invente le mail ! D?couvrez le nouveau Yahoo! Mail et son interface r?volutionnaire. http://fr.mail.yahoo.com From dave at badgers-in-foil.co.uk Mon Jan 21 22:12:27 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 21 Jan 2008 22:12:27 +0000 Subject: [metaas-dev] [SVN metaas] make for less-confusing error messages when we encounter these as yet unhandled literals References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080121/d1f4b617/attachment.htm From dave at badgers-in-foil.co.uk Mon Jan 21 22:29:10 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 21 Jan 2008 22:29:10 +0000 Subject: [metaas-dev] [SVN metaas] simple throw-statement support Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080121/2a2fa1a2/attachment-0001.htm From dave at badgers-in-foil.co.uk Mon Jan 21 23:05:57 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 21 Jan 2008 23:05:57 +0000 Subject: [metaas-dev] [SVN metaas] expose information about the variables in a declaration-statement Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080121/10855867/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 22 21:38:26 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 22 Jan 2008 21:38:26 +0000 Subject: [metaas-dev] [SVN metaas] rather poor support for xml-literal-expression Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080122/d2fe8c40/attachment.htm From rflament at laposte.net Tue Jan 22 21:45:30 2008 From: rflament at laposte.net (=?ISO-8859-1?Q?R=E9mi_Flament?=) Date: Tue, 22 Jan 2008 22:45:30 +0100 Subject: [metaas-dev] walker and visitor for asmethods Message-ID: <479663FA.8050203@laposte.net> Hi, I wrote a small set of classes to simplify the walking of a ASMethod code. I followed the ASVisitor and ASWalker examples. I use it myself to find the list of variables that each method uses. Hope it helps, R?mi. -------------- next part -------------- A non-text attachment was scrubbed... Name: ASMethodVisitor.java Type: text/x-java Size: 2780 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080122/e46582ae/attachment.java -------------- next part -------------- A non-text attachment was scrubbed... Name: ASMethodWalker.java Type: text/x-java Size: 7724 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080122/e46582ae/attachment-0001.java -------------- next part -------------- A non-text attachment was scrubbed... Name: AbstractASMethodVisitor.java Type: text/x-java Size: 2979 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080122/e46582ae/attachment-0002.java From dave at badgers-in-foil.co.uk Wed Jan 23 08:44:39 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed, 23 Jan 2008 08:44:39 +0000 Subject: [metaas-dev] ASForStatement.getInit() In-Reply-To: <000d01c85d69$9e5e0450$0201a8c0@CreativeRoomPC> References: <000d01c85d69$9e5e0450$0201a8c0@CreativeRoomPC> Message-ID: <20080123084439.GB18411@badgers-in-foil.co.uk> On Tue, Jan 22, 2008 at 09:42:37PM -0500, Matthew J Tretter wrote: > Wow, Dave. You've been doing a ton of work lately! Thanks! > > One question, though. What happened to ASForStatement.getInit? I'm > pretty sure I sent a patch with it a while back but the newest > revision doesn't seem to have it. Of course, I could be completely > mistaken and may have forgotten to include it. Could be I lost it -- I wrote access to the other parts of for-statement from scratch. After a quick look though past mails, I don't see a patch mentioning for-loops. I didn't include the init-clause because I've simply not paused to work out what type of value to produce. No ASExpression currently allows 'var' to appear, so that doesn't fit, and I recall thinking that ASDeclarationStatement wasn't right either. It needs a poke around inside the AS3 lang spec to see what would work, or if a new type should be created. If you've got that covered, send the patch through again! :) ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Wed Jan 23 08:57:34 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed, 23 Jan 2008 08:57:34 +0000 Subject: [metaas-dev] walker and visitor for asmethods In-Reply-To: <479663FA.8050203@laposte.net> References: <479663FA.8050203@laposte.net> Message-ID: <20080123085733.GC18411@badgers-in-foil.co.uk> On Tue, Jan 22, 2008 at 10:45:30PM +0100, R?mi Flament wrote: > Hi, > > I wrote a small set of classes to simplify the walking of a ASMethod code. > I followed the ASVisitor and ASWalker examples. > > I use it myself to find the list of variables that each method uses. > > Hope it helps, It is! This is exactly the kind of think I want to include in the public API. I want a combined visitor/walker thing that covers the complete DOM, so I will extend these classes a bit. The use case I want to support is really simple expression simplification. e.g. 'if (a() || true)' => 'if (a())'. It would be helpful to know what the concrete visitor implementation you use looks like, so that I can support other common scenarios better too. Thanks for the great contribution! ta, dave -- http://david.holroyd.me.uk/ From rflament at laposte.net Wed Jan 23 15:28:04 2008 From: rflament at laposte.net (=?ISO-8859-1?Q?R=E9mi_Flament?=) Date: Wed, 23 Jan 2008 16:28:04 +0100 Subject: [metaas-dev] walker and visitor for asmethods In-Reply-To: <20080123085733.GC18411@badgers-in-foil.co.uk> References: <479663FA.8050203@laposte.net> <20080123085733.GC18411@badgers-in-foil.co.uk> Message-ID: <47975D04.8090303@laposte.net> Hi, I use it to generate several kinds of graphic with graphviz. (http://www.graphviz.org/) The visitor generates a text file which I give to graphviz to generate a png file (dot dot.dot -Tpng -odot.png) I've attached an example of visitor implementation and a sample output (text and png). R?mi. David Holroyd a ?crit : > On Tue, Jan 22, 2008 at 10:45:30PM +0100, R?mi Flament wrote: > >> Hi, >> >> I wrote a small set of classes to simplify the walking of a ASMethod code. >> I followed the ASVisitor and ASWalker examples. >> >> I use it myself to find the list of variables that each method uses. >> >> Hope it helps, >> > > It is! > > This is exactly the kind of think I want to include in the public API. > > I want a combined visitor/walker thing that covers the complete DOM, so > I will extend these classes a bit. > > The use case I want to support is really simple expression > simplification. e.g. 'if (a() || true)' => 'if (a())'. > > It would be helpful to know what the concrete visitor implementation > you use looks like, so that I can support other common scenarios better > too. > > Thanks for the great contribution! > > > ta, > dave > > -------------- next part -------------- A non-text attachment was scrubbed... Name: DotASVisitor.java Type: text/x-java Size: 2313 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080123/1a0bf876/attachment-0002.java -------------- next part -------------- A non-text attachment was scrubbed... Name: GraphGenerator.java Type: text/x-java Size: 1068 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080123/1a0bf876/attachment-0003.java -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dot.dot Url: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080123/1a0bf876/attachment-0001.txt -------------- next part -------------- A non-text attachment was scrubbed... Name: dot.png Type: image/png Size: 172112 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080123/1a0bf876/attachment-0001.png From dave at badgers-in-foil.co.uk Wed Jan 23 17:01:52 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed, 23 Jan 2008 17:01:52 +0000 Subject: [metaas-dev] walker and visitor for asmethods In-Reply-To: <47975D04.8090303@laposte.net> References: <479663FA.8050203@laposte.net> <20080123085733.GC18411@badgers-in-foil.co.uk> <47975D04.8090303@laposte.net> Message-ID: <20080123170150.GA23522@badgers-in-foil.co.uk> On Wed, Jan 23, 2008 at 04:28:04PM +0100, R?mi Flament wrote: > I use it to generate several kinds of graphic with graphviz. > (http://www.graphviz.org/) > The visitor generates a text file which I give to graphviz to generate a > png file (dot dot.dot -Tpng -odot.png) Yay! I use it to visualise the AST when debugging problems in the data structure, http://svn.badgers-in-foil.co.uk/metaas/trunk/src/test/java/uk/co/badgersinfoil/metaas/impl/antlr/ASTDot.java (attached image reveals the AST for regexps is broken right now) > I've attached an example of visitor implementation and a sample output > (text and png). I will try to consider your usage when I get around to looking at visitor stuff. Thanks for your work! dave -- http://david.holroyd.me.uk/ -------------- next part -------------- A non-text attachment was scrubbed... Name: test.png Type: image/png Size: 58802 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080123/5856f767/attachment-0001.png From matthew at exanimo.com Thu Jan 24 03:48:52 2008 From: matthew at exanimo.com (Matthew J Tretter) Date: Wed, 23 Jan 2008 22:48:52 -0500 Subject: [metaas-dev] ASForStatement.getInit() References: <000d01c85d69$9e5e0450$0201a8c0@CreativeRoomPC> <20080123084439.GB18411@badgers-in-foil.co.uk> Message-ID: <002d01c85e3c$0a0704e0$0201a8c0@CreativeRoomPC> > I didn't include the init-clause because I've simply not paused to work > out what type of value to produce. No ASExpression currently allows > 'var' to appear, so that doesn't fit, and I recall thinking that > ASDeclarationStatement wasn't right either. > > It needs a poke around inside the AS3 lang spec to see what would work, > or if a new type should be created. > > If you've got that covered, send the patch through again! :) Well, here's something that gets the job done, though it's probably not an ideal solution. matthew -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: diff.txt Url: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080123/0114f147/attachment.txt From dave at badgers-in-foil.co.uk Fri Jan 25 00:45:15 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Fri, 25 Jan 2008 00:45:15 +0000 Subject: [metaas-dev] [SVN metaas] add bugfix in regexp processing already put in place for e4x processing References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080125/45462e4c/attachment.htm From dave at badgers-in-foil.co.uk Fri Jan 25 00:50:20 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Fri, 25 Jan 2008 00:50:20 +0000 Subject: [metaas-dev] [SVN metaas] give better structure to the AST created by regexp literals References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080125/eb2555a2/attachment.htm From dave at badgers-in-foil.co.uk Fri Jan 25 00:56:27 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Fri, 25 Jan 2008 00:56:27 +0000 Subject: [metaas-dev] [SVN metaas] rather poor regexp-literal-expression support Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080125/8f99e574/attachment.htm From dave at badgers-in-foil.co.uk Fri Jan 25 01:03:30 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Fri, 25 Jan 2008 01:03:30 +0000 Subject: [metaas-dev] [SVN metaas] support for regexp-literal-expression References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080125/96c11a98/attachment.htm From dave at badgers-in-foil.co.uk Fri Jan 25 01:05:40 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Fri, 25 Jan 2008 01:05:40 +0000 Subject: [metaas-dev] [SVN metaas] even simpler usage in the common debug case References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080125/45074495/attachment-0001.htm From matthew at exanimo.com Fri Jan 25 02:46:32 2008 From: matthew at exanimo.com (Matthew J Tretter) Date: Thu, 24 Jan 2008 21:46:32 -0500 Subject: [metaas-dev] dynamic/final/intrinsic Message-ID: <008f01c85efc$7f4ad7c0$0201a8c0@CreativeRoomPC> Added support for the dynamic, final, and intrinsic class modifiers. The spec doesn't list "intrinsic" as a valid modifier but it definitely exists so.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080124/493bd118/attachment.htm -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: diff.txt Url: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080124/493bd118/attachment.txt From matthew at exanimo.com Fri Jan 25 04:19:25 2008 From: matthew at exanimo.com (Matthew J Tretter) Date: Thu, 24 Jan 2008 23:19:25 -0500 Subject: [metaas-dev] dynamic/final/intrinsic References: <008f01c85efc$7f4ad7c0$0201a8c0@CreativeRoomPC> Message-ID: <00b001c85f09$78d839c0$0201a8c0@CreativeRoomPC> Actually, it looks like intrinsic was replaced with "native" (even though I have some FP9 classes that still include it... strange). Here's a version of the patch that just includes support for dynamic and final modifiers. matthew -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080124/d4fcb88d/attachment.htm -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: diff.txt Url: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080124/d4fcb88d/attachment.txt From matthew at exanimo.com Fri Jan 25 05:32:24 2008 From: matthew at exanimo.com (Matthew J Tretter) Date: Fri, 25 Jan 2008 00:32:24 -0500 Subject: [metaas-dev] ASXMLLiteral.getValueString Message-ID: <00cc01c85f13$ab421070$0201a8c0@CreativeRoomPC> A simple little method I needed to let me peek inside the XML literal. I also tried to figure out how to stop the e4x descendant operator from throwing an error but it's over my head. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080125/507ef866/attachment.htm -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: diff.txt Url: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080125/507ef866/attachment.txt From dave at badgers-in-foil.co.uk Sun Jan 27 18:14:58 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 27 Jan 2008 18:14:58 +0000 Subject: [metaas-dev] [SVN metaas] improve parser support for E4X query expression syntaxes References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080127/61b1d9d4/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 27 18:21:14 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 27 Jan 2008 18:21:14 +0000 Subject: [metaas-dev] [SVN metaas] simple support for the E4X descendant accessor operator Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080127/134823e9/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 27 18:50:30 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 27 Jan 2008 18:50:30 +0000 Subject: [metaas-dev] [SVN metaas] simple support for E4X filter predicate query expression syntax Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080127/ba588735/attachment-0001.htm From matthew at exanimo.com Sun Jan 27 23:08:55 2008 From: matthew at exanimo.com (Matthew J Tretter) Date: Sun, 27 Jan 2008 18:08:55 -0500 Subject: [metaas-dev] ASSwitchCase.getLabelValue() Message-ID: <001301c86139$979bcf20$0201a8c0@CreativeRoomPC> I know you're probably trying to decide whether switch cases should have their own class, but I figured I'd send this along anyway. BTW, thanks for fixing the XML descendant operator! Any chance you might have time to take a look at the @ operator too? (I know.. never satisfied.) Thanks again, matthew -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080127/1d2d1a01/attachment.htm -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: diff.txt Url: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080127/1d2d1a01/attachment.txt From dave at badgers-in-foil.co.uk Sun Jan 27 23:10:22 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 27 Jan 2008 23:10:22 +0000 Subject: [metaas-dev] [SVN metaas] ASCatchClause should be a ScriptElement too! References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080127/468f4e13/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 27 23:22:07 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 27 Jan 2008 23:22:07 +0000 Subject: [metaas-dev] [SVN metaas] support access to case-clause label value as an ASExpression Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080127/75b45c46/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 27 23:37:53 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 27 Jan 2008 23:37:53 +0000 Subject: [metaas-dev] [SVN metaas] String access to XML literal values Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080127/d8fae1e9/attachment.htm From dave at badgers-in-foil.co.uk Sun Jan 27 23:50:49 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sun, 27 Jan 2008 23:50:49 +0000 Subject: [metaas-dev] [SVN metaas] GAR! Convert to use unix-style line endings References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080127/bb533a4e/attachment-0001.htm From dave at badgers-in-foil.co.uk Mon Jan 28 00:02:28 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 28 Jan 2008 00:02:28 +0000 Subject: [metaas-dev] [SVN metaas] allow programatic reference to 'finally' token type References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080128/8d9dc1e9/attachment.htm From dave at badgers-in-foil.co.uk Mon Jan 28 00:08:19 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 28 Jan 2008 00:08:19 +0000 Subject: [metaas-dev] [SVN metaas] Matthew J Tretter's patch to expose 'dynamic' and 'final' attributes of class defs Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080128/1b2a690c/attachment.htm From dave at badgers-in-foil.co.uk Mon Jan 28 08:11:16 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 28 Jan 2008 08:11:16 +0000 Subject: [metaas-dev] [SVN metaas] ASNewExpression and ASInvocationExpression now both inherit common functionality from a common supertype, Invocation. Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080128/b081df5e/attachment.htm From dave at badgers-in-foil.co.uk Mon Jan 28 08:15:45 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 28 Jan 2008 08:15:45 +0000 Subject: [metaas-dev] [SVN metaas] fix unit tests after API change Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080128/17125f51/attachment-0001.htm From dave at badgers-in-foil.co.uk Mon Jan 28 23:44:53 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Mon, 28 Jan 2008 23:44:53 +0000 Subject: [metaas-dev] [SVN metaas] bits of the implementation assume that all ASExpressions are subclasses of ASTASExpression References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080128/eeeb1ce5/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 29 21:28:10 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 29 Jan 2008 21:28:10 +0000 Subject: [metaas-dev] [SVN metaas] Improve parsing and AST generation for attribute-expressions References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080129/f4cb0906/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 29 21:29:20 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 29 Jan 2008 21:29:20 +0000 Subject: [metaas-dev] [SVN metaas] acommodate change from STAR to MULT in the grammar References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080129/c5df07d9/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 29 21:30:19 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 29 Jan 2008 21:30:19 +0000 Subject: [metaas-dev] [SVN metaas] functions to build '@' and '*' (multiplication) tokens References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080129/a53ef0f9/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 29 21:31:26 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 29 Jan 2008 21:31:26 +0000 Subject: [metaas-dev] [SVN metaas] utility for stringifying simple qualifiedIdent ASTs References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080129/9be0b329/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 29 21:32:35 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 29 Jan 2008 21:32:35 +0000 Subject: [metaas-dev] [SVN metaas] utility for parsing simple qualifiedIdent inputs References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080129/91182a5e/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 29 21:38:56 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 29 Jan 2008 21:38:56 +0000 Subject: [metaas-dev] [SVN metaas] expose support for attribute-access-expression Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080129/ab66876b/attachment-0001.htm From dave at badgers-in-foil.co.uk Tue Jan 29 21:40:29 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 29 Jan 2008 21:40:29 +0000 Subject: [metaas-dev] [SVN metaas] expose support for attribute-access-expression Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080129/58416501/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 29 21:55:41 2008 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Tue, 29 Jan 2008 21:55:41 +0000 Subject: [metaas-dev] Renaming ASExpression -> Expression Message-ID: <20080129215541.GA1141@badgers-in-foil.co.uk> I had this plan that I'd only use the "AS" prefix on the 'leaves' of the DOM type hierarchy, and drop it for any type which only acts as a supertype to other things. I've managed to break this convention in a couple of places unfortunately, and while I can't immidiately do anything about ASMember, I was thinking that since I didn't announce an official release with expression support yet, I should take this opportunity to rename "ASExpression" to just "Expression". This will mirror the distinction between "Statement" and its subtypes (e.g. "ASExpressionStatement"). Is this a prob for anyone? ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Tue Jan 29 22:02:47 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 29 Jan 2008 22:02:47 +0000 Subject: [metaas-dev] [SVN metaas] oops References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080129/d7723ddf/attachment.htm From dave at badgers-in-foil.co.uk Tue Jan 29 22:49:03 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 29 Jan 2008 22:49:03 +0000 Subject: [metaas-dev] [SVN metaas] Testing the failure case doesn't give the hoped-for increase in code coverage for the switch-case in StatementBuilder.java Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080129/787a7dd8/attachment.htm From dave at badgers-in-foil.co.uk Thu Jan 31 23:04:45 2008 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Thu, 31 Jan 2008 23:04:45 +0000 Subject: [metaas-dev] [SVN metaas] Access to the for-loop init-clause. Wish API could be nicer. Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20080131/ca3a1235/attachment.htm