aboutsummaryrefslogtreecommitdiff
path: root/lexer.go
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.go')
-rw-r--r--lexer.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/lexer.go b/lexer.go
index fb247f7..8082e35 100644
--- a/lexer.go
+++ b/lexer.go
@@ -22,18 +22,11 @@ func (y *yyLex) Error(s string) {
log.Println(s)
}
-/*
-type yySymType struct{}
func (y *yyLex) Lex(lval *yySymType) (ret int) {
item := <-y.items
+ lval.sval = item.val
return item.typ
}
-*/
-
-func (y *yyLex) Lex() (int, string) {
- item := <-y.items
- return item.typ, item.val
-}
func lex(input string) *yyLex {
l := &yyLex{