aboutsummaryrefslogtreecommitdiff
path: root/parser.y
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-20 08:03:20 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-20 08:03:20 +0200
commit77339ce34a79a7b5a1818c1009d1db1252fe8ea6 (patch)
tree0fa1cc0819b0be255dd37b0774d088b11fc0cc92 /parser.y
parentee64135583d5ba02b57cd520bb50ca8819d37bff (diff)
downloadimp-77339ce34a79a7b5a1818c1009d1db1252fe8ea6.tar.gz
imp-77339ce34a79a7b5a1818c1009d1db1252fe8ea6.zip
cleanup
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);
+}
%}