View unanswered posts | View active topics


Reply to topic  [ 3 posts ] 
How to parse the as3 code and get the full AST? 
Author Message
Member

Joined: Mon Dec 26, 2011 2:04 pm
Posts: 5
Post How to parse the as3 code and get the full AST?
Hi all!

I am writing a plugin for FD. I need to parse the file and get the AST(Abstract syntax tree).

FD has an interface for this?


Mon Dec 26, 2011 2:12 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10745
Location: Paris, France
Post Re: How to parse the as3 code and get the full AST?
FD doesn't have full ASTs of the code.

However if you want superficial models you can add a reference to ASCompletion and look into ASContext.Context.
I also suggest you look into CodeRefactor plugin for an example of an plugin accessing all the available models.


Mon Dec 26, 2011 3:35 pm
Profile WWW
Member

Joined: Mon Dec 26, 2011 2:04 pm
Posts: 5
Post Re: How to parse the as3 code and get the full AST?
Thank you!

I will try.


Mon Dec 26, 2011 4:23 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.