A rationale for more compiler exploration

Ola Fosheim Grostad ola.fosheim.grostad at gmail.com
Fri May 28 10:51:56 UTC 2021


On Friday, 28 May 2021 at 10:01:04 UTC, rikki cattermole wrote:
> I had a very similar idea to this previously, but specific to 
> the parser.

Yes, one can introduce an AST builder that provides methods for 
building detailed syntactical AST nodes, but actually builds the 
existing AST, then you can hook into that.

One can have a layer between frontend and backend that allows you 
to query the AST nodes.

Then you can tie exact syntactical information to semantics. And 
use an empty backend.

> So I'm all for it, even if I think there is a lot of work to do 
> prior to something like this.

Great!


More information about the Digitalmars-d mailing list