> On Nov 10, 2016, at 8:55 AM, Richard Wright <rwri...@datadomainsoftware.com> 
> wrote:
> 
> I want to create a complete call chain (there may be several) of a given 
> method. I know I can do this manually but it’s pain in complicated 
> structures. If I could find a way to determine all methods called by a given 
> method, I could do this for each method, store the info in database and 
> easily create my call chain. In other words, I want to parse all methods like 
> 4D Insider did and then used the parsed information to create the call chain 
> in one easy step. I’m only interested in methods at this point. The latest 
> Get Method Code does return some tokens, but not for methods; otherwise I 
> could use that. 

Unless 4D provides a command to get this information, I don't think there are 
any shortcuts - you need a real parser. You can get part of the way there in 
4D, but it is a very long road to get it right. You are better off using a 
language that has a parser generator. I wrote one in Lisp. If you want better 
direct integration with 4D, there are several parser generators available for 
Javascript.

John DeSoi, Ph.D.

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to