treehelper for Pascal

Plugins for SynWrite and CudaText...
Post Reply
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

treehelper for Pascal

Post by Alexey »

TreeHelper for Pascal lexer.
Requires plugin CudaTree to work.
Based on Python library PyPascalTokenizer.

Why use it: sometimes on complex pas files, Pascal lexer cannot make correct codetree. This helper can make codetree more correct.

Can parse and show these Pascal entities:
- standalone functions/procedures
- class methods
- classes
- nested classes (nesting level: 2 or more)
- nested functions (nesting level: 2 or more)
- interfaces
- var/const declarations, global and local (in funcs/methods)
- properties
- uses (both interface/implementation, shown under single node)
- resourcestrings
- anonymous funcs/methods
- type declarations (enums/arrays/records/etc)

It was tested on:
- several FreePascal units (FPJson, RegExpr etc)
- private 3K lines project, with anonym functions with nested usual functions

Author: @Artem3213212 at GitHub
heXor
Posts: 7
Joined: 14.08.2016 19:12

Post by heXor »

bug: Not support 'object' key word (parsing stops). 'record' with procedure - handles correctly.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Tks. Author has fixed it. tree helper is updated, call AddonManager's Update dlg.
Post Reply