started work on variable table
This commit is contained in:
parent
4e0890053d
commit
516fda54b3
2 changed files with 17 additions and 0 deletions
17
pkg/shsh/var_table.go
Normal file
17
pkg/shsh/var_table.go
Normal file
|
|
@ -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 {
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue