Stan  1.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs 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>
15 
16 namespace stan {
17 
18  namespace gm {
19 
20  template <typename Iterator>
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

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