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

Support enums in .msg files #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

SchuellerSe
Copy link

Features:

  • Supports enum definitions in .msg files, both on toplevel and scoped in structs/msgs.
  • Make python2 explicitly the interpreter for the 'libucomm_wrap_msg' command. Ensures compatibility with systems using python3 by default.

Caveats / Mentions:

  • enums on the toplevel of the .msg file are generated inside the Proto<> class.
    If enums without any scope are wanted, the 'custom' command can still be used.
  • enums inside of structs in the .msg file need to be defined before the members of
    the struct. Could be fixed with fiddling a bit more with pyparsing if wanted.

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.

2 participants