Skip to content

Commit

Permalink
Reset line numbers between files in parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
galvusdamor committed Sep 1, 2023
1 parent c56f75c commit 1613b83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hddl.y
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// Declare stuff from Flex that Bison needs to know about:
extern int yylex();
extern int yyparse();
extern void yylex_destroy();
extern FILE *yyin;
char* current_parser_file_name;

Expand Down Expand Up @@ -588,6 +589,7 @@ void run_parser_on_file(FILE* f, char* filename){
current_parser_file_name = filename;
yyin = f;
yyparse();
yylex_destroy();


if (sortObjectNeeded){
Expand Down

0 comments on commit 1613b83

Please sign in to comment.