Stan  1.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
expression_grammar.hpp
Go to the documentation of this file.
1 #ifndef __STAN__GM__PARSER__EXPRESSION_GRAMMAR__HPP__
2 #define __STAN__GM__PARSER__EXPRESSION_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>
19  struct term_grammar;
20 
21  template <typename Iterator>
23 
24  template <typename Iterator>
26  : public boost::spirit::qi::grammar<Iterator,
27  expression(),
28  whitespace_grammar<Iterator> > {
29 
31  std::stringstream& error_msgs,
32  bool allow_lte = true);
33 
35 
36  std::stringstream& error_msgs_;
37 
39 
40 
41 
42  boost::spirit::qi::rule<Iterator,
43  expression(),
46 
47  boost::spirit::qi::rule<Iterator,
48  expression(),
51 
52  boost::spirit::qi::rule<Iterator,
53  expression(),
56 
57  boost::spirit::qi::rule<Iterator,
58  expression(),
61 
62  boost::spirit::qi::rule<Iterator,
63  expression(),
66 
67 
68  };
69 
70  }
71 }
72 
73 #endif

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