Re: how to parse list of idents

Jens Kallup <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
Hello Mikael,

Thank You for your fast posting!
It does not work.

Here a snippet of the grammar:

              symsbols =
                    (symbol_def_parameter)
                      |
                  (((symbol_class > symbol_alpha >
                     symbol_of    > symbol_alpha > symbol_endclass >> 
run_app) |
                    (symbol_class > symbol_alpha >
                     symbol_of    > symbol_alpha > symbol_endclass)
                    )              |
                  ((symbol_alpha  > qi::char_('=') > expression >> 
run_app) |
                   (symbol_alpha  > qi::char_('=') > expression         ))
                  )
                  ;

              symbol_class     = no_case["class"];
              symbol_of        = no_case["of"];
              symbol_endclass  = no_case["endclass"];
              symbol_parameter = no_case["parameter"];

             symbol_def_parameter =
                   (symbol_parameter > (symbol_alpha % qi::char_(',')))
                   ;

              symbol_space =
                  +(qi::char_(" \t\n\r") | eol | eoi)
                  ;

              symbol_alpha =
                   qi::char_("a-zA-Z_") >>
                  *qi::char_("a-zA-Z0-9_")
                  ;

On 10/27/2016 04:19 PM, Mikael Asplund wrote:
> (symbol_parameter >  (symbol_alpha % qi::char_(','))) ;


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.