skel for lex function

This commit is contained in:
Aidan Hahn 2019-11-12 13:02:06 -08:00
parent b28ba051e9
commit 9799eb2931
No known key found for this signature in database
GPG key ID: 327711E983899316

View file

@ -2,6 +2,7 @@ package token;
import ( import (
"strings" "strings"
"bytes"
) )
type operation func(Token) Token type operation func(Token) Token
@ -14,6 +15,9 @@ type Token struct {
func eval(string input) string { func eval(string input) string {
ret := new(Token) ret := new(Token)
iter := &ret iter := &ret
// buffered reader via new or make i dunno
for pos, char := range input {
// switch
}
} }