dimitriv / Ziria

A domain-specific-language and compiler for low-level bitstream processing.
92 stars 18 forks source link

Change AST to use Value from the interpreter #90

Open edsko opened 9 years ago

edsko commented 9 years ago

We should have:

GExp0 := EVal Value | EArr [Exp] | EStruct [(FldName, Exp)] ...

so that values are represented by a single constructor EVal which uses the Value type from the interpreter, which is much more efficient than the current representation.