You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This currently parses the official protobuf specification. However if you only plan to use it for Nim -> Nim communication there is no need to specify your protobuf format in it's own file only to parse it every time you want to compile. It would be nice to have a Nim DSL for creating these specifications, the data structure is already there, so it's mostly deciding on a grammar and implementing a simple AST to internal representation macro.
The text was updated successfully, but these errors were encountered:
Yeah I know, I've written plenty of macros like this by now if you look at my repositories 😃. Your example is pretty much exactly what I was thinking about, since my solution revolves around an internal node representation of the protobuf syntax it should be a fairly simple task to write a macro that just converts to a call to generator procedure and a node initialisation.
This currently parses the official protobuf specification. However if you only plan to use it for Nim -> Nim communication there is no need to specify your protobuf format in it's own file only to parse it every time you want to compile. It would be nice to have a Nim DSL for creating these specifications, the data structure is already there, so it's mostly deciding on a grammar and implementing a simple AST to internal representation macro.
The text was updated successfully, but these errors were encountered: