(text string)
| 79 | } |
| 80 | |
| 81 | func (p *Parser) Parse(text string) error { |
| 82 | p.input = text |
| 83 | p.Root = newList() |
| 84 | p.pos = 0 |
| 85 | return p.parseText(p.Root) |
| 86 | } |
| 87 | |
| 88 | // consumeText return the parsed text since last cosumeText |
| 89 | func (p *Parser) consumeText() string { |