On Sunday, 20 September 2015 at 17:38:18 UTC, Andrei Alexandrescu wrote:
Aren't all those nonterminals part of the grammar spec? --

From http://dlang.org/declaration.html:

---
Declaration:
    FuncDeclaration
    VarDeclarations
    AliasDeclaration
    AggregateDeclaration
    ImportDeclaration
---

which is not how the AST class hierarchy in the compiler looks.

This is not to say that having pretty pictures for both of them can't be useful. However, you seemed to assume that the GraphViz file by Guillaume represented the grammar structure, and I wanted to point out that it does not (at least not directly).

 — David


Reply via email to