remove error handling in scanner
This commit is contained in:
1 parent
a3965ca1d9
commit
5470783f99
3 files changed
+42
-38
No files matched your search
@@ -159,11 +159,6 @@ func (p *Parser) parseExpr() Expr {
|
||||
|
||||
s.scan()
|
||||
|
||||
if s.err != nil {
|
||||
p.err = fmt.Errorf("parsing: %s", s.err)
|
||||
return nil
|
||||
}
|
||||
|
||||
result = &CallExpr{name, args}
|
||||
}
|
||||
case TokenColon:
|
||||
@@ -218,11 +213,6 @@ func (p *Parser) parseExpr() Expr {
|
||||
s.scan()
|
||||
s.scan()
|
||||
|
||||
if s.err != nil {
|
||||
p.err = fmt.Errorf("parsing: %s", s.err)
|
||||
return nil
|
||||
}
|
||||
|
||||
result = &ExecExpr{pref, expr}
|
||||
default:
|
||||
// TODO: handle error
|
||||
|
||||
Reference in new issue
Block a user