Dlang grammar

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Mon May 9 07:33:57 UTC 2022


On Sunday, 8 May 2022 at 14:40:36 UTC, Bastiaan Veelo wrote:
> On Friday, 6 May 2022 at 22:46:28 UTC, Alexandru Ermicioi wrote:
>> On Friday, 6 May 2022 at 21:16:30 UTC, Sergey wrote:
>>> Maybe this example could be useful
>>>
>>> https://github.com/PhilippeSigaud/Pegged/blob/master/examples/dgrammar/src/pegged/examples/dgrammar.d
>>
>> Thx, I'll try adapt it to antlr format (EBNF).
>
> That grammar is very old, and contains some experiments. It is 
> probably not what you want.
>
> — Bastiaan.

Thx for the tip. I gave one more try to the official grammar, and 
managed to generate a parser (ofc after some bugfix in antlr4 
itself). Dunno if it is an working one yet, will have to test it.

Best regards,
Alexandru.


More information about the Digitalmars-d mailing list