]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
Cleanups
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index c796d7c6525898885dba1e340d105eb10fce2b1e..52413ca084608d2b64a7eb1bb4f8d6f7b047c579 100644 (file)
--- a/main.c
+++ b/main.c
@@ -65,8 +65,8 @@ int main(int argc, char **argv) {
                return error(ERROR_COMPILER, "Source file: %s not found\n", ifile);
        } else {
                struct lex_file *lex = lex_open(fp);
-               parse    (lex);
-               lex_close(lex);
+               parse_tree(lex); /* generate parse tree */
+               lex_close (lex); /* cleanup  lexer      */
        }
        return 0;
 }