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

Saban Ünlü [ netTrek ] us at netTrek.de
Mon Sep 18 17:46:33 UTC 2006


Hi David,

Thx a lot!

Have renamed the 'as' package to 'asUtils' and now it works.
However, it's strange that a package name will be interpreted as an identifiere.

But now I've noticed that private methods will not be parsed. My client demanded a description for private methods also. Do you have any ideas for this "problem"?

Best regards
SABAN



_________________________
netTrek - web solution
Saban Ünlü
Süringstrasse 9a
48653 Coesfeld
_________________________

www.netTrek.de
us at netTrek.de
Tel.: +49 25 41 - 8 39 97
Fax: +49 25 41 - 98 27 02
_________________________

|--> -----Ursprüngliche Nachricht-----
|--> Von: David Holroyd [mailto:dave at badgers-in-foil.co.uk]
|--> Gesendet: Montag, 18. September 2006 19:04
|--> An: Saban Ünlü [ netTrek ]
|--> Cc: as2api-dev at lists.badgers-in-foil.co.uk
|--> Betreff: Re: [as2api-dev] ActionScript::Parse::IdentifierToken
|--> 
|--> 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