2019-11-21 20:32:00 -08:00
|
|
|
package shsh
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"strings"
|
|
|
|
|
)
|
|
|
|
|
|
2019-11-21 20:59:14 -08:00
|
|
|
// 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 {}
|