23 lines
332 B
Go
23 lines
332 B
Go
package token;
|
|
|
|
import (
|
|
"strings"
|
|
"bytes"
|
|
)
|
|
|
|
type operation func(Token) Token
|
|
|
|
type Token struct {
|
|
Token *next
|
|
interface{} *_inner
|
|
}
|
|
|
|
func lex(string input) string {
|
|
ret := new(Token)
|
|
iter := &ret
|
|
// buffered reader via new or make i dunno
|
|
|
|
for pos, char := range input {
|
|
// switch
|
|
}
|
|
}
|