Uses of Class
mars.assembler.TokenList
Packages that use TokenList
-
Uses of TokenList in mars
Modifier and TypeMethodDescriptionProgramStatement.getOriginalTokenList()
Produces token list generated from original source statement.ProgramStatement.getStrippedTokenList()
Produces token list stripped of all but operator and operand tokens.Modifier and TypeMethodDescriptionMIPSprogram.getTokenList()
Produces list of tokens that comprise the program.ModifierConstructorDescriptionProgramStatement(MIPSprogram sourceMIPSprogram, String source, TokenList origTokenList, TokenList strippedTokenList, Instruction inst, int textAddress, int sourceLine)
Constructor for ProgramStatement when there are links back to all source and token information. -
Uses of TokenList in mars.assembler
Methods in mars.assembler that return TokenListModifier and TypeMethodDescriptionTokenizer.tokenizeExampleInstruction(String example)
Used only to create a token list for the example provided with each instruction specification.Tokenizer.tokenizeLine(int lineNum, String theLine)
Will tokenize one line of source code.Tokenizer.tokenizeLine(int lineNum, String theLine, ErrorList callerErrorList)
Will tokenize one line of source code.Tokenizer.tokenizeLine(int lineNum, String theLine, ErrorList callerErrorList, boolean doEqvSubstitutes)
Will tokenize one line of source code.Tokenizer.tokenizeLine(MIPSprogram program, int lineNum, String theLine, boolean doEqvSubstitutes)
Will tokenize one line of source code.Methods in mars.assembler that return types with arguments of type TokenListModifier and TypeMethodDescriptionTokenizer.tokenize(MIPSprogram p)
Will tokenize a complete MIPS program.Methods in mars.assembler with parameters of type TokenListModifier and TypeMethodDescriptionMacroPool.getMatchingMacro(TokenList tokens, int callerLine)
Called by parser upon reaching a macro expansion callMacro.getSubstitutedLine(int line, TokenList args, long counter, ErrorList errors)
Substitutes macro arguments in a line of source code inside macro definition to be parsed after macro expansion. -
Uses of TokenList in mars.mips.instructions
Methods in mars.mips.instructions that return TokenListModifier and TypeMethodDescriptionInstruction.getTokenList()
Get TokenList corresponding to correct instruction syntax.Methods in mars.mips.instructions with parameters of type TokenListModifier and TypeMethodDescriptionstatic String
ExtendedInstruction.makeTemplateSubstitutions(MIPSprogram program, String template, TokenList theTokenList)
Given a basic instruction template and the list of tokens from an extended instruction statement, substitute operands from the token list appropriately into the template to generate the basic statement.