[as2api-dev] error: No packages specified

David Holroyd dave at badgers-in-foil.co.uk
Sun Sep 4 14:17:21 UTC 2005


On Sat, Sep 03, 2005 at 08:43:26PM -0400, Jim Kremens wrote:
> I'm sure you're right.  As I recall, MMC allows you to do this and
> preserves the type of each element.  mtasc allows you to do it, but
> doesn't preserve the type of each element.    The first elements go
> untyped and the last element in the list gets typed.

I've updated the parser to (hopefully) handle syntax like,

  var a, b;
  var c:String, d:Number;
  var e:String = "red", f=1;

for defining fields.  If you're using the Ruby source, you can download
an updated parse/parser.rb from,

  http://svn.badgers-in-foil.co.uk/as2api/trunk/as2api/parse/parser.rb


> I think the soluton is to not allow this kind of syntax, as mtasc
> doesn't really allow it either.  I'll get rid of it and see if it
> fixes the problem.

If programs vaild in both MMC and MTASC (strict?) allow the syntax, I
think as2api should do a better job with it.  This syntax doesn't seem
too bogus; I just didn't spot it until now.


dave

-- 
http://david.holroyd.me.uk/



More information about the as2api-dev mailing list