Uses of Class
mars.assembler.Token

Packages that use Token
Package
Description
 
  • Uses of Token in mars.assembler

    Methods in mars.assembler that return Token
    Modifier and Type
    Method
    Description
    TokenList.get​(int pos)
    Returns requested token given position number (starting at 0).
    Methods in mars.assembler with parameters of type Token
    Modifier and Type
    Method
    Description
    void
    TokenList.add​(Token token)
    Adds a Token object to the end of the list.
    void
    SymbolTable.addSymbol​(Token token, int address, boolean b, ErrorList errors)
    Adds a Symbol object into the array of Symbols.
    void
    MacroPool.beginMacro​(Token nameToken)
    Called by parser upon reaching .macro directive.
    Instantiates a new Macro object and stores it in MacroPool.current .
    void
    MacroPool.commitMacro​(Token endToken)
    Called by parser upon reaching .end_macro directive.
    boolean
    MacroPool.pushOnCallStack​(Token token)
    Adds the token's source line to the call stack
    void
    SymbolTable.removeSymbol​(Token token)
    Removes a symbol from the Symbol table.
    void
    TokenList.set​(int pos, Token replacement)
    Replaces token at position with different one.