[fpc-pascal] machine readable grammar of object pascal?
noreply at z505.com
noreply at z505.com
Mon May 8 05:24:04 CEST 2017
On 2017-05-02 18:53, Marc Santhoff wrote:
> Hi,
>
> for playing around I would need a grammar of Object Pascal. I do not
> care for which tool it is written or at best if it is plain EBNF.
>
> Does such grammar exist?
>
The issue is that there is no object pascal, or in other words, there's
about 5 million different versions of it.
Delphi 5 is different than delphi 6, 7, 8, as things keep changing...
It's not like Plain C which stays mostly the same.
So in order to get a grammar, you'd need to only include a subset of
object pascal in a certain version.
Delphi 5 compatibility would be a good candidate (subset)... as it is a
fairly small language or subset (well, no, actually it's Big like Ada..)
but would not include generics and all the other features of object
pascal.
This is one of the biggest issues object pascal faces is that it is not
very standard and keeps changing, but C++ is very similar to this,
despite supposed standards existing
More information about the fpc-pascal
mailing list