Stan  2.10.0
probability, sampling & optimization
bare_type_grammar.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_GRAMMARS_BARE_TYPE_GRAMMAR_HPP
2 #define STAN_LANG_GRAMMARS_BARE_TYPE_GRAMMAR_HPP
3 
4 #include <boost/spirit/include/qi.hpp>
5 #include <stan/lang/ast.hpp>
8 
9 #include <string>
10 #include <sstream>
11 #include <vector>
12 
13 namespace stan {
14 
15  namespace lang {
16 
17  template <typename Iterator>
19  : boost::spirit::qi::grammar<Iterator,
20  expr_type(),
21  whitespace_grammar<Iterator> > {
22  variable_map& var_map_; // global info for function defs
23  std::stringstream& error_msgs_;
24 
26  std::stringstream& error_msgs);
27 
28  boost::spirit::qi::rule<Iterator,
29  expr_type(),
32 
33  boost::spirit::qi::rule<Iterator,
37 
38  boost::spirit::qi::rule<Iterator,
39  size_t(),
42 
43  boost::spirit::qi::rule<Iterator,
44  boost::spirit::qi::unused_type,
47  };
48 
49  }
50 }
51 #endif
Probability, optimization and sampling library.
boost::spirit::qi::rule< Iterator, size_t(), whitespace_grammar< Iterator > > array_dims_r
int base_expr_type
Definition: ast.hpp:64
boost::spirit::qi::rule< Iterator, expr_type(), whitespace_grammar< Iterator > > bare_type_r
bare_type_grammar(variable_map &var_map, std::stringstream &error_msgs)
boost::spirit::qi::rule< Iterator, boost::spirit::qi::unused_type, whitespace_grammar< Iterator > > end_bare_types_r
boost::spirit::qi::rule< Iterator, base_expr_type(), whitespace_grammar< Iterator > > type_identifier_r

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