Re: Roughed in Proto2 Parser

Michael Powell <[email protected]> Wed, 31 Oct 2018 15:55:29 -0400
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <CAMEoF_GXQrstvXRCfmEgKsKOju8GEdNMB0WMiJN0Zrh-A4QnpQ@mail.gmail.com>
On Wed, Oct 31, 2018 at 3:47 PM Dan Bloomquist <[email protected]> wrote:
>
> 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"));
> >
> > Severity Code Description Project File Line Suppression State
> > Error C1075 '{': no matching token found
>
> Hi Michael,
> Forest through the trees? It is what it says. The line should be:
>
> _range %= _int_lit >> -(lit("to") >> (_int_lit | lit("max")));
>                                                              ^ put a prin here

That and a few others, apparently.

The error seems to be from a Spirit designer perspective and not in
terms of user perspective. It would be more helpful if those were
reported saying something like "Group found without closing paren
(')')", or something along those lines. ;-)

Next time for me to consider what to do about an AST.

> It compiles without errors or warnings then.
> Best, Dan.
>
>
>
>
> _______________________________________________
> Spirit-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spirit-general