Module tis_100::lex [] [src]

Functions for splitting TIS-100 assembly code into lexemes.

Structs

Label

A label and the index of the instruction that it refers to.

Line

A lexed source line, consisting of its line number, an optional label, and one or more lexemes that form an instruction.

Functions

lex_program

Split the source code into lines of labels and lexemes.