T.I.M | Toolchain Documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
asm_context Struct Reference

Contains all information for the program in a format that can be easily passed around. More...

#include <asm.h>

Data Fields

FILE * binary
 THe opened output file stream. More...
 
asm_format format
 How should we output to the binary file? ASCII or bytes? More...
 
char * input_file
 The path of the input source file. More...
 
char * output_file
 The path of the output binary file. More...
 
FILE * source
 The opened source file stream. More...
 
asm_statement * statements
 The asm program in linked list form. More...
 
asm_hash_tablesymbol_table
 
asm_lex_token * token_stream
 The tokens stream parsed from the raw file. More...
 

Detailed Description

Contains all information for the program in a format that can be easily passed around.

Field Documentation

FILE* asm_context::binary

THe opened output file stream.

asm_format asm_context::format

How should we output to the binary file? ASCII or bytes?

char* asm_context::input_file

The path of the input source file.

char* asm_context::output_file

The path of the output binary file.

FILE* asm_context::source

The opened source file stream.

asm_statement* asm_context::statements

The asm program in linked list form.

asm_hash_table* asm_context::symbol_table

Stores all of the (label, asm_statement) pairs for the program where the labels are all of the jump target labels.

asm_lex_token* asm_context::token_stream

The tokens stream parsed from the raw file.


The documentation for this struct was generated from the following file: