From dave at badgers-in-foil.co.uk Thu Feb 1 08:39:48 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Thu Feb 1 08:40:04 2007 Subject: [metaas-dev] [SVN metaas] changed case of filename to match grammar name References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070201/ce13f42e/attachment.html From dave at badgers-in-foil.co.uk Thu Feb 1 08:44:03 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Thu Feb 1 08:44:06 2007 Subject: [metaas-dev] [SVN metaas] fix FOR_INIT AST construction References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070201/c1199e41/attachment.htm From dave at badgers-in-foil.co.uk Sun Feb 4 00:22:13 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 4 00:22:25 2007 Subject: [metaas-dev] [SVN metaas] exercise for-each-in syntax References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070204/fd20a2cd/attachment.html From dave at badgers-in-foil.co.uk Sun Feb 4 16:01:31 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 4 16:01:38 2007 Subject: [metaas-dev] [SVN metaas] fix typos References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070204/66f50f21/attachment.htm From dave at badgers-in-foil.co.uk Sun Feb 4 22:55:06 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 4 22:55:13 2007 Subject: [metaas-dev] [SVN metaas] Improved API to handle if-statements and for-statements. Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070204/e407e2ae/attachment.html From dave at badgers-in-foil.co.uk Sun Feb 4 22:57:07 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 4 22:57:09 2007 Subject: [metaas-dev] [SVN metaas] Improved API to handle if-statements and for-statements. Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070204/df6cf8c1/attachment.htm From dave at badgers-in-foil.co.uk Sun Feb 4 22:58:03 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 4 22:58:04 2007 Subject: [metaas-dev] [SVN metaas] new Statement supertype for all statement-representing interfaces Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070204/2969d555/attachment.html From dave at badgers-in-foil.co.uk Sun Feb 4 23:08:46 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 4 23:08:47 2007 Subject: [metaas-dev] [SVN metaas] missed a renaming References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070204/539d3ca3/attachment.htm From dave at badgers-in-foil.co.uk Sun Feb 4 23:22:30 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 4 23:22:32 2007 Subject: [metaas-dev] [SVN metaas] correct typo in method name Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070204/8759593a/attachment.html From dave at badgers-in-foil.co.uk Sun Feb 4 23:27:45 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 4 23:27:47 2007 Subject: [metaas-dev] [SVN metaas] fix layout bug in modifier handling References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070204/0497225f/attachment.htm From dave at badgers-in-foil.co.uk Sun Feb 4 23:08:13 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Mon Feb 5 08:28:06 2007 Subject: [metaas-dev] [SVN metaas] renamed 'ASTFactory' to 'ASTBuilder', reflecting the design pattern actually implemented by the class Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070204/9c08d543/attachment.html From fpalma at gestors.net Mon Feb 5 16:00:31 2007 From: fpalma at gestors.net (Francesco Palma) Date: Mon Feb 5 15:53:36 2007 Subject: [metaas-dev] Collaboration Message-ID: <002001c7493e$c3b7c870$0e63a8c0@urquinaona.cggc.org> Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: wsdl.xml Type: text/xml Size: 5057 bytes Desc: not available Url : http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070205/9a80fc02/wsdl.bin From dave at badgers-in-foil.co.uk Mon Feb 5 16:19:11 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon Feb 5 16:22:24 2007 Subject: [metaas-dev] Collaboration In-Reply-To: <002001c7493e$c3b7c870$0e63a8c0@urquinaona.cggc.org> References: <002001c7493e$c3b7c870$0e63a8c0@urquinaona.cggc.org> Message-ID: <20070205161911.GA31697@badgers-in-foil.co.uk> Hi there! On Mon, Feb 05, 2007 at 05:00:31PM +0100, Francesco Palma wrote: > We are developing an application with a flex client that use a > webservice interface and we would like to use your application to > generate the stub code to access to the webservice . Unfortunately > this attempt give us an error that is: > > ------------------------------------------------------------------------------------------------------------------------ > C:\>java -jar wsdl2as-0.1-SNAPSHOT-jar-with-dependencies.jar -o wsstubs --mapping asxsd http://urqpro1:8080/ClusteredExample/AdminService?wsdl > Exception in thread "main" uk.co.badgersinfoil.metaas.SyntaxException: MismatchedTokenException(54!=60) I'll try to take a look at the error soon. I've not yet switched wsdl2as over to use the latest release of metaas (0.5 should do a slightly better job of describing the MismatchedTokenException). This is still caused by an error in wsdl2as, anyway, even if metaas does a bad job of describing it. Note that even after fixing this immidiate issue, wsdl2as doesn't do anything with 'nillable' specifications in the Schema. Not sure if that will pose a problem for you or not... Anyway, I'll try and look at the error some evening this week. (Re. collaboration: Examples of WSDL files that don't work are very useful! Are you thinking of making changes to the wsdl2as Java code too?) thanks! dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Mon Feb 5 22:27:53 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon Feb 5 22:28:04 2007 Subject: [metaas-dev] Collaboration In-Reply-To: <002001c7493e$c3b7c870$0e63a8c0@urquinaona.cggc.org> References: <002001c7493e$c3b7c870$0e63a8c0@urquinaona.cggc.org> Message-ID: <20070205222753.GA4474@badgers-in-foil.co.uk> On Mon, Feb 05, 2007 at 05:00:31PM +0100, Francesco Palma wrote: > We send to you the output wsdl file too, as attachment!!! We hope you > can kindly help us and anyway, if you want, we would like to help you > and work with you to improve the application. Did you save the WSDL from a browser, or edit it before sending? I'm afraid it doesn't appear to be a well-formed XML file at this end... ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Tue Feb 6 10:10:31 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Tue Feb 6 10:10:48 2007 Subject: [metaas-dev] Collaboration In-Reply-To: <002701c749d4$a8b83f50$0e63a8c0@urquinaona.cggc.org> References: <002001c7493e$c3b7c870$0e63a8c0@urquinaona.cggc.org> <20070205222753.GA4474@badgers-in-foil.co.uk> <002701c749d4$a8b83f50$0e63a8c0@urquinaona.cggc.org> Message-ID: <20070206101031.GB475@badgers-in-foil.co.uk> On Tue, Feb 06, 2007 at 10:53:28AM +0100, Francesco Palma wrote: > >(Re. collaboration: Examples of WSDL files that don't work are very > >useful! Are you thinking of making changes to the wsdl2as Java code > >too?) > Yes of course!!! > Beacause of our project is quite big, we have a lot of WSDL files. Further > we would be happy to make chenges to the wsdl2as Java code too!!! > We are most interested to types of the WSDL file and to the marshalling and > unmarshalling of them!!! Have you looked at the code of the 'asxsd' project? It is not very pretty ;) Any help would be great though! thanks, dave From dave at badgers-in-foil.co.uk Tue Feb 6 15:10:18 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Tue Feb 6 15:10:27 2007 Subject: Fw: [metaas-dev] Collaboration In-Reply-To: <003101c749d5$33e11840$0e63a8c0@urquinaona.cggc.org> References: <003101c749d5$33e11840$0e63a8c0@urquinaona.cggc.org> Message-ID: <20070206151018.GA16526@badgers-in-foil.co.uk> On Tue, Feb 06, 2007 at 10:57:21AM +0100, Francesco Palma wrote: > I'm sorry but there was a mistake with the attachment. I send you again > the correct file Ok, I'll wait until then. Oh, and you might want to ensure that the WSDL either works without the referenced schema files it includes, or that you attach those files also. Thanks! dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Fri Feb 9 14:31:51 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Fri Feb 9 14:32:01 2007 Subject: [metaas-dev] [SVN metaas] oops; semicolons shouldn't be in the AST References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070209/2cff35a8/attachment.html From dave at badgers-in-foil.co.uk Fri Feb 9 23:32:03 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Fri Feb 9 23:32:09 2007 Subject: [metaas-dev] [SVN metaas] have the error message describe the dodgy value that was given References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070209/184d7055/attachment.htm From dave at badgers-in-foil.co.uk Fri Feb 9 23:33:14 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Fri Feb 9 23:33:16 2007 Subject: [metaas-dev] [SVN metaas] handle lazy init of the 'children' field References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070209/e70c1013/attachment.html From dave at badgers-in-foil.co.uk Fri Feb 9 23:35:01 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Fri Feb 9 23:35:16 2007 Subject: [metaas-dev] [SVN metaas] too many calls to i.next(), I think References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070209/54da6ea0/attachment.htm From dave at badgers-in-foil.co.uk Sat Feb 10 00:00:15 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 00:00:16 2007 Subject: [metaas-dev] [SVN metaas] improve 'placeholder'-token handling References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/1aea80ab/attachment.html From dave at badgers-in-foil.co.uk Sat Feb 10 00:02:53 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 00:02:55 2007 Subject: [metaas-dev] [SVN metaas] use placeholder tokens to anchor ANNOTATIONS nodes to the right place in the token stream Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/26814065/attachment-0001.htm From dave at badgers-in-foil.co.uk Sat Feb 10 00:06:04 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 00:06:05 2007 Subject: [metaas-dev] [SVN metaas] shift toModifiers() over to ModifierUtils, so that it can be with its friends Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/94423ed7/attachment.html From dave at badgers-in-foil.co.uk Sat Feb 10 00:08:12 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 00:08:13 2007 Subject: [metaas-dev] [SVN metaas] remove unused imports Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/3b8fc9d8/attachment.htm From dave at badgers-in-foil.co.uk Sat Feb 10 13:53:17 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 13:53:26 2007 Subject: [metaas-dev] [SVN metaas] better support for for-in-loops Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/384c3e6e/attachment.html From dave at badgers-in-foil.co.uk Sat Feb 10 14:22:39 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 14:22:42 2007 Subject: [metaas-dev] [SVN metaas] better support for for-each-in-loops; factor common for-in implementation into a helper class Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/41e9f310/attachment-0001.htm From dave at badgers-in-foil.co.uk Sat Feb 10 15:12:26 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 15:12:31 2007 Subject: [metaas-dev] [SVN metaas] better support for for-each-in-loops; factor common for-in implementation into a helper class Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/41137df5/attachment.html From dave at badgers-in-foil.co.uk Sat Feb 10 15:13:16 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 15:13:17 2007 Subject: [metaas-dev] [SVN metaas] better support for for-each-in-loops; factor common for-in implementation into a helper class Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/3695e3c1/attachment.htm From dave at badgers-in-foil.co.uk Sat Feb 10 15:14:49 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 15:14:52 2007 Subject: [metaas-dev] [SVN metaas] improved handling for while-loop statements Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/da9a4eda/attachment-0001.html From dave at badgers-in-foil.co.uk Sat Feb 10 15:34:27 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 15:34:29 2007 Subject: [metaas-dev] [SVN metaas] better support for do-while-loops Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/85b53efd/attachment.htm From dave at badgers-in-foil.co.uk Sat Feb 10 17:41:57 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 17:42:05 2007 Subject: [metaas-dev] [SVN metaas] improved handling for switch-statements Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/6983bde6/attachment-0001.html From dave at badgers-in-foil.co.uk Sat Feb 10 23:56:52 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 23:56:59 2007 Subject: [metaas-dev] [SVN metaas] retrofit these interfaces to extend 'Statement' too Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/a5666ed4/attachment.htm From dave at badgers-in-foil.co.uk Sat Feb 10 23:59:16 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 10 23:59:17 2007 Subject: [metaas-dev] [SVN metaas] oh yes; blocks are Statements too References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070210/b3a732f7/attachment.html From dave at badgers-in-foil.co.uk Sun Feb 11 20:00:33 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 11 20:00:46 2007 Subject: [metaas-dev] [SVN metaas] more Javadoc Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070211/faec6ddd/attachment.htm From dave at badgers-in-foil.co.uk Mon Feb 12 00:04:57 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Mon Feb 12 00:05:23 2007 Subject: [metaas-dev] [SVN metaas] extract some common code from implementors of StatementContainer Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070212/ed7de9ad/attachment-0001.html From dave at badgers-in-foil.co.uk Mon Feb 12 22:35:58 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Mon Feb 12 22:36:07 2007 Subject: [metaas-dev] [SVN metaas] enhanced support for expression-statements Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070212/10b53abf/attachment.htm From dave at badgers-in-foil.co.uk Mon Feb 12 23:46:51 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Mon Feb 12 23:46:56 2007 Subject: [metaas-dev] [SVN metaas] Different top-level AST nodes betwen 'for' and 'for-in' loops. References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070212/170ecd8a/attachment.html From dave at badgers-in-foil.co.uk Mon Feb 12 23:47:30 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Mon Feb 12 23:47:32 2007 Subject: [metaas-dev] [SVN metaas] add a TODO note References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070212/755b055a/attachment.htm From application9955 at yahoo.com.cn Tue Feb 13 16:04:22 2007 From: application9955 at yahoo.com.cn (Billy Wang) Date: Tue Feb 13 16:07:43 2007 Subject: [metaas-dev] Please help me Message-ID: <423580.65376.qm@web15701.mail.cnb.yahoo.com> Hi, I encounter some problem when I use metaas. I copy the example code shown in metaas api 5.0 directly, the code is shown as follow: 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.addStatement("trace('Hello world')"); proj.writeAll(); however, when i try to compile it, there are errors: Exception in thread "main" java.lang.NullPointerException at uk.co.badgersinfoil.metaas.impl.ASTActionScriptProject.filenameFor(ASTActionScriptProject.java:138) at uk.co.badgersinfoil.metaas.impl.ASTActionScriptProject.write(ASTActionScriptProject.java:127) at uk.co.badgersinfoil.metaas.impl.ASTActionScriptProject.writeAll(ASTActionScriptProject.java:111) i don't know how to fix it. can u give me some suggestion? thank u. --------------------------------- Mp3???-??????? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070214/eafdde2f/attachment.html From dave at badgers-in-foil.co.uk Tue Feb 13 16:31:20 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Tue Feb 13 16:31:22 2007 Subject: [metaas-dev] [SVN metaas] possible fix for bug reported by Billy Wang References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070213/3c9795b4/attachment.htm From dave at badgers-in-foil.co.uk Tue Feb 13 16:35:32 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Tue Feb 13 16:35:34 2007 Subject: [metaas-dev] Please help me In-Reply-To: <423580.65376.qm@web15701.mail.cnb.yahoo.com> References: <423580.65376.qm@web15701.mail.cnb.yahoo.com> Message-ID: <20070213163532.GA16401@badgers-in-foil.co.uk> On Wed, Feb 14, 2007 at 12:04:22AM +0800, Billy Wang wrote: > Exception in thread "main" java.lang.NullPointerException > at uk.co.badgersinfoil.metaas.impl.ASTActionScriptProject.filenameFor(ASTActionScriptProject.java:138) > at uk.co.badgersinfoil.metaas.impl.ASTActionScriptProject.write(ASTActionScriptProject.java:127) > at uk.co.badgersinfoil.metaas.impl.ASTActionScriptProject.writeAll(ASTActionScriptProject.java:111) > > i don't know how to fix it. can u give me some suggestion? thank u. Oh dear! Looks like I broke the handling of types in the 'default' package. I will send you an updated metaas jar (which hopefully fixes this) in a private email... Thanks for pointing out the problem! dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Tue Feb 13 22:59:43 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Tue Feb 13 22:59:57 2007 Subject: [metaas-dev] [SVN metaas] test case for the bug reported earlier by Billy Wang Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070213/9a857496/attachment.html From dave at badgers-in-foil.co.uk Tue Feb 13 23:04:23 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Tue Feb 13 23:04:25 2007 Subject: [metaas-dev] [SVN metaas] fix method name in example code References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070213/0b3be583/attachment.htm From dave at badgers-in-foil.co.uk Wed Feb 14 00:05:05 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Wed Feb 14 00:05:08 2007 Subject: [metaas-dev] [SVN metaas] define tokens for more keywords, so that we can refer to them from Java code References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070214/8a0ee33b/attachment.html From dave at badgers-in-foil.co.uk Wed Feb 14 00:44:00 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Wed Feb 14 00:44:03 2007 Subject: [metaas-dev] [SVN metaas] enhanced support for 'declaration', 'return' and 'with' statements, and the ability to list the statements in a StatementContainer Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070214/80269132/attachment.htm From dave at badgers-in-foil.co.uk Wed Feb 14 16:33:03 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed Feb 14 16:33:14 2007 Subject: [metaas-dev] Please help me In-Reply-To: <191142.44083.qm@web15705.mail.cnb.yahoo.com> References: <20070213163830.GB16401@badgers-in-foil.co.uk> <191142.44083.qm@web15705.mail.cnb.yahoo.com> Message-ID: <20070214163303.GA4203@badgers-in-foil.co.uk> On Wed, Feb 14, 2007 at 11:40:22PM +0800, Billy Wang wrote: > Great! it work well! thank u very much! Good! Thanks for taking the time to check it. ta, dave From dave at badgers-in-foil.co.uk Thu Feb 15 08:48:24 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Thu Feb 15 08:48:37 2007 Subject: [metaas-dev] [SVN metaas] last release's metadata References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070215/09416479/attachment.html From liguorien at hotmail.com Fri Feb 16 03:14:35 2007 From: liguorien at hotmail.com (=?Windows-1252?Q?Nicolas_D=E9sy?=) Date: Fri Feb 16 03:15:26 2007 Subject: [metaas-dev] AS3Parser dependency ? Message-ID: Hi all, I'm using the 0.5 release and I'm trying to building from sources to add some missing feature. But the JAR which contains org.asdt.core.internal.antlr.AS3Parser is missing and I can't find the sources on the SVN repository. Can someone can tell where can I find this parser to build the sources ? Thanks in advance, Nicolas From dave at badgers-in-foil.co.uk Fri Feb 16 09:11:03 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri Feb 16 09:11:09 2007 Subject: [metaas-dev] AS3Parser dependency ? In-Reply-To: References: Message-ID: <20070216091103.GA11505@badgers-in-foil.co.uk> Hi Nicolas! On Thu, Feb 15, 2007 at 10:14:35PM -0500, Nicolas D?sy wrote: > I'm using the 0.5 release and I'm trying to building from sources to add > some missing feature. But the JAR which contains > org.asdt.core.internal.antlr.AS3Parser is missing and I can't find the > sources on the SVN repository. > > Can someone can tell where can I find this parser to build the sources ? This class is generated by ANTLR, from the AS3.3g grammar definition under src/main/antlr, as part of the Maven-2-based build process. There are some other classes also build in this way; there is an AS3Lexer class, and parser/lexer pairs also for the 'E4X' and 'regexp' sublanguages. All of these must be built for the sources to compile. Have you been trying to use the Maven build? If you've had troubles getting the ANTLR dependancies, I can send to some files to put in your ~/.m2/repository/ via private mail. I would like to know what feature you're missing, of course! :) thanks, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sat Feb 17 00:32:57 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 17 00:33:00 2007 Subject: [metaas-dev] [SVN metaas] re-enable jdiff plugin References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070217/d6bd410c/attachment.html From dave at badgers-in-foil.co.uk Sat Feb 17 00:37:41 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 17 00:37:43 2007 Subject: [metaas-dev] [SVN metaas] ratchet-up the required test code-coverage References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070217/37d19d3f/attachment.htm From dave at badgers-in-foil.co.uk Sat Feb 17 01:01:45 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 17 01:01:48 2007 Subject: [metaas-dev] [SVN metaas] test the case of passing the value false, too References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070217/2e2ed6fc/attachment.html From dave at badgers-in-foil.co.uk Sat Feb 17 14:53:57 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 17 14:54:01 2007 Subject: [metaas-dev] [SVN metaas] *sigh* -- can't release with a SNAPSHOT dependancy (there's no jdiff plugin release yet) References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070217/5ebeb95d/attachment.htm From dave at badgers-in-foil.co.uk Sat Feb 17 14:54:55 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 17 14:54:57 2007 Subject: [metaas-dev] [SVN metaas] [maven-release-plugin] prepare release metaas-0.6 References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070217/47e0eec1/attachment.html From dave at badgers-in-foil.co.uk Sat Feb 17 14:55:00 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 17 14:55:01 2007 Subject: [metaas-dev] [SVN metaas] [maven-scm] copy for tag metaas-0.6 Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070217/3837a8bb/attachment.htm From dave at badgers-in-foil.co.uk Sat Feb 17 14:55:03 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 17 14:55:06 2007 Subject: [metaas-dev] [SVN metaas] [maven-release-plugin] prepare for next development iteration References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070217/42ebd20c/attachment-0001.html From dave at badgers-in-foil.co.uk Sat Feb 17 15:29:36 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sat Feb 17 15:29:39 2007 Subject: [metaas-dev] [ANN] metaas 0.6 released Message-ID: <20070217152936.GA21957@badgers-in-foil.co.uk> I've uploaded version 0.6 to the project page and the maven repository. http://www.badgers-in-foil.co.uk/projects/metaas/ Changes since the 0.5 release: - Fixed the embarasing bug that broke example code on the documentation front page (as reported by Billy Wang) - Added representations for most types on ActionScript statement, so that the application can modify these - Added a mathod to list the ActionScript statements in a StatementContainer To see the detailed API changes since the 0.5 release, see the JDiff report: http://maven.badgers-in-foil.co.uk/sites/metaas/jdiff/changes.html ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sat Feb 17 15:55:23 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 17 15:55:26 2007 Subject: [metaas-dev] [SVN metaas] v0.6 release notes References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070217/f92b9888/attachment.htm From kiroukou at gmail.com Sun Feb 18 12:12:36 2007 From: kiroukou at gmail.com (kiroukou) Date: Sun Feb 18 12:12:51 2007 Subject: [metaas-dev] myMethod( ...rest ) pattern not recognize Message-ID: Hi all, As Dave proposed to me, I've joined this list to continue the discussion here. I'm using metaas for an open source project, and so far everything gone well. I'm having a trouble with the ...rest synthax that isn't managed but your lexical analysis I suppose. As it is a very important point for us (I'm developing the tool with a canadian), is it possible to add a support for this quite soon ? Best, Thomas PFEIFFER From dave at badgers-in-foil.co.uk Sun Feb 18 13:56:06 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun Feb 18 13:56:14 2007 Subject: [metaas-dev] myMethod( ...rest ) pattern not recognize In-Reply-To: References: Message-ID: <20070218135606.GA7605@badgers-in-foil.co.uk> On Sun, Feb 18, 2007 at 01:12:36PM +0100, kiroukou wrote: > As Dave proposed to me, I've joined this list to continue the > discussion here. > > I'm using metaas for an open source project, and so far everything > gone well. > > I'm having a trouble with the ...rest synthax that isn't managed but > your lexical analysis I suppose. I've looked at the parser code, and at this level, the named 'rest' parameter is handled, although an anonymous 'rest' parameter isn't, yet. The higher-level DOM code doesn't understand the Abstract Syntax Tree that the parser builds for these parameters though, and of course, there is now way in ASMethod / ASArg to expose this information. > As it is a very important point for us (I'm developing the tool with > a canadian), is it possible to add a support for this quite soon ? I'm writing some unit tests for this now. Hopefully I'll get the chance today to write the code so that the tests will pass. I plan to add the API methods... ASMethod#addRestParam(String name) => ASArg and ASArg#isRest() => boolean Does that sound like what you need? dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sun Feb 18 16:31:52 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 18 16:31:59 2007 Subject: [metaas-dev] [SVN metaas] Expose information about 'rest' parameters, including support for anonymous rest parameters. Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070218/7afdda35/attachment.html From dave at badgers-in-foil.co.uk Sun Feb 18 16:40:17 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun Feb 18 16:40:20 2007 Subject: [metaas-dev] myMethod( ...rest ) pattern not recognize In-Reply-To: <97B13A7A-B091-4302-987B-8ED1793D71BB@gmail.com> References: <20070218135606.GA7605@badgers-in-foil.co.uk> <97B13A7A-B091-4302-987B-8ED1793D71BB@gmail.com> Message-ID: <20070218164017.GB10241@badgers-in-foil.co.uk> On Sun, Feb 18, 2007 at 05:13:20PM +0100, kiroukou wrote: > >I plan to add the API methods... > > > > ASMethod#addRestParam(String name) => ASArg > >and > > ASArg#isRest() => boolean > > > >Does that sound like what you need? > Well sounds perfect to me. > > In fact we just need to be able to get the method arguments, and > rwrite them into another method (with a different name). Right, well, are you able to tackle the maven build in order to try the code that I just checked into Svn, or shall I just email you a replacement metaas.jar? ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sun Feb 18 16:41:46 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun Feb 18 16:41:48 2007 Subject: [metaas-dev] [SVN metaas] Expose information about 'rest' parameters, including support for anonymous rest parameters. In-Reply-To: References: Message-ID: <20070218164146.GC10241@badgers-in-foil.co.uk> On Sun, Feb 18, 2007 at 05:38:36PM +0100, kiroukou wrote: > Where can I get the new sources? An repository adress? Just a, svn co http://svn.badgers-in-foil.co.uk/metaas/trunk/ should do it ;) ta, dave From dave at badgers-in-foil.co.uk Sun Feb 18 17:29:44 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 18 17:29:48 2007 Subject: [metaas-dev] [SVN metaas] don't let the calling code create a comment that has '*/' in its body. Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070218/610bd8da/attachment.htm From kiroukou at gmail.com Sun Feb 18 20:18:49 2007 From: kiroukou at gmail.com (kiroukou) Date: Sun Feb 18 20:19:04 2007 Subject: [metaas-dev] No viable alternative error Message-ID: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> Hi all, I've the following error : line 1:0 no viable alternative at character '?' line 1:1 no viable alternative at character '?' line 1:2 no viable alternative at character '?' line 1:0 no viable alternative at character '?' line 1:1 no viable alternative at character '?' line 1:2 no viable alternative at character '?' Exception in thread "main" uk.co.badgersinfoil.metaas.SyntaxException: Unexpected token RCURLY (expecting SEMI) at line 64 at uk.co.badgersinfoil.metaas.impl.ASTUtils.buildSyntaxException (ASTUtils.java:177) at uk.co.badgersinfoil.metaas.impl.ASTActionScriptParser.parse (ASTActionScriptParser.java:25) at asprofiler.ASProfiler.(ASProfiler.java:42) at asprofiler.SocketASProfiler.(SocketASProfiler.java:26) at asprofiler.ProfilingApp.profileFile(ProfilingApp.java:53) at asprofiler.ProfilingApp.(ProfilingApp.java:39) at asprofiler.ProfilingApp.main(ProfilingApp.java:101) Caused by: MismatchedTokenException(50!=51) Do you know where it may come from? I need to add more exceptions managment to my application, so I don't know more. If you need the file that can't be parsed correctly, just ask me :) thanks a lot Thomas From dave at badgers-in-foil.co.uk Sun Feb 18 20:45:31 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun Feb 18 20:45:33 2007 Subject: [metaas-dev] No viable alternative error In-Reply-To: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> References: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> Message-ID: <20070218204531.GB13401@badgers-in-foil.co.uk> On Sun, Feb 18, 2007 at 09:18:49PM +0100, kiroukou wrote: > I've the following error : > > line 1:0 no viable alternative at character '?' > line 1:1 no viable alternative at character '?' > line 1:2 no viable alternative at character '?' > line 1:0 no viable alternative at character '?' > line 1:1 no viable alternative at character '?' > line 1:2 no viable alternative at character '?' > Exception in thread "main" > uk.co.badgersinfoil.metaas.SyntaxException: Unexpected token RCURLY > (expecting SEMI) at line 64 > at > uk.co.badgersinfoil.metaas.impl.ASTUtils.buildSyntaxException > (ASTUtils.java:177) > at > uk.co.badgersinfoil.metaas.impl.ASTActionScriptParser.parse > (ASTActionScriptParser.java:25) > at asprofiler.ASProfiler.(ASProfiler.java:42) > at asprofiler.SocketASProfiler.(SocketASProfiler.java:26) > at asprofiler.ProfilingApp.profileFile(ProfilingApp.java:53) > at asprofiler.ProfilingApp.(ProfilingApp.java:39) > at asprofiler.ProfilingApp.main(ProfilingApp.java:101) > Caused by: MismatchedTokenException(50!=51) > > > Do you know where it may come from? I need to add more exceptions > managment to my application, so I don't know more. > > If you need the file that can't be parsed correctly, just ask me :) Ok, so looking at your file, the error is actually pretty descriptive, if you ignore the 'no viable alt' messages. At line 63 in the file, the return-statement lacks a semicolon, and the ActionScript parser is unfortunately super-strict at the moment :( I disabled the 'virtual semicolon' handling in the grammar, because it was causing ANTLR problems. Is it ok for you to just insert that missing ';'? :D I'd still be interested to know where the 'no viable alt' messages are coming from though. Given that they are all reported at 'line 1', I imagine this is actually a message about the code you are generating, rather than the code you are parsing. I suspect that the error reporting in some part of the lexical analysis needs to be tightened up. Were the reported characters question marks ('?') at your end, or are these actually non-ascii characters that are getting mangled by my mail client? ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sun Feb 18 21:32:46 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun Feb 18 21:32:49 2007 Subject: [metaas-dev] No viable alternative error In-Reply-To: <20070218204531.GB13401@badgers-in-foil.co.uk> References: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> <20070218204531.GB13401@badgers-in-foil.co.uk> Message-ID: <20070218213246.GC13401@badgers-in-foil.co.uk> On Sun, Feb 18, 2007 at 08:45:31PM +0000, David Holroyd wrote: > On Sun, Feb 18, 2007 at 09:18:49PM +0100, kiroukou wrote: > > line 1:0 no viable alternative at character '?' > > line 1:1 no viable alternative at character '?' > > line 1:2 no viable alternative at character '?' > > line 1:0 no viable alternative at character '?' > > line 1:1 no viable alternative at character '?' > > line 1:2 no viable alternative at character '?' > I'd still be interested to know where the 'no viable alt' messages are > coming from though. Given that they are all reported at 'line 1', I > imagine this is actually a message about the code you are generating, > rather than the code you are parsing. I suspect that the error > reporting in some part of the lexical analysis needs to be tightened up. > > Were the reported characters question marks ('?') at your end, or are > these actually non-ascii characters that are getting mangled by my mail > client? Ok, using a different mail client, I now see that these are indeed just non-ascii characters. Is this intended? i.e. if i extend the ActionScript lexer to allow additional characters to appear in identifier names (for instance) is that going to help you? thanks! dave -- http://david.holroyd.me.uk/ From kiroukou at gmail.com Sun Feb 18 22:51:38 2007 From: kiroukou at gmail.com (kiroukou) Date: Sun Feb 18 22:51:51 2007 Subject: [metaas-dev] No viable alternative error In-Reply-To: <20070218213246.GC13401@badgers-in-foil.co.uk> References: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> <20070218204531.GB13401@badgers-in-foil.co.uk> <20070218213246.GC13401@badgers-in-foil.co.uk> Message-ID: <172ECAD7-FBC6-46C7-A1AA-2B9D4F80866B@gmail.com> Hey, No in fact it seems that this error occurs when I have some errors in my code. I mean sometimes the AS2 ported code has some myMethod( Void ):Void code, which is not AS3 compliant of course. And the lexer make this kind of no viable alternative thing. Even if in french we are using some special characters, I think it is better for metass to not support them. Except if it does ot affect performance in any way. So the problem sounds to be something else. I come back later with more information before resquesting this non-ascii handling ;) Thomas Le 18 f?vr. 07 ? 22:32, David Holroyd a ?crit : > On Sun, Feb 18, 2007 at 08:45:31PM +0000, David Holroyd wrote: >> On Sun, Feb 18, 2007 at 09:18:49PM +0100, kiroukou wrote: >>> line 1:0 no viable alternative at character '?' >>> line 1:1 no viable alternative at character '?' >>> line 1:2 no viable alternative at character '?' >>> line 1:0 no viable alternative at character '?' >>> line 1:1 no viable alternative at character '?' >>> line 1:2 no viable alternative at character '?' > >> I'd still be interested to know where the 'no viable alt' messages >> are >> coming from though. Given that they are all reported at 'line 1', I >> imagine this is actually a message about the code you are generating, >> rather than the code you are parsing. I suspect that the error >> reporting in some part of the lexical analysis needs to be >> tightened up. >> >> Were the reported characters question marks ('?') at your end, or are >> these actually non-ascii characters that are getting mangled by my >> mail >> client? > > Ok, using a different mail client, I now see that these are indeed > just > non-ascii characters. > > Is this intended? i.e. if i extend the ActionScript lexer to allow > additional characters to appear in identifier names (for instance) is > that going to help you? > > > thanks! > dave > > -- > http://david.holroyd.me.uk/ > > _______________________________________________ > metaas-dev mailing list > metaas-dev@lists.badgers-in-foil.co.uk > http://lists.badgers-in-foil.co.uk/mailman/listinfo/metaas-dev From kiroukou at gmail.com Sun Feb 18 23:02:53 2007 From: kiroukou at gmail.com (kiroukou) Date: Sun Feb 18 23:03:06 2007 Subject: [metaas-dev] No viable alternative error In-Reply-To: <20070218213246.GC13401@badgers-in-foil.co.uk> References: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> <20070218204531.GB13401@badgers-in-foil.co.uk> <20070218213246.GC13401@badgers-in-foil.co.uk> Message-ID: <25384E29-48FF-41DA-86A5-A18D4888C85E@gmail.com> Last error I have : run: line 1:0 no viable alternative at character '?' line 1:1 no viable alternative at character '?' line 1:2 no viable alternative at character '?' line 1:0 no viable alternative at character '?' line 1:1 no viable alternative at character '?' line 1:2 no viable alternative at character '?' line 1:0 no viable alternative at character '?' line 1:1 no viable alternative at character '?' line 1:2 no viable alternative at character '?' line 1:0 no viable alternative at character '?' line 1:1 no viable alternative at character '?' line 1:2 no viable alternative at character '?' Exception in thread "main" java.lang.IllegalArgumentException: expected IDENTIFIER, but token was a STAR at uk.co.badgersinfoil.metaas.impl.ASTUtils.identText (ASTUtils.java:67) at uk.co.badgersinfoil.metaas.impl.ASTASArg.getType (ASTASArg.java:37) Isn't the Start type supported? Thomas Le 18 f?vr. 07 ? 22:32, David Holroyd a ?crit : > On Sun, Feb 18, 2007 at 08:45:31PM +0000, David Holroyd wrote: >> On Sun, Feb 18, 2007 at 09:18:49PM +0100, kiroukou wrote: >>> line 1:0 no viable alternative at character '?' >>> line 1:1 no viable alternative at character '?' >>> line 1:2 no viable alternative at character '?' >>> line 1:0 no viable alternative at character '?' >>> line 1:1 no viable alternative at character '?' >>> line 1:2 no viable alternative at character '?' > >> I'd still be interested to know where the 'no viable alt' messages >> are >> coming from though. Given that they are all reported at 'line 1', I >> imagine this is actually a message about the code you are generating, >> rather than the code you are parsing. I suspect that the error >> reporting in some part of the lexical analysis needs to be >> tightened up. >> >> Were the reported characters question marks ('?') at your end, or are >> these actually non-ascii characters that are getting mangled by my >> mail >> client? > > Ok, using a different mail client, I now see that these are indeed > just > non-ascii characters. > > Is this intended? i.e. if i extend the ActionScript lexer to allow > additional characters to appear in identifier names (for instance) is > that going to help you? > > > thanks! > dave > > -- > http://david.holroyd.me.uk/ > > _______________________________________________ > metaas-dev mailing list > metaas-dev@lists.badgers-in-foil.co.uk > http://lists.badgers-in-foil.co.uk/mailman/listinfo/metaas-dev From dave at badgers-in-foil.co.uk Sun Feb 18 23:15:46 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun Feb 18 23:15:50 2007 Subject: [metaas-dev] No viable alternative error In-Reply-To: <172ECAD7-FBC6-46C7-A1AA-2B9D4F80866B@gmail.com> References: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> <20070218204531.GB13401@badgers-in-foil.co.uk> <20070218213246.GC13401@badgers-in-foil.co.uk> <172ECAD7-FBC6-46C7-A1AA-2B9D4F80866B@gmail.com> Message-ID: <20070218231545.GD13401@badgers-in-foil.co.uk> On Sun, Feb 18, 2007 at 11:51:38PM +0100, kiroukou wrote: > No in fact it seems that this error occurs when I have some errors in > my code. > I mean sometimes the AS2 ported code has some myMethod( Void ):Void > code, which is not AS3 compliant of course. > And the lexer make this kind of no viable alternative thing. > > Even if in french we are using some special characters, I think it > is better for metass to not support them. Except if it does ot affect > performance in any way. If the ActionScript language spec says the characters are allowed, then metaas should really be supporting them :) > So the problem sounds to be something else. I come back later with > more information before resquesting this non-ascii handling ;) It might be quite simple to add support, depending on the part of the grammar needing modification. One thing though; at least in the email as I saw it at this end, some of the characters didn't look like those that I understand appear in normal French usage. (my understanding *is* poor, however :) For instance the small-letter-a-with-underscore character, described in my character-map utility as "Feminine ordinal indicator - Spanish" -- is this also appearing at your end? Was this a character in your code somewhere, or is there a problem with the handling of encodings too? If you would let me know where in the source code you are using non-ascii characters (e.g. in string literals, in variable names, ..?) I'll look at adding support in that area first. ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sun Feb 18 23:17:12 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun Feb 18 23:17:13 2007 Subject: [metaas-dev] No viable alternative error In-Reply-To: <25384E29-48FF-41DA-86A5-A18D4888C85E@gmail.com> References: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> <20070218204531.GB13401@badgers-in-foil.co.uk> <20070218213246.GC13401@badgers-in-foil.co.uk> <25384E29-48FF-41DA-86A5-A18D4888C85E@gmail.com> Message-ID: <20070218231712.GE13401@badgers-in-foil.co.uk> On Mon, Feb 19, 2007 at 12:02:53AM +0100, kiroukou wrote: > Exception in thread "main" java.lang.IllegalArgumentException: > expected IDENTIFIER, but token was a STAR > at uk.co.badgersinfoil.metaas.impl.ASTUtils.identText > (ASTUtils.java:67) > Isn't the Start type supported? Not properly, it seems :( I'll go fix it... thanks! dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sun Feb 18 23:23:26 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 18 23:23:28 2007 Subject: [metaas-dev] [SVN metaas] should have been using typeSpecText(), not identText() in ASArg#getType() impl Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070218/97ed5502/attachment.html From dave at badgers-in-foil.co.uk Mon Feb 19 08:59:28 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon Feb 19 08:59:39 2007 Subject: [metaas-dev] No viable alternative error In-Reply-To: <4C5750B3-E3B9-446B-A2D4-9218BC6C2719@gmail.com> References: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> <20070218204531.GB13401@badgers-in-foil.co.uk> <20070218213246.GC13401@badgers-in-foil.co.uk> <172ECAD7-FBC6-46C7-A1AA-2B9D4F80866B@gmail.com> <20070218231545.GD13401@badgers-in-foil.co.uk> <60C89210-DD65-44D3-812F-26ADD4865F54@gmail.com> <20070219001000.GG13401@badgers-in-foil.co.uk> <4C5750B3-E3B9-446B-A2D4-9218BC6C2719@gmail.com> Message-ID: <20070219085928.GA22767@badgers-in-foil.co.uk> On Mon, Feb 19, 2007 at 01:17:38AM +0100, kiroukou wrote: > Great thanks :) > > But another file seems to be hard to parse, see attached :) (it is an > implementation of Singleton pattern in AS3 in case you wonder why > this synthax ;) ) Ahhh; precomputed trig-tables. I remember doing that in AMOS Basic on my old Amiga 1200. Happy days :) Anyhow, the underlying ActionScript grammar does support files structured like the one you provided, but as you've probably found, metaas provides no API to actually expose things like package-level elements that aren't class/interface definitions, or classes+imports outside of the file's package-block. Adding these things in will require a bit of a rethink of some of the high level metaas APIs (ASCompilationUnit will need lots of extensions), so this will take a bit longer to fix than the other problems you've discovered. Also, my road-map for the next release was to involve work on improved JavaDoc support, which I've already started implementing. So, can you live without support for this file for a bit, or should I re-prioritise? Give me an idea of how critical handling for files structured in this way is to your project. > Thanks for your help, and I hope my problems help you to make metaas > more robust :) You are making a huge difference to metaas! Thank you for your help and suggestions! :) ta, dave From kiroukou at gmail.com Mon Feb 19 09:14:31 2007 From: kiroukou at gmail.com (Thomas Pfeiffer) Date: Mon Feb 19 09:15:16 2007 Subject: [metaas-dev] No viable alternative error In-Reply-To: <20070219085928.GA22767@badgers-in-foil.co.uk> References: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> <20070218204531.GB13401@badgers-in-foil.co.uk> <20070218213246.GC13401@badgers-in-foil.co.uk> <172ECAD7-FBC6-46C7-A1AA-2B9D4F80866B@gmail.com> <20070218231545.GD13401@badgers-in-foil.co.uk> <60C89210-DD65-44D3-812F-26ADD4865F54@gmail.com> <20070219001000.GG13401@badgers-in-foil.co.uk> <4C5750B3-E3B9-446B-A2D4-9218BC6C2719@gmail.com> <20070219085928.GA22767@badgers-in-foil.co.uk> Message-ID: Hi Dave, Well I think I can reorganize this file for the moment to make it compliant with METAAS. I know that a rethink approach would take some time that you may not have currently. But in the other hand I'm pretty sure that sooner we do this, the best it is :) THe project shall be ready for this week, so for now, except if there's some other major problems, I'll do with this current release :) Don't worry about my project, it's for an Open source Actionscript tool, so no commercial problems behind it. Best, Thomas 2007/2/19, David Holroyd : > > On Mon, Feb 19, 2007 at 01:17:38AM +0100, kiroukou wrote: > > Great thanks :) > > > > But another file seems to be hard to parse, see attached :) (it is an > > implementation of Singleton pattern in AS3 in case you wonder why > > this synthax ;) ) > > Ahhh; precomputed trig-tables. I remember doing that in AMOS Basic on > my old Amiga 1200. Happy days :) > > Anyhow, the underlying ActionScript grammar does support files > structured like the one you provided, but as you've probably found, > metaas provides no API to actually expose things like package-level > elements that aren't class/interface definitions, or classes+imports > outside of the file's package-block. > > Adding these things in will require a bit of a rethink of some of the > high level metaas APIs (ASCompilationUnit will need lots of extensions), > so this will take a bit longer to fix than the other problems you've > discovered. > > Also, my road-map for the next release was to involve work on improved > JavaDoc support, which I've already started implementing. > > So, can you live without support for this file for a bit, or should I > re-prioritise? Give me an idea of how critical handling for files > structured in this way is to your project. > > > > Thanks for your help, and I hope my problems help you to make metaas > > more robust :) > > You are making a huge difference to metaas! Thank you for your help and > suggestions! :) > > > ta, > dave > > _______________________________________________ > metaas-dev mailing list > metaas-dev@lists.badgers-in-foil.co.uk > http://lists.badgers-in-foil.co.uk/mailman/listinfo/metaas-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070219/2d351dc9/attachment.htm From mb0 at mb0.org Mon Feb 19 15:57:52 2007 From: mb0 at mb0.org (Martin Schnabel) Date: Mon Feb 19 15:58:18 2007 Subject: [metaas-dev] No viable alternative error In-Reply-To: <20070218231545.GD13401@badgers-in-foil.co.uk> References: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> <20070218204531.GB13401@badgers-in-foil.co.uk> <20070218213246.GC13401@badgers-in-foil.co.uk> <172ECAD7-FBC6-46C7-A1AA-2B9D4F80866B@gmail.com> <20070218231545.GD13401@badgers-in-foil.co.uk> Message-ID: <45D9C900.2080801@mb0.org> David Holroyd schrieb: > On Sun, Feb 18, 2007 at 11:51:38PM +0100, kiroukou wrote: > >> No in fact it seems that this error occurs when I have some errors in >> my code. >> I mean sometimes the AS2 ported code has some myMethod( Void ):Void >> code, which is not AS3 compliant of course. >> And the lexer make this kind of no viable alternative thing. >> >> Even if in french we are using some special characters, I think it >> is better for metass to not support them. Except if it does ot affect >> performance in any way. >> > > If the ActionScript language spec says the characters are allowed, then > metaas should really be supporting them :) > > i could not found anything in the as3 spec but you can check the old spec at 7.6 Identifiers. http://www.mozilla.org/js/language/E262-3.pdf i saw some of the ecma 4 drafts referencing that chapter. it says unicode letters and unicode escapes are allowed in identifiers, but i couldn't find the exact unicode ranges to use. terence parr used the unicode ranges from the java 1.5 spec here http://www.antlr.org/grammar/1152141644268/java.g. maybe they are similar ? i am also interested in the code ranges of as2 identifiers but could not found much about it. best regards martin From dave at badgers-in-foil.co.uk Mon Feb 19 16:35:31 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon Feb 19 16:35:33 2007 Subject: [metaas-dev] No viable alternative error In-Reply-To: <45D9C900.2080801@mb0.org> References: <9429B130-DE3B-4474-87BE-DAB87C1DD990@gmail.com> <20070218204531.GB13401@badgers-in-foil.co.uk> <20070218213246.GC13401@badgers-in-foil.co.uk> <172ECAD7-FBC6-46C7-A1AA-2B9D4F80866B@gmail.com> <20070218231545.GD13401@badgers-in-foil.co.uk> <45D9C900.2080801@mb0.org> Message-ID: <20070219163531.GA28944@badgers-in-foil.co.uk> On Mon, Feb 19, 2007 at 04:57:52PM +0100, Martin Schnabel wrote: > David Holroyd schrieb: > >On Sun, Feb 18, 2007 at 11:51:38PM +0100, kiroukou wrote: > >>Even if in french we are using some special characters, I think it > >>is better for metass to not support them. Except if it does ot affect > >>performance in any way. > > > >If the ActionScript language spec says the characters are allowed, then > >metaas should really be supporting them :) > > i could not found anything in the as3 spec but > you can check the old spec at 7.6 Identifiers. > http://www.mozilla.org/js/language/E262-3.pdf > i saw some of the ecma 4 drafts referencing that chapter. > it says unicode letters and unicode escapes are allowed in identifiers, > but i couldn't find the exact unicode ranges to use. So, that PDF references the Unicode 3 standard, Section 5.16, and downloading the relevent PDF from unicode.org suggests that: Given IDENT defined as 'IDENT_START IDENT_PART*'... - IDENT_START be composed of the unicode 'uppercase letter', 'lowercase letter', 'titlecase letter', 'modifier letter', 'other letter' and 'letter number' categories - IDENT_PART be composed of the above categories, plus the catagories 'nonspacing mark', 'spacing combining mark', 'decimal number', 'connector punctuation' and 'formatting code' So then the problem becomes working out which characters are actually in each of those categories. Maybe there's a way to get ICU to generate unicode ranges for each... Poking around in the JavaDoc, it seems to define some promising looking constants, at least: http://icu.sourceforge.net/apiref/icu4j/com/ibm/icu/lang/UCharacterEnums.ECharacterCategory.html > terence parr used the unicode ranges from the java 1.5 spec here > http://www.antlr.org/grammar/1152141644268/java.g. > maybe they are similar ? Yes, that might be a simple way to do a better job than we currently do. thanks for the spec pointer! dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Thu Feb 22 23:14:48 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Thu Feb 22 23:14:59 2007 Subject: [metaas-dev] [SVN metaas] deal properly with tokens replaced at the very start or end of a tree References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070222/3103741d/attachment.html From dave at badgers-in-foil.co.uk Thu Feb 22 23:25:41 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Thu Feb 22 23:28:53 2007 Subject: [metaas-dev] [SVN metaas] first cut of improved javadoc handling APIs Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070222/0b340508/attachment.htm From dave at badgers-in-foil.co.uk Fri Feb 23 00:53:09 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Fri Feb 23 00:53:13 2007 Subject: [metaas-dev] [SVN metaas] start describing the JavaDoc support (more work needed) Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070223/4c245d59/attachment.html From dave at badgers-in-foil.co.uk Sat Feb 24 11:42:49 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 24 11:42:56 2007 Subject: [metaas-dev] [SVN metaas] more description of javadoc handling Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070224/92767b30/attachment.htm From dave at badgers-in-foil.co.uk Sat Feb 24 14:11:43 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 24 14:11:49 2007 Subject: [metaas-dev] [SVN metaas] remove DocComment#{getDocCommentString, setDocComment}. Don't want to support this form of access. Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070224/45707d9e/attachment.html From dave at badgers-in-foil.co.uk Sat Feb 24 15:31:49 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 24 15:31:52 2007 Subject: [metaas-dev] [SVN metaas] prevent bad data getting into the description References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070224/5f08a5eb/attachment.htm From dave at badgers-in-foil.co.uk Sat Feb 24 15:39:08 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sat Feb 24 15:39:10 2007 Subject: [metaas-dev] [SVN metaas] improve checking of comments Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070224/e4507d40/attachment.html From dave at badgers-in-foil.co.uk Sun Feb 25 18:10:13 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 25 18:10:18 2007 Subject: [metaas-dev] [SVN metaas] fix dodgy interface formatting References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070225/259b5e22/attachment.htm From dave at badgers-in-foil.co.uk Sun Feb 25 18:17:37 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 25 18:17:38 2007 Subject: [metaas-dev] [SVN metaas] fix the indentation of the closing brace of a for-loop References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070225/7af28642/attachment.html From dave at badgers-in-foil.co.uk Sun Feb 25 20:48:51 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 25 20:48:58 2007 Subject: [metaas-dev] [SVN metaas] added newTypeBlock() utility, and use it for both classes and interfaces References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070225/95d303d5/attachment.htm From dave at badgers-in-foil.co.uk Sun Feb 25 22:29:50 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 25 22:29:55 2007 Subject: [metaas-dev] [SVN metaas] work nicely with System.out, please References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070225/69772562/attachment.html From dave at badgers-in-foil.co.uk Sun Feb 25 22:38:43 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Sun Feb 25 22:38:45 2007 Subject: [metaas-dev] [SVN metaas] make DocTag body writable, and thereby support updates of ASArg descriptions, Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070225/49f642ec/attachment-0001.htm From dave at badgers-in-foil.co.uk Mon Feb 26 00:02:27 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Mon Feb 26 00:02:29 2007 Subject: [metaas-dev] [SVN metaas] Don't keep appending new EOF tokens to the end of the stream Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070226/fe2616e8/attachment.html From dave at badgers-in-foil.co.uk Mon Feb 26 00:29:58 2007 From: dave at badgers-in-foil.co.uk (dave@badgers-in-foil.co.uk) Date: Mon Feb 26 00:30:00 2007 Subject: [metaas-dev] [SVN metaas] neaten-up formatting of content added to javadoc tagged paragraphs Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20070226/8b7f448c/attachment.htm