Parse creates a new parser
(l chan LexItem)
| 12 | |
| 13 | // Parse creates a new parser |
| 14 | func Parse(l chan LexItem) *Parser { |
| 15 | return &Parser{ |
| 16 | items: l, |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | func (p *Parser) scan() (c LexItem, ok bool) { |
| 21 | c, ok = <-p.items |
no outgoing calls
no test coverage detected