generated from foxglove/template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for empty structs (#167)
### Changelog Add support for empty structs ### Docs None ### Description As per the [IDL spec](https://www.omg.org/spec/IDL/4.1/PDF), structs are allowed to have no members: >``` >::+ "struct" <identifier> ":" <scoped_name> "{" <member>* "}" >| "struct" <identifier> "{" "}" >``` Our parsing grammar however required a struct to have at least one member. This PR adapts the grammar to allow structs without members.
- Loading branch information
Showing
4 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters