diff --git a/pkg/shsh/.token.go.swp b/pkg/shsh/.token.go.swp index 1cfe618..1f1f373 100644 Binary files a/pkg/shsh/.token.go.swp and b/pkg/shsh/.token.go.swp differ diff --git a/pkg/shsh/token.go b/pkg/shsh/token.go index a66db93..dee153e 100644 --- a/pkg/shsh/token.go +++ b/pkg/shsh/token.go @@ -6,11 +6,10 @@ import ( type token_t int const ( - LIST token_t = iota - STRING token_t = iota - NUMBER token_t = iota - VARIABLE token_t = iota - FUNCTION token_t = iota + LIST token_t = iota + STRING token_t = iota + NUMBER token_t = iota + SYMBOL token_t = iota ) type Token struct { @@ -64,11 +63,8 @@ func Lex(input string) *Token { } else if is_num { *iter.tag = NUMBER - } else if () { - // TODO: Detect VARIABLE - } else { - *iter.tag = FUNCTION + *iter.tag = SYMBOL } }