Stan  2.10.0
probability, sampling & optimization
statement_2_grammar.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_GRAMMARS_STATEMENT_2_GRAMMAR_HPP
2 #define STAN_LANG_GRAMMARS_STATEMENT_2_GRAMMAR_HPP
3 
4 #include <stan/lang/ast.hpp>
8 #include <boost/spirit/include/qi.hpp>
9 #include <sstream>
10 
11 namespace stan {
12 
13  namespace lang {
14 
15  template <typename Iterator>
17 
18  template <typename Iterator>
20  : boost::spirit::qi::grammar<Iterator,
21  statement(bool, var_origin, bool),
22  whitespace_grammar<Iterator> > {
24  std::stringstream& error_msgs_;
27 
29  std::stringstream& error_msgs,
31 
32  boost::spirit::qi::rule<Iterator,
33  conditional_statement(bool, var_origin, bool),
36 
37  boost::spirit::qi::rule<Iterator,
38  statement(bool, var_origin, bool),
41  };
42 
43  }
44 }
45 #endif
Probability, optimization and sampling library.
boost::spirit::qi::rule< Iterator, conditional_statement(bool, var_origin, bool), whitespace_grammar< Iterator > > conditional_statement_r
boost::spirit::qi::rule< Iterator, statement(bool, var_origin, bool), whitespace_grammar< Iterator > > statement_2_r
int var_origin
Definition: ast.hpp:76
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

     [ Stan Home Page ] © 2011–2016, Stan Development Team.