diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 20:07:04 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 20:07:04 -0500 |
| commit | b34c5c57740bd819551d74554533931e89d3caf0 (patch) | |
| tree | cee3e3a2b0f75390cef2799ae5c5f41124898ab5 /nextlang.c | |
| parent | f521a99d003c7f416a5573e975aa0657c027e470 (diff) | |
Fix up doctests
Diffstat (limited to 'nextlang.c')
| -rw-r--r-- | nextlang.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -7,6 +7,7 @@ #include "ast.h" #include "parse.h" #include "compile.h" +#include "typecheck.h" #include "types.h" int main(int argc, char *argv[]) @@ -51,6 +52,7 @@ int main(int argc, char *argv[]) CORD code = compile_statement(env, stmt->ast); if (code) CORD_appendf(&env->code->main, "%r\n", code); + bind_statement(env, stmt->ast); } CORD fileinfo = CORD_asprintf("#line 0 \"%s\"\n", f->filename); |
