Generate code for "mark in.dst".

The generated code is ugly and the language design is not finalized, but
the flate_backref_crosses_blocks test (testing a correctness bug) now
passes. We can fix the ugliness in subsequent commits.
This commit is contained in:
Nigel Tao committed 2017-10-22 14:44:53 +11:00
1 parent 83c8faef4d
commit 21bbbd422f
11 files changed
+107 -24

No files matched your search

+2 -1
View File
@@ -69,7 +69,8 @@ func (g *gen) writeStatement(b *buffer, n *a.Node, depth uint32) error {
return nil
case a.KIO:
b.writes("/* placeholder */\n")
// TODO: the mark needs to apply on every (coroutine) call to the
// function, not just when we execute this particular statement.
return nil
case a.KIf: