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

Draft: Franca translation using alternative Translation method using table-driven approach #130

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

gunnar-mb
Copy link
Collaborator

Author: Gunnar Andersson <[email protected]>, MBition GmbH.

DRAFT for comments - table-driven translation approach (Franca)

The program was tested solely for our own use cases, which might differ from yours.

The submission is provided under the main project license (LICENSE file in root of project).

Provider Information

@gunnar-mb gunnar-mb marked this pull request as draft October 8, 2024 15:10
@gunnar-mb gunnar-mb force-pushed the table_driven_approach branch 9 times, most recently from 9d30b36 to e8a66c0 Compare October 11, 2024 17:52
Installation of the local package for development testing has changed,
because calling setup.py directly is now deprecated (see multiple
sources in python community for more details)

Signed-off-by: Gunnar Andersson <[email protected]>
We might consider some type of consolidation to define identical
concepts in one place - for example many items need a datatype
definition.  But, comparing to Error to Argument, for example, one
difference is that the Error item is optionally named but Arguments must
be named.
The transform function is complex to understand and the deep nesting of
for-loops and if-statements doesn't help.  Reversing the if-statement
logic for special cases allows us to leave or continue the loop early,
and reduces nesting for the happy-path case.  This simplifies reading
the code I think.

Signed-off-by: Gunnar Andersson <[email protected]>
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.

1 participant