(l ...lexItemType)
| 23 | } |
| 24 | |
| 25 | func (p *Parser) scanUntil(l ...lexItemType) (c LexItem, ok bool) { |
| 26 | for { |
| 27 | c, ok = p.scan() |
| 28 | if !ok { |
| 29 | return |
| 30 | } |
| 31 | |
| 32 | if isOfAny(c, l...) { |
| 33 | return |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | // Run begins the Parser state machine |
| 39 | // It requires a start state |
no test coverage detected