Page 1 of 1

treehelper for Pascal

Posted: 10.08.2018 04:54
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

Posted: 15.10.2018 10:25
by heXor
bug: Not support 'object' key word (parsing stops). 'record' with procedure - handles correctly.

Posted: 16.10.2018 07:39
by Alexey
Tks. Author has fixed it. tree helper is updated, call AddonManager's Update dlg.