Make certain parser function public so they can be used by outside packages

pull/8557/head
Jonathan A. Sternberg 2017-07-03 13:10:00 -05:00
parent 96516fe6d9
commit 7d06250c1c
2 changed files with 266 additions and 266 deletions

View File

@ -64,7 +64,7 @@ func (t *ParseTree) Handle(tok Token, fn func(*Parser) (Statement, error)) {
// Parse parses a statement using the language defined in the parse tree.
func (t *ParseTree) Parse(p *Parser) (Statement, error) {
for {
tok, pos, lit := p.scanIgnoreWhitespace()
tok, pos, lit := p.ScanIgnoreWhitespace()
if subtree, ok := t.Tokens[tok]; ok {
t = subtree
continue

File diff suppressed because it is too large Load Diff