current returns the current token
()
| 268 | |
| 269 | // current returns the current token |
| 270 | func (p *ExpressionParser) current() token { |
| 271 | if p.pos >= len(p.tokens) { |
| 272 | return token{tokenEOF, "", -1} |
| 273 | } |
| 274 | return p.tokens[p.pos] |
| 275 | } |
| 276 | |
| 277 | // advance moves to the next token |
| 278 | func (p *ExpressionParser) advance() { |
no outgoing calls