Skip to content

Commit

Permalink
change gs_level test
Browse files Browse the repository at this point in the history
  • Loading branch information
kwanghoon committed Mar 19, 2022
1 parent 6a609a9 commit 1c42158
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parserlib/algo/SynCompAlgoBUTree.hs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ repGotoOrShift ccOption symbols state stk =

if null listOfList1 -- || isInitReduces (cc_searchState ccOption)
then
if gs_level (cc_searchState ccOption) - 1 > 0 then
if gs_level (cc_searchState ccOption) > 0 then -- Todo: deleted - 1
let ccOption' = ccOption{cc_searchState=
SS_GotoOrShift
(r_level (cc_searchState ccOption))
Expand Down
2 changes: 1 addition & 1 deletion src/parserlib/algo/SynCompAlgoBUTreeNested.hs
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ repGotoOrShift ccOption symbols state stk =

if null listOfList1 -- || isInitReduces (cc_searchState ccOption)
then
if gs_level (cc_searchState ccOption) - 1 > 0 then -- Todo: -1 ???
if gs_level (cc_searchState ccOption) > 0 then -- Todo: -1 ???
let ccOption' = ccOption{cc_searchState=
SS_GotoOrShift
(r_level (cc_searchState ccOption))
Expand Down

0 comments on commit 1c42158

Please sign in to comment.