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

Port the C++ Generator to Kotlin #345

Merged
merged 146 commits into from
Jun 29, 2021
Merged

Port the C++ Generator to Kotlin #345

merged 146 commits into from
Jun 29, 2021

Conversation

cmnrd
Copy link
Collaborator

@cmnrd cmnrd commented May 21, 2021

This branch ports the C++ code generator from Xtend to Kotlin. This effort is still a work in progress. I am opening this PR, so that everyone can see what is going on and get involved in a discussion about which "style" or patterns to use.

I configured this PR to compare against the branch kotlin-with-gradle. This way we can focus on the C++ related changes here. However, we will also need to merge the kotlin-with-gradle branch to make this PR work.

@cmnrd cmnrd added compiler cpp Related to C++ target labels May 21, 2021
@cmnrd cmnrd requested review from lhstrh and oowekyala May 21, 2021 10:23
Copy link
Collaborator

@oowekyala oowekyala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good! I think you already made yourself at home with extensions, my comments are really just minor nitpicks

org.lflang/src/org/lflang/generator/CppGenerator.kt Outdated Show resolved Hide resolved
org.lflang/src/org/lflang/generator/CppGenerator.kt Outdated Show resolved Hide resolved
org.lflang/src/org/lflang/generator/CppGenerator.kt Outdated Show resolved Hide resolved
org.lflang/src/org/lflang/generator/CppGenerator.kt Outdated Show resolved Hide resolved
org.lflang/src/org/lflang/generator/CppGenerator.kt Outdated Show resolved Hide resolved
org.lflang/src/org/lflang/generator/CppGenerator.kt Outdated Show resolved Hide resolved
org.lflang/src/org/lflang/generator/CppGenerator.kt Outdated Show resolved Hide resolved
org.lflang/src/org/lflang/generator/CppGenerator.kt Outdated Show resolved Hide resolved
org.lflang/src/org/lflang/generator/CppGenerator.kt Outdated Show resolved Hide resolved
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work! There are some comments missing, but this will become more visible when we generate KDoc documentation, so we can also address it then.

@lhstrh lhstrh changed the base branch from kotlin-with-gradle to master June 29, 2021 18:45
@lhstrh lhstrh changed the title WIP: Port the C++ Generator to Kotlin Port the C++ Generator to Kotlin Jun 29, 2021
@lhstrh lhstrh merged commit 83ba25f into master Jun 29, 2021
@lhstrh lhstrh deleted the kotlin-cpp-generator branch June 29, 2021 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler cpp Related to C++ target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants