Posted 13 years ago by Devin Grant - Novi
Avatar
This there an easy way to outling Python's code block that contains a ':' at the end of the line (i.e. def, class, and etc...)?

If anyone has some sample code that they are willing to share, I will greatly appreciated.

[Modified at 02/24/2006 09:00 AM]

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Devin,

The work we're doing on version 4.0 advanced parsing is pretty exciting and allows you to generate an abstract syntax tree of the document. Then we have code that we're working on right now that translates it to outlining nodes.

We're prototyping it on the C# language although the same concepts would apply to Python. You would define a lexical parser, then grammar for a semantic parser (new in 4.0), wire up a couple things and it would outlining code blocks for you.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.