Add an AST parser
Opened this issue · 3 comments
marekvospel commented
Because assembly language is really simple, this is going to be really simple. It's more of an Abstract Syntax List than a tree.
marekvospel commented
Damn this is pain
marekvospel commented
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)
marekvospel commented
I'll leave math expressions for later, until then I'll just implement one instruction or label per line.