Stan  1.0
probability, sampling & optimization
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>
15 
16 namespace stan {
17 
18  namespace gm {
19 
20  template <typename Iterator>
21  struct statement_grammar;
22 
23  template <typename Iterator>
25  : boost::spirit::qi::grammar<Iterator,
26  statement(bool,var_origin),
27  whitespace_grammar<Iterator> > {
28 
29 
30 
32  std::stringstream& error_msgs,
34 
35 
36  // global info for parses
38  std::stringstream& error_msgs_;
39 
40  // grammars
43 
44  // rules
45 
46  boost::spirit::qi::rule<Iterator,
50 
51 
52  boost::spirit::qi::rule<Iterator,
53  statement(bool,var_origin),
56 
57  };
58 
59 
60  }
61 }
62 
63 #endif
int var_origin
Definition: ast.hpp:358
Probability, optimization and sampling library.
Definition: agrad.cpp:6
statement_2_grammar(variable_map &var_map, std::stringstream &error_msgs, statement_grammar< Iterator > &sg)
boost::spirit::qi::rule< Iterator, conditional_statement(bool, var_origin), whitespace_grammar< Iterator > > conditional_statement_r
statement_grammar< Iterator > & statement_g
expression_grammar< Iterator > expression_g
boost::spirit::qi::rule< Iterator, statement(bool, var_origin), whitespace_grammar< Iterator > > statement_2_r

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