Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-08 Thread wkitty42
On 05/08/2017 04:49 AM, Mattias Gaertner wrote: On Mon, 8 May 2017 09:22:48 +0100 Graeme Geldenhuys wrote: On 2017-05-08 04:26, nore...@z505.com wrote: which is like a variable, but called a const ;-) I'm slowly but surely loosing all hope for Object Pascal.

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-08 Thread Jürgen Hestermann
Am 2017-05-08 um 12:31 schrieb Marco van de Voort: In our previous episode, Michael Van Canneyt said: This is not something invented by FPC. It is something inherited from Turbo Pascal. And Delphi up to D4 iirc. Delphi inherited it from Turbo Pascal. Actually, it was a hack. Const defines end

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-08 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > This is not something invented by FPC. > It is something inherited from Turbo Pascal. And Delphi up to D4 iirc. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-08 Thread Michael Van Canneyt
On Mon, 8 May 2017, Graeme Geldenhuys wrote: On 2017-05-08 09:49, Mattias Gaertner wrote: Was a typed const ever read only? And does CONSTANT in any other language mean writable? I think they have VAR for that. Maybe it's just the terminology used in FPC. This is not something invented

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-08 Thread Mark Morgan Lloyd
On 08/05/17 08:30, Graeme Geldenhuys wrote: On 2017-05-08 04:26, nore...@z505.com wrote:> which is like a variable, but called a const ;-) I'm slowly but surely loosing all hope for Object Pascal. The languageis becoming more and more mangled with every new release ofDelphi and FPC. I'm not

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-08 Thread Graeme Geldenhuys
On 2017-05-08 09:49, Mattias Gaertner wrote: > Was a typed const ever read only? And does CONSTANT in any other language mean writable? I think they have VAR for that. Maybe it's just the terminology used in FPC. Regards, Graeme ___ fpc-pascal

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-08 Thread Michael Van Canneyt
On Mon, 8 May 2017, Mattias Gaertner wrote: On Mon, 8 May 2017 09:22:48 +0100 Graeme Geldenhuys wrote: On 2017-05-08 04:26, nore...@z505.com wrote: > which is like a variable, but called a const ;-) I'm slowly but surely loosing all hope for Object Pascal.

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-08 Thread Mattias Gaertner
On Mon, 8 May 2017 09:22:48 +0100 Graeme Geldenhuys wrote: > On 2017-05-08 04:26, nore...@z505.com wrote: > > which is like a variable, but called a const ;-) > > I'm slowly but surely loosing all hope for Object Pascal. The language > is becoming more and more

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-08 Thread Graeme Geldenhuys
On 2017-05-08 04:26, nore...@z505.com wrote: > which is like a variable, but called a const ;-) I'm slowly but surely loosing all hope for Object Pascal. The language is becoming more and more mangled with every new release of Delphi and FPC. Regards, Graeme

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-07 Thread noreply
On 2017-05-03 06:49, Peter wrote: On 03/05/17 00: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? TIA, Marc I found grammar for Delphi once. Trying

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-07 Thread noreply
On 2017-05-03 04:37, Michael Van Canneyt wrote: On Wed, 3 May 2017, denisgolovan wrote: On 2017-05-03 00:53, Marc Santhoff wrote:  Does such grammar exist? Well, it depends on what you are trying to solve. If you want to parse Pascal using FPC - that's one way. If you want to get some king

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-07 Thread noreply
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

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-03 Thread Marco van de Voort
In our previous episode, Marco van de Voort said: > > Does such grammar exist? > > Not within FPC/Lazarus project, since those use handcrafted recursive > descent parsers. So that means websearch, and then your search is as good as > mine. > > The manual of older Delphi versions had a grammar

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-03 Thread Peter
On 03/05/17 00: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? > > TIA, > Marc > > > ___ >

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-03 Thread Michael Van Canneyt
On Wed, 3 May 2017, denisgolovan wrote: On 2017-05-03 00:53, Marc Santhoff wrote:  Does such grammar exist? Well, it depends on what you are trying to solve. If you want to parse Pascal using FPC - that's one way. If you want to get some king of AST using any available [command-line]

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-03 Thread denisgolovan
> On 2017-05-03 00:53, Marc Santhoff wrote: >>  Does such grammar exist? Well, it depends on what you are trying to solve. If you want to parse Pascal using FPC - that's one way. If you want to get some king of AST using any available [command-line] tools - that's another one. Talking about

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-03 Thread Graeme Geldenhuys
On 2017-05-03 00:53, Marc Santhoff wrote: > Does such grammar exist? Not as part of the Free Pascal project. At one stage I have been maintaining my own Pascal Grammar in EBNF format as part of the documentation for fpGUI, but I haven’t kept up with all the recent FPC syntax changes though - no

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-03 Thread Marco van de Voort
In our previous episode, Marc Santhoff said: > 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? Not within FPC/Lazarus project, since those use handcrafted recursive descent

[fpc-pascal] machine readable grammar of object pascal?

2017-05-02 Thread Marc Santhoff
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? TIA, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org