Boost Users :
Subject: Re: [Boost-users] Roughed in Proto2 Spirit parser
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2018-10-31 22:44:20
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:
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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net