I'm trying to implement a program that is able to parse a subset of Delphi language and build a tree, that will be later be used in my software.
The tree produced by the parser should be as compact as possible.
This parser should be written in Pascal/Delphi (version 7 sintax)
My original idea was to use Yacc for Delphi, I already got an almost complete parser yacc/lex that I wrote, that could be completed by you, but I am also open to other alternatives (as long as it is written in Pascal)
Sintax features that should be supported:
-Variables and constants, including arrays
-Function and procedures
-Type declarations, including records and objects
-Classes, including inheritance
-Properties
Sintax features that should not be implemented:
-Pointers
-Interfaces
-Variants
Notes
- For this job it would be ideal if you have experience with compilers.
-About suggestions:
- I know about RemObjects Pascal Script (as far as I know this one does not support class declarations inside the script code). Also I'm not interested in using the language as a script, but rather to integrate it with a mini compiler that will write once this job is completed.