Lex proxy to lexer Lex
(lval *yySymType)
| 38 | |
| 39 | // Lex proxy to lexer Lex |
| 40 | func (l *Parser) Lex(lval *yySymType) int { |
| 41 | t := l.Lexer.Lex(lval) |
| 42 | l.currentToken = lval.token |
| 43 | return t |
| 44 | } |
| 45 | |
| 46 | func (l *Parser) Error(msg string) { |
| 47 | pos := &position.Position{ |