mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +01:00
Remove token ID/Key distinction, part 11 of N
This commit is contained in:
1 parent
b24a929ec7
commit
eeebd58d7b
20 files changed
+1218
-1425
No files matched your search
+1
-1
@@ -128,7 +128,7 @@ func genParseBinaryOps(n *node, arg string) error {
|
||||
return fmt.Errorf("bad op %q", n.op)
|
||||
}
|
||||
fmt.Fprintf(&out, "op, %s, %s := parseBinaryOp(%s)\n", l, r, arg)
|
||||
fmt.Fprintf(&out, "if op.Key() != t.Key%s { return errFailed }\n", key)
|
||||
fmt.Fprintf(&out, "if op != t.ID%s { return errFailed }\n", key)
|
||||
if l[0] == 't' {
|
||||
if err := genParseBinaryOps(n.lhs, l); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user