From hiroaki at yy.ics.keio.ac.jp Thu Dec 10 10:50:19 2009 From: hiroaki at yy.ics.keio.ac.jp (Hiroaki Fukuda) Date: Thu, 10 Dec 2009 19:50:19 +0900 Subject: [metaas-dev] Grammar of AS3 Message-ID: <97DE3995-2302-4147-BBC8-43B1E21141EE@yy.ics.keio.ac.jp> Hello everyone I am now looking for precise grammar of ActionScript3. I found the definition of grammar for ANTLR as following http://svn.badgers-in-foil.co.uk/metaas/trunk/src/main/antlr/org/asdt/core/internal/antlr/AS3.g Also, I found the sentence as "metaas was originally based on the ActionScript 3 ANTLR grammer from the ASDT project, though the metaas fork is now significantly different. Authorship of the original as3 grammar " I clicked the link of original as3 grammar but is was removed. So, do you know any information about correct as3's grammar? Best Regards -------------------------------------------------------- Hiroaki Fukuda (Ph.D) Email: hiroaki at yy.ics.keio.ac.jp Web : http://www.yy.ics.keio.ac.jp/hiroaki/ From dave at badgers-in-foil.co.uk Thu Dec 10 11:03:52 2009 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Thu, 10 Dec 2009 11:03:52 +0000 Subject: [metaas-dev] Grammar of AS3 In-Reply-To: <97DE3995-2302-4147-BBC8-43B1E21141EE@yy.ics.keio.ac.jp> References: <97DE3995-2302-4147-BBC8-43B1E21141EE@yy.ics.keio.ac.jp> Message-ID: <20091210110352.GA15830@badgers-in-foil.co.uk> Hi there! On Thu, Dec 10, 2009 at 07:50:19PM +0900, Hiroaki Fukuda wrote: > I am now looking for precise grammar of ActionScript3. > I found the definition of grammar for ANTLR as following > > http://svn.badgers-in-foil.co.uk/metaas/trunk/src/main/antlr/org/asdt/core/internal/antlr/AS3.g > > Also, I found the sentence as "metaas was originally based on the > ActionScript 3 ANTLR grammer from the ASDT project, though the metaas > fork is now significantly different. Authorship of the original as3 > grammar " > > I clicked the link of original as3 grammar but is was removed. > > So, do you know any information about correct as3's grammar? Well, the metaas fork of the grammer was actually a little more complete than the original (which, to be fair, was in quite early stages of development itself). It's still not complete though. Since the Flex SDK is open source these days, you could probably consider their parser implementation as the authoritative 'spec', http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Parser.java ta, dave From hiroaki at yy.ics.keio.ac.jp Fri Dec 11 00:50:18 2009 From: hiroaki at yy.ics.keio.ac.jp (Hiroaki Fukuda) Date: Fri, 11 Dec 2009 09:50:18 +0900 Subject: [metaas-dev] Grammar of AS3 In-Reply-To: <20091210110352.GA15830@badgers-in-foil.co.uk> References: <97DE3995-2302-4147-BBC8-43B1E21141EE@yy.ics.keio.ac.jp> <20091210110352.GA15830@badgers-in-foil.co.uk> Message-ID: <20091211094726.902B.6A8DACA2@yy.ics.keio.ac.jp> Thank you for your advice. It is good idea to analyze parser of FlexSDK. Great thanks. > > Well, the metaas fork of the grammer was actually a little more complete > than the original (which, to be fair, was in quite early stages of development > itself). It's still not complete though. > > Since the Flex SDK is open source these days, you could probably consider > their parser implementation as the authoritative 'spec', > > http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/Parser.java > > > ta, > dave > > _______________________________________________ > metaas-dev mailing list > metaas-dev at lists.badgers-in-foil.co.uk > http://lists.badgers-in-foil.co.uk/mailman/listinfo/metaas-dev