marekvospel/mpu

Add an AST parser

Opened this issue · 3 comments

Because assembly language is really simple, this is going to be really simple. It's more of an Abstract Syntax List than a tree.

Damn this is pain

I've implemented the initial version of MathExpression AST (the only part that requires to be in the form of a tree) - see 5da55f8

There are many things that need to be done (bracket support, math expression tokens and locations)

I'll leave math expressions for later, until then I'll just implement one instruction or label per line.