Luokat: Kaikki - generation - syntax - verification

jonka Sebastian Thimmig 12 vuotta sitten

437

Urban Assembler

The process outlined involves multiple steps for assembling and verifying program code. It starts with parsing expressions and validating parameters to ensure the syntax and semantics are correct.

Urban Assembler

isValidParameter()

UrbanAssembler.java

ObjectGenerator.java

writeObjectFile()
generateEnd()
generateModifictations()
generateText
generateFormat() || directiveWord
generateLinkRecords
generateHeader()
findBasicInfo()
gets name && start

2. runPass1()

outputTables
buildSymbolTable()
EXT
line.hasLabel()

Equ(e)

parseExpression()

SetUpLc()
else

shouldIncrement()

Newlc or Kicko

lc = param

tokenizeLines()
Else

Dont

If Syntax Valid

Line.java - tokenizeSource()

1. loadProgram()

last line
verifyEnd()
first line
verifyKicko()
verifyLine()
Read Line

parseProgram()

parseLine()

hasOperands() && syntaxValid()
parseNormalParameters()

normal

ST

parseString()

EX or contains *

parseSymbolParameters()

containsSymbol()

local

external

check for equ(e)

RegxVerifier.java

hasInstruction()

validInstructionRegs()

hasDirective()

checkOperands()
check params
genericOpRegs()
checkLabel()
validDirectiveRegs()

Urban

URBAN.java

Create View
Create Tables
Load Table Data