SHS/pkg/shsh/symbol_table.go
2019-11-21 20:59:14 -08:00

25 lines
486 B
Go

package shsh
import (
"strings"
)
// TODO: Maybe I should just have two tables
type operation func(*Token) *Token
type symbol_tag int
const (
SYM_OPERATOR symbol_tag = iota,
SYM_VARIABLE symbol_tag = iota
)
type bucket struct {
symbol string
tag symbol_tag
_inner interface{}
}
func set_variable(key string, val string) {}
func get_variable(arg string) string {}
func set_operator(key string, val operation) {}
func get_operator(arg string) operation {}