Stan  2.10.0
probability, sampling & optimization
expression07_grammar.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_GRAMMARS_EXPRESSION07_GRAMMAR_HPP
2 #define STAN_LANG_GRAMMARS_EXPRESSION07_GRAMMAR_HPP
3 
4 #include <boost/spirit/include/qi.hpp>
5 
6 #include <stan/lang/ast.hpp>
11 
12 #include <string>
13 #include <sstream>
14 #include <vector>
15 
16 namespace stan {
17  namespace lang {
18 
19  template <typename Iterator>
20  struct term_grammar;
21 
22  template <typename Iterator>
24 
25  template <typename Iterator>
27  : public boost::spirit::qi::grammar<Iterator,
28  expression(var_origin),
29  whitespace_grammar<Iterator> > {
31  std::stringstream& error_msgs,
33 
34  // global parser information
36  std::stringstream& error_msgs_;
37 
38  // nested grammars
40 
41  boost::spirit::qi::rule<Iterator,
45  };
46 
47  }
48 }
49 #endif
boost::spirit::qi::rule< Iterator, expression(var_origin), whitespace_grammar< Iterator > > expression07_r
Probability, optimization and sampling library.
expression07_grammar(variable_map &var_map, std::stringstream &error_msgs, expression_grammar< Iterator > &eg)
int var_origin
Definition: ast.hpp:76

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