Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix condition create in generateDoWhileLoopStatement #9

Closed
wants to merge 1 commit into from
Closed

fix condition create in generateDoWhileLoopStatement #9

wants to merge 1 commit into from

Conversation

ProHolz
Copy link

@ProHolz ProHolz commented Mar 25, 2019

func generateDoWhileLoopStatement
because generateDoWhileLoopStatement will solve as: repeat until not condition if no operator in statement

func generateDoWhileLoopStatement
because generateDoWhileLoopStatement will solve as: repeat until not condition if no operator in statement
@dwarfland
Copy link
Member

Working as designed.

@dwarfland dwarfland closed this Mar 25, 2019
@ProHolz
Copy link
Author

ProHolz commented Mar 25, 2019

Working as designed. ?
Please look at the results:

// Delphi Original
procedure RepeatLoop;
  var
  lvalue : integer;
 begin
   lValue := 0;

   repeat
    lvalue := lvalue+2;
    
   until lvalue > 1000;

 end;

result from CodegGen4
method RepeatLoop;
var
  lvalue: Integer;
begin
  lValue := 0;
  repeat
    lvalue := lvalue + 2;

  until not lvalue > 1000;
end;

@ProHolz ProHolz deleted the Branch_develop_Loop branch March 26, 2019 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants