On Wed, Oct 31, 2018 at 6:40 PM Gavin Lambert via Boost-users
On 1/11/2018 08:05, Michael Powell wrote:
I put the rules in up front; probably ambitious on my part, and am finding an error on:
_range %= _int_lit >> -(lit("to") >> (_int_lit | lit("max"));
You're missing a closing parenthesis on that line.
Eventually I want to build up the AST in such a way as to facilitate generating some boilerplate adapter code in my target language (C#).
There are some existing C# code generators for Proto2.
https://protogen.marcgravell.com/ springs to mind.
I appreciate the feedback. If it was "just" the proto I was looking for, sure, I might consider that. I'm doing some work around Google.OrTools: https://github.com/mwpowellhtx/Kingdom.OrTools/ Currently considering the CP SAT solver and finding that its parameters are a naked string. So I want my parser to extrapolate meta details about the CP SAT parameters proto in order to generate some compile time boilerplate adapter code. You might call it a DSL of sorts. I could churn through it by hand, but the problem really lends itself to this sort of solution.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users