Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

parsing

delphi

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.

like image 502
Andrey Durow Avatar asked Jul 18 '12 07:07

Andrey Durow


3 Answers

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

like image 88
Uwe Raabe Avatar answered Oct 19 '22 08:10

Uwe Raabe


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

like image 39
Arioch 'The Avatar answered Oct 19 '22 08:10

Arioch 'The


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

Delphi 2007 level.

like image 1
menjaraz Avatar answered Oct 19 '22 09:10

menjaraz