parser_api.go 735 B

1234567891011121314151617181920212223242526
  1. // Start() commences the background parse loop goroutine.
  2. func (p *Parser) Start()
  3. // ParseTokens is the main service the Parser provides.
  4. // Currently returns first error encountered, ignoring
  5. // any expressions after that.
  6. func (p *Parser) ParseTokens() ([]Sexp, error)
  7. // NewInput is the principal API function to
  8. // supply parser with addition textual
  9. // input lines
  10. func (p *Parser) NewInput(s io.RuneScanner)
  11. // ResetAddNewInput is the principal API function to
  12. // tell the parser to forget everything it has stored,
  13. // reset, and take as new input the scanner s.
  14. func (p *Parser) ResetAddNewInput(s io.RuneScanner) {
  15. // Stop gracefully shutsdown the parser and its background goroutine.
  16. func (p *Parser) Stop() error