Skip to content

Commit

Permalink
Resolve issue mridoni#175
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiosa61 committed May 11, 2024
1 parent 5b242f2 commit 04695f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libgixpp/gix_esql_parser.yy
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ static std::string to_std_string(connect_to_info_t *i) { if (i) { char buffer [3
%token LINKAGEEND
%token LOCALSTORAGEBEGIN "Begin of LOCAL-STORAGE SECTION"
%token LOCALSTORAGEEND "End of LOCAL-STORAGE SECTION"
%token FD
%token FD "FILE description (FD)"
%token SD "SORT description (SD)"
%token FILEBEGIN "Begin of FILE SECTION"
%token FILEEND "End of FILE SECTION"
%token PROCEDURE_DIVISION "PROCEDURE DIVISION"
Expand Down
3 changes: 2 additions & 1 deletion libgixpp/gix_esql_scanner.ll
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,8 @@ SUBSYSTEM "SQL"|"CICS"|"DLI"
return yy::gix_esql_parser::make_WORKINGEND(loc);
}
"FD" {
"FD" |
"SD" {
if (driver->data_division_section == DD_SECTION_FS) {
__yy_push_state(FD_STATE);
}
Expand Down

0 comments on commit 04695f0

Please sign in to comment.