(PHP) Resolving Lost Scanned Includes
Andrea Turso <[email protected]> Sun, 9 Aug 2015 23:25:54 +0100
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <CADL_vSLGRL-_TVQM4R25HBAy_Fo1fDNaqg4mGr3BZCMfTc948Q@mail.gmail.com> |
Dear Eric, I have used the the Wisent grammar in semantic/wisent/java-tags.wy to create a small parser for PHP [1] My objective is to extract the list of included classes from a buffer and make their name clickable (to jump to definition). When testing the java-tags parser all import statements are converted into Semantic Includes, and it's possible to click on the class name to visit its file. My PHP grammar is also using the INCLUDE-TAG macro, but all includes end up being lost, so I wonder if there is anything non-obvious that must be done. I suppose Semantic/SemanticDB/TypeCache (which one?) needs a function to map the type name to a file — and for that I might rely on the code from another user of this mailing list [2]. In the past I remember getting as far as finding the semanticdb-find-translate-path-includes-default function, but failed to understand how to get include tags to be resolved. I would appreciate if you could tell me what functions do I need to override, or write, to achieve similar results to that of the java-tags grammar? Thanks Andrea Turso [1] https://gist.github.com/trashofmasters/a63af29a74012325a188 [2] https://github.com/stevenremot/ede-php-autoload ------------------------------------------------------------------------------ _______________________________________________ cedet-semantic mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cedet-semantic