Is the grammar spec usable for generating parsers?
Peter Alexander
peter.alexander.au at gmail.com
Sat Nov 3 23:04:55 UTC 2018
On Saturday, 3 November 2018 at 22:29:59 UTC, Iain Buclaw wrote:
> First have a look here, from memory I ended up basing the D
> grammar in gdb on this version instead.
>
> https://libdparse.dlang.io/grammar.html
Thanks.
Unfortunately, it seems that libdparse doesn't know about 'static
import' and instead parses it as an importDeclaration within a
'static' attribute block. I suppose this could be re-interpreted
after the parsing stage.
More information about the Digitalmars-d
mailing list