Module lex

Source
Expand description

Tokenizing LC-3 assembly.

This module holds the tokens that characterize LC-3 assembly (Token). This module is used by the parser to facilitate the conversion of assembly source code into an AST.

The module’s key data structure is the Token enum, which lists all of the tokens of LC-3 assembly.

Enums§

Ident
An identifier.
LexErr
Any errors raised in attempting to tokenize an input stream.
Token
A unit of information in LC3 source code.