Data types

🧩 Parsing Structure & Symbol Representation

The assembler follows a layered parsing pipeline:

  1. Source files are split into lines (LineType)

  2. Each line is resolved into a statement (StmtType)

  3. Each statement contains expressions (ExprType)

  4. Expressions are made of tokens (TokenType)

  5. Some expressions are bindings to values or labels (BindingType)

Bound symbols like labels and constants are differentiated using BindingType.