mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 01:01:35 +01:00
Add an io_bind keyword
This commit is contained in:
1 parent
00f660af60
commit
395890c287
11 files changed
+127
-18
No files matched your search
@@ -128,6 +128,17 @@ func (g *gen) writeStatement(b *buffer, n *a.Node, depth uint32) error {
|
||||
b.writes(";\n")
|
||||
return nil
|
||||
|
||||
case a.KIOBind:
|
||||
n := n.IOBind()
|
||||
b.writes("// io_bind placeholder {\n")
|
||||
for _, o := range n.Body() {
|
||||
if err := g.writeStatement(b, o, depth); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
b.writes("// io_bind placeholder }\n")
|
||||
return nil
|
||||
|
||||
case a.KIf:
|
||||
// TODO: for writeSuspendibles, make sure that we get order of
|
||||
// sub-expression evaluation correct.
|
||||
|
||||
Reference in new issue
Block a user