Reputation: 163
I need to parse Delphi .pas files to work with classes with read/write ability. Adding/Modifying/Deleting fields, properties, methods etc. Any idea how to implement this? The implementation is not necessarily in Delphi, scripting languages are also allowed.
Upvotes: 5
Views: 3629
Reputation: 16045
CnWizards have built-in syntax highlighter so they use some parser too, but I do not remember which exactly. You can look into their sources at https://github.com/cnpack/cnwizards
Upvotes: 2
Reputation: 47704
There is the Castalia Delphi Parser by Jacob Thurman currently hosted on GitHub.
Upvotes: 8