()
| 90 | } |
| 91 | |
| 92 | func (a *AST) getNextToken() *Token { |
| 93 | a.currIndex++ |
| 94 | if a.currIndex < len(a.Tokens) { |
| 95 | a.currTok = a.Tokens[a.currIndex] |
| 96 | return a.currTok |
| 97 | } |
| 98 | return nil |
| 99 | } |
| 100 | |
| 101 | func (a *AST) getTokPrecedence() int { |
| 102 | if p, ok := precedence[a.currTok.Tok]; ok { |
no outgoing calls
no test coverage detected