Module lc3_ensemble::parse
source · Expand description
Parsing assembly source code into an AST.
This module is used to convert strings (which represent assembly source code) into abstract syntax trees that maintain all of the information of the source code in an easier to handle format.
The parser module consists of:
Modules§
- Tokenizing LC-3 assembly.
- Simple to parse components.
Structs§
- Any error that occurs during parsing tokens.
- The main parser struct, which holds the main logic for the parser.
Traits§
- Components that can be constructed from a sequence of tokens.
Functions§
- Parses an assembly source code string into a
Vecof statements.