improved token design
This commit is contained in:
parent
8e767754f2
commit
b28ba051e9
1 changed files with 19 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
||||||
|
package token;
|
||||||
|
|
||||||
|
import (
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
type operation func(Token) Token
|
||||||
|
|
||||||
|
type Token struct {
|
||||||
|
Token *next
|
||||||
|
interface{} *_inner
|
||||||
|
}
|
||||||
|
|
||||||
|
func eval(string input) string {
|
||||||
|
ret := new(Token)
|
||||||
|
iter := &ret
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue