lookup_symbol


Description:

public void* lookup_symbol (string symbol)

Looks up a symbol in the current scope and return its value.

If the symbol is not bound in the current scope, null is returned.

Parameters:

this

a Scanner

symbol

the symbol to look up

Returns:

the value of symbol in the current scope, or null if symbol is not bound in the current scope