(kind lexer.Type)
| 144 | } |
| 145 | |
| 146 | func (p *parser) skip(kind lexer.Type) bool { |
| 147 | if p.err != nil { |
| 148 | return false |
| 149 | } |
| 150 | |
| 151 | tok := p.peek() |
| 152 | |
| 153 | if tok.Kind != kind { |
| 154 | return false |
| 155 | } |
| 156 | p.next() |
| 157 | return true |
| 158 | } |
| 159 | |
| 160 | func (p *parser) unexpectedError() { |
| 161 | p.unexpectedToken(p.peek()) |