Turing Complete
Turing Complete

Reputation: 930

BNF / EBNF for Turbo Pascal (preferably 5.5 or later, because of OOP)?

Does anyone of you know if the BNF or EBNF of Turbo Pascal is available somewhere (LEGALLY!!)?

Upvotes: 2

Views: 984

Answers (2)

Ira Baxter
Ira Baxter

Reputation: 95334

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.

Upvotes: 2

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798626

Will Delphi 5 do?

Upvotes: 3

Related Questions