Andrey Durow
Andrey Durow

Reputation: 163

Is there any .pas file (Delphi or Pascal) parser?

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

Answers (3)

Arioch 'The
Arioch 'The

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

Uwe Raabe
Uwe Raabe

Reputation: 47704

There is the Castalia Delphi Parser by Jacob Thurman currently hosted on GitHub.

Upvotes: 8

menjaraz
menjaraz

Reputation: 7575

PasParse is good for you ! Delphi port of the excellent (C#) DGrok.

Delphi 2007 level.

Upvotes: 1

Related Questions