3rdParty/boost/1.78.0/libs/spirit/classic/doc/style_guide.html
At some point, especially when there are lots of semantic actions attached to various points, the grammar tends to be quite difficult to follow. In order to keep an easy-to-read, consistent en aesthetically pleasing look to the Spirit code, the following coding styleguide is advised.
This coding style is adapted and extended from the ANTLR/PCCTS style (Terrence Parr) and Boost coding guidelines (David Abrahams and Nathan Myers) and is the combined work of Joel de Guzman, Chris Uzdavinis and Hartmut Kaiser.
program = program\_heading [heading\_action] \>\> block [block\_action] \>\> '.' | another\_sequence \>\> etc ;
program\_heading = as\_lower\_d["program"] \>\> identifier \>\> '(' \>\> file\_identifier \>\> \*( ',' \>\> file\_identifier ) \>\> ')' \>\> ';' ;
identifier = nocase [lexeme [ alpha \>\> \*(alnum | '\_') [id\_action] ] ] ;
block = \*( label\_declaration\_part | constant\_definition\_part | type\_definition\_part | variable\_declaration\_part | procedure\_and\_function\_declaration\_part ) \>\> statement\_part ;
Copyright © 2001-2003 Joel de Guzman
Copyright © 2001-2002 Hartmut Kaiser
Copyright © 2001-2002 Chris Uzdavinis
Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE\_1\_0.txt)