Scanner.lookupSymbol

void * lookupSymbol(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

symbolthe symbol to look up

Returns

the value of symbol in the current scope, or null

if symbol is not bound in the current scope