mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Parse "x + 1".
This commit is contained in:
1 parent
c86ff2fcc3
commit
2d6ca0777a
1 file changed
+7
@@ -319,6 +319,13 @@ func (p *parser) parseOperand() (*a.Node, error) {
|
||||
ID0: x,
|
||||
RHS: rhs,
|
||||
}, nil
|
||||
|
||||
case x.IsLiteral():
|
||||
p.src = p.src[1:]
|
||||
return &a.Node{
|
||||
Kind: a.KExpr,
|
||||
ID1: x,
|
||||
}, nil
|
||||
}
|
||||
|
||||
id, err := p.parseIdent()
|
||||
|
||||
Reference in new issue
Block a user