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

Standard / Consistent Code Generators #7

Open
steve-hickman-epistimis opened this issue Feb 6, 2023 · 0 comments
Open

Standard / Consistent Code Generators #7

steve-hickman-epistimis opened this issue Feb 6, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@steve-hickman-epistimis
Copy link
Contributor

com.epistimis.face.generator directory contains several _XXX_FunctionGenerator.xtend classes. Each of these generates function stubs from FACE PortableComponent and PlatformSpecificComponent definitions. There is a base class CommonFunctionGenerator.xtend that can be used for languages that are similar to C++/Java in how they declare functions/methods.

All of the code generated from these should be consistent with the intent - which can be seen from the IDL bindings (issue #10 ).

Note that code generators should use the same approach as XText: The stub should be generated with an embedded call to a derived class method that needs to be implemented. That derived class method will contain all the manual code. The base class method will always be generated & overwritten. No manual modifications should be made to the base class method.

We can also use code signing to ensure that generated code is not modified.

@steve-hickman-epistimis steve-hickman-epistimis added the good first issue Good for newcomers label Feb 6, 2023
@steve-hickman-epistimis steve-hickman-epistimis transferred this issue from another repository Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant