1 #ifndef STAN_LANG_GRAMMARS_STATEMENT_2_GRAMMAR_HPP 2 #define STAN_LANG_GRAMMARS_STATEMENT_2_GRAMMAR_HPP 8 #include <boost/spirit/include/qi.hpp> 15 template <
typename Iterator>
19 template <
typename Iterator>
21 : boost::spirit::qi::grammar<Iterator,
22 statement(bool, var_origin, bool, bool),
23 whitespace_grammar<Iterator> > {
30 std::stringstream& error_msgs,
33 boost::spirit::qi::rule<Iterator,
39 boost::spirit::qi::rule<Iterator,
Structure to wrap the variant type of statements.
Probability, optimization and sampling library.
A map from function names to their base declarations and their origin.
boost::spirit::qi::rule< Iterator, statement(bool, var_origin, bool, bool), whitespace_grammar< Iterator > > statement_2_r
int var_origin
The type of a variable indicating where a variable was declared.
statement_2_grammar(variable_map &var_map, std::stringstream &error_msgs, statement_grammar< Iterator > &sg)
statement_grammar< Iterator > & statement_g
expression_grammar< Iterator > expression_g
std::stringstream & error_msgs_
boost::spirit::qi::rule< Iterator, conditional_statement(bool, var_origin, bool, bool), whitespace_grammar< Iterator > > conditional_statement_r
AST node for conditional statements.