cronokirby / chika

A low level procedural language, compiling to assembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Define AST structure

cronokirby opened this issue · comments

Before we implement the parser, it would be a good idea to create a structure for our AST.

This is somewhat non-trivial, since we want to do the Roslyn approach of having a raw node type with the span information, and then overlay our syntax tree over that.

We can probably avoid doing anything fancy with arenas, but an optimization in the future might be to use arenas, since we have a uniform node type.