Does anyone of you know if the BNF or EBNF of Turbo Pascal is available somewhere (LEGALLY!!)?
Not really, sorry, because the goal is to compile TP 7.0 in the end. :-)
Turing Complete
2010-07-06 09:35:01
@Turing Complete: Isn't there already a TP 7.0 compiler? Why do you want another?
Ira Baxter
2010-07-06 09:41:10
Delphi is a superset of ObjectPascal.
Ignacio Vazquez-Abrams
2010-07-06 09:43:11
Ira, the idea is to compile TP 7.0 with a very sophisticated runtime environment that even simulates part of the hardware into IL.
Turing Complete
2010-07-06 09:44:57
@IgnacioTrue, you are right. I will accept your answer now, I checked the link and it's perfect. :-)
Turing Complete
2010-07-06 09:45:26
Where did you get TP sources from?
el.pescado
2010-07-06 10:25:54
+2
A:
The DMS Software Reengineering Toolkit is a commercial platform for building program analysis and transformation tools. It is configured by providing it with an explicit BNF grammar for the langauge to be processed.
DMS can be obtained with a Delphi 6 front end. This has been used to implement AOP for Delphi.
Building other dialects is straightforward.
EDIT: (respond to comment by OP on another answer): DMS would be a very convenient platform on which to build a compiler.
Ira Baxter
2010-07-06 09:37:00