skel for lex function
This commit is contained in:
parent
b28ba051e9
commit
9799eb2931
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue