Returns the value of a local variable. This function searces for a variable in the local context, and eventually in the global context if not locally found. The function also parses accessors as the "." dot operator or the [] array access operator, but it doesn't support range accessors or function calls.

The returned pointer is the place where the variable is physically stored.