Skip to content

Support enums in .msg files#2

Open
SchuellerSe wants to merge 3 commits intoxqms:masterfrom
SchuellerSe:master
Open

Support enums in .msg files#2
SchuellerSe wants to merge 3 commits intoxqms:masterfrom
SchuellerSe:master

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