nextToken - Move pointer to the next token
()
| 29 | |
| 30 | // nextToken - Move pointer to the next token |
| 31 | func (parser *Parser) nextToken() { |
| 32 | parser.currentToken = parser.peekToken |
| 33 | parser.peekToken = parser.lexer.NextToken() |
| 34 | } |
| 35 | |
| 36 | // validateTokenAndSkip - Check if current token type is appearing in provided expectedTokens array then move to the next token |
| 37 | func validateTokenAndSkip(parser *Parser, expectedTokens []token.Type) error { |
no test coverage detected