diff --git a/pkg/shsh/.token.go.swp b/pkg/shsh/.token.go.swp index 59be5bb..2ffa4f6 100644 Binary files a/pkg/shsh/.token.go.swp and b/pkg/shsh/.token.go.swp differ diff --git a/pkg/shsh/var_table.go b/pkg/shsh/var_table.go new file mode 100644 index 0000000..147ac1f --- /dev/null +++ b/pkg/shsh/var_table.go @@ -0,0 +1,17 @@ +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 { + +}