[as2api-dev] ActionScript::Parse::IdentifierToken

David Holroyd dave at badgers-in-foil.co.uk
Mon Sep 18 17:04:04 UTC 2006


On Mon, Sep 18, 2006 at 06:46:10PM +0200, Saban ?nl? [ netTrek ] wrote:
> Hi,
> 
> is anybody there who can descript me the meaning of following error message:
> 
> com/osis/zoomify/core/Application.as: Expected 'ActionScript::Parse::IdentifierToken' but found '#<ActionScript::Parse::AsToken:0x2c5f670 @source="com/osis/zoomify/core/Application.as", @lineno=6, @body="as">'C:/DOKUME~1/netTrek/LOKALE~1/Temp/eee.225/lib/parse/parser.rb:458:in `err'
> 
> It would be great if someone can tell me what to do to fix this error.

When I wrote the ActionScript2 parser inside as2api, I didn't understand
that some things that appear to be 'keywords' (e.g. "var"), are in fact
allowed to appear as 'identifiers' (identifiers are things like the
names of classes, variables and methods).

So in this case, I suspect that you have a variable or method named
'as', and this is confusing as2api.  Sorry about that!

There are probably a bunch of things that should be removed from the
Keywords section over here:

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


One rather poor workaround for the problem is of course to rename the
part of your Application API which uses the text 'as' :)


dave

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



More information about the as2api-dev mailing list