From 2da427d49c7c04b83f8ad81534db471d3037a41a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 23 Mar 2015 00:19:56 +0100 Subject: Parser stub --- lexer.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lexer.go') 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{ -- cgit v1.2.3