Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bare_type_grammar.hpp
Go to the documentation of this file.
1 #ifndef STAN__GM__PARSER__BARE_TYPE_GRAMMAR_HPP__
2 #define STAN__GM__PARSER__BARE_TYPE_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  : boost::spirit::qi::grammar<Iterator,
21  expr_type(),
22  whitespace_grammar<Iterator> > {
23 
24  // global info for function defs
26  std::stringstream& error_msgs_;
27 
28  // constructor
30  std::stringstream& error_msgs);
31 
32  boost::spirit::qi::rule<Iterator,
33  expr_type(),
36 
37  boost::spirit::qi::rule<Iterator,
41 
42  boost::spirit::qi::rule<Iterator,
43  size_t(),
46 
47  };
48  }
49 }
50 
51 #endif
bare_type_grammar(variable_map &var_map, std::stringstream &error_msgs)
boost::spirit::qi::rule< Iterator, size_t(), whitespace_grammar< Iterator > > array_dims_r
boost::spirit::qi::rule< Iterator, expr_type(), whitespace_grammar< Iterator > > bare_type_r
boost::spirit::qi::rule< Iterator, base_expr_type(), whitespace_grammar< Iterator > > type_identifier_r
int base_expr_type
Definition: ast.hpp:60
std::stringstream & error_msgs_

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