Generate C function bodies.

This commit is contained in:
Nigel Tao committed 2017-05-28 17:17:00 +10:00
1 parent 509e6b48a4
commit 5d0b664ccf
6 files changed
+285 -24

No files matched your search

+1 -1
View File
@@ -152,7 +152,7 @@ func (q *checker) bcheckStatement(n *a.Node) error {
// No-op.
default:
return fmt.Errorf("check: unrecognized ast.Kind (%d) for checkStatement", n.Kind())
return fmt.Errorf("check: unrecognized ast.Kind (%s) for checkStatement", n.Kind())
}
return nil
+1 -1
View File
@@ -120,7 +120,7 @@ func (q *checker) tcheckStatement(n *a.Node) error {
// TODO: check that we're in a for loop.
default:
return fmt.Errorf("check: unrecognized ast.Kind (%d) for checkStatement", n.Kind())
return fmt.Errorf("check: unrecognized ast.Kind (%s) for checkStatement", n.Kind())
}
n.SetTypeChecked()