aboutsummaryrefslogtreecommitdiff
path: root/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/parser.y b/parser.y
index 5974b96..9a94480 100644
--- a/parser.y
+++ b/parser.y
@@ -5,8 +5,12 @@
extern char *yytext;
extern int yylineno;
extern int yylex();
-void yyerror(const char *s) { fprintf(stderr, "Parse error at token \"%s\", line %d: %s\n", yytext, yylineno, s); }
+
ASTNode *ast_root;
+
+void yyerror(const char *s) {
+ fprintf(stderr, "Parse error at token \"%s\", line %d: %s\n", yytext, yylineno, s);
+}
%}