Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
statement_2_grammar.hpp
Go to the documentation of this file.
1 #ifndef STAN__GM__PARSER__STATEMENT_2_GRAMMAR__HPP
2 #define STAN__GM__PARSER__STATEMENT_2_GRAMMAR__HPP
3 
4 #include <string>
5 #include <sstream>
6 #include <vector>
7 
8 #include <boost/spirit/include/qi.hpp>
9 
10 #include <stan/gm/ast.hpp>
13 
14 namespace stan {
15 
16  namespace gm {
17 
18  template <typename Iterator>
20 
21  template <typename Iterator>
23  : boost::spirit::qi::grammar<Iterator,
24  statement(bool,var_origin,bool),
25  whitespace_grammar<Iterator> > {
26 
27 
28 
30  std::stringstream& error_msgs,
32 
33 
34  // global info for parses
36  std::stringstream& error_msgs_;
37 
38  // grammars
41 
42  // rules
43 
44  boost::spirit::qi::rule<Iterator,
48 
49 
50  boost::spirit::qi::rule<Iterator,
51  statement(bool,var_origin,bool),
54 
55  };
56 
57 
58  }
59 }
60 
61 #endif
statement_2_grammar(variable_map &var_map, std::stringstream &error_msgs, statement_grammar< Iterator > &sg)
boost::spirit::qi::rule< Iterator, statement(bool, var_origin, bool), whitespace_grammar< Iterator > > statement_2_r
boost::spirit::qi::rule< Iterator, conditional_statement(bool, var_origin, bool), whitespace_grammar< Iterator > > conditional_statement_r
expression_grammar< Iterator > expression_g
statement_grammar< Iterator > & statement_g
int var_origin
Definition: ast.hpp:411

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