Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SymbolTable ¶
func NewSymbolTable ¶
func NewSymbolTable() SymbolTable
func (*SymbolTable) AddEntry ¶
func (s *SymbolTable) AddEntry(symbol string, address int)
AddEntry adds the pair (symbol, address) to the table
func (SymbolTable) Contains ¶
func (s SymbolTable) Contains(symbol string) bool
Contains check whether the symbol table contains the given symbol
func (SymbolTable) GetAddress ¶
func (s SymbolTable) GetAddress(symbol string) int
GetAddress returns the address associated with the symbol
Click to show internal directories.
Click to hide internal directories.