[Pydev-users] [Users] RE: Pydev parser in own plugin
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2010-09-07 00:32:17
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3840430: It's something as: Tuple<SimpleNode, Throwable> objects = PyParser.reparseDocument(new PyParser.ParserInfo(doc, false, IPythonNature.PYTHON_VERSION_2_7); And then you can traverse the AST (SimpleNode) as needed. Although, it really depends on what you want (there may be better APIs depending on what you want to achieve, with AST caches for modules in the pythonpath, etc). Cheers, Fabio |