Skip to content

Commit

Permalink
update parser to skip SD
Browse files Browse the repository at this point in the history
  • Loading branch information
GitMensch authored Mar 20, 2024
1 parent 69e2671 commit 6b6bbdd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 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 Expand Up @@ -837,14 +838,15 @@ FILEEND {
}
;

fd_def:
file_def:
FD token_list PERIOD {}
|SD token_list PERIOD {}
;


sqlvariantstate_list:
%empty
|sqlvariantstate_list fd_def
|sqlvariantstate_list file_def
|sqlvariantstate_list incfile
|sqlvariantstate_list includesql
|sqlvariantstate_list declaresql
Expand Down

0 comments on commit 6b6bbdd

Please sign in to comment.