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

feat: translate else statements #27

Open
Jonas239 opened this issue May 22, 2022 · 3 comments
Open

feat: translate else statements #27

Jonas239 opened this issue May 22, 2022 · 3 comments
Assignees
Milestone

Comments

@Jonas239
Copy link
Contributor

Feature for translation of if/else statements or blocks from C++ to Java.

@Jonas239 Jonas239 self-assigned this May 22, 2022
@Jonas239 Jonas239 added this to the Sprint 3 milestone Jun 20, 2022
@Jonas239 Jonas239 changed the title feat: translate if/else statements/blocks from c++ to java feat: translate else statements Jun 26, 2022
@Jonas239 Jonas239 modified the milestones: Sprint 3, Sprint 4 Jul 3, 2022
@vivkaz
Copy link
Collaborator

vivkaz commented Jul 13, 2022

Update: the following works now

int time = 20;
if (time < 18) {
    std::cout<<"Good day.";
} else {
    std::cout<<"Good evening.";
}
time = time + 1;

@vivkaz
Copy link
Collaborator

vivkaz commented Jul 13, 2022

TODO:

  • blocks in block also with else statements
  • if else - combinations

@Jonas239 Jonas239 modified the milestones: Sprint 4, Sprint 5 Jul 18, 2022
@Jonas239
Copy link
Contributor Author

Still needs bug fixing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants