dmd AST class hierarchy as dot file

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 20 10:46:31 PDT 2015


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




More information about the Digitalmars-d mailing list