Boost logo

Boost Users :

Subject: Re: [Boost-users] Roughed in Proto2 Spirit parser
From: Gavin Lambert (boost_at_[hidden])
Date: 2018-10-31 22:40:01


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.


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