Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SymbolTable ¶
type SymbolTable struct {
// contains filtered or unexported fields
}
SymbolTable keeps info about the symbols that were found during the parser.
func (*SymbolTable) Add ¶
func (st *SymbolTable) Add(name string) int
Add adds a symbol into the table. Returns -1 if already exists.
func (*SymbolTable) Index ¶
func (st *SymbolTable) Index(name string) int
Index returns the index of a symbol. Returns -1 if not exists.
Click to show internal directories.
Click to hide internal directories.