Class: Simulator

Simulator(infile, outfile, stdin, stdout, flag)

class: Simulator

Constructor

new Simulator(infile, outfile, stdin, stdout, flag)

MIPS Simulator Definitions
Parameters:
Name Type Description
infile string Input File Containing MIPS Program
outfile string Output File Containing Abstract Syntax Tree
stdin FileStream File Stream to be Used as Standard Input
stdout FileStream File Stream to be Used as Standard Output
flag Object Command Line Arguments as Configuration Object
Properties:
Name Type Description
loader Loader Loads File Content into Main Memory
store Store Saves The AST into Target File
lexer Lexer Generate Tokens from Instructions
parser Parser Parse Tokens and Create AST
vm VM Virtual Machine that Runs The Program
object Array Abstract Syntaxt Tree of The Program
Source:

Methods

compile()

Compilation Procedure for The Simulator
Properties:
Name Type Description
loader Loader Loads File Content into Main Memory
lexer Lexer Generate Tokens from Instructions
parser Parser Parse Tokens and Create AST
store Store Saves The AST into Target File
Source:

run()

Execution Procedure for The Simulator
Properties:
Name Type Description
vm VM Virtual Machine that Runs The Program
object Array Abstract Syntaxt Tree of The Program
Source: