18 lines
302 B
Go
18 lines
302 B
Go
|
|
package shsh
|
||
|
|
|
||
|
|
import (
|
||
|
|
"strings"
|
||
|
|
)
|
||
|
|
|
||
|
|
type VarTable map[string]*Token
|
||
|
|
|
||
|
|
var (
|
||
|
|
GlobalVarTable *VarTable
|
||
|
|
)
|
||
|
|
|
||
|
|
// Library represents variables defined in inner scope
|
||
|
|
// It is assumed library is ordered from innermost scope to outermost scope
|
||
|
|
func GetVar(arg string, library []VarTable) *Token {
|
||
|
|
|
||
|
|
}
|