Stan  2.10.0
probability, sampling & optimization
functions_grammar.hpp
Go to the documentation of this file.
1 #ifndef STAN_LANG_GRAMMARS_FUNCTIONS_GRAMMAR_HPP
2 #define STAN_LANG_GRAMMARS_FUNCTIONS_GRAMMAR_HPP
3 
4 #include <stan/lang/ast.hpp>
9 #include <boost/spirit/include/qi.hpp>
10 #include <set>
11 #include <sstream>
12 #include <string>
13 #include <utility>
14 #include <vector>
15 
16 namespace stan {
17 
18  namespace lang {
19 
20  template <typename Iterator>
22  : boost::spirit::qi::grammar<Iterator,
23  std::vector<function_decl_def>(),
24  whitespace_grammar<Iterator> > {
26  std::set<std::pair<std::string,
28  std::set<std::pair<std::string,
30  std::stringstream& error_msgs_;
33 
35  std::stringstream& error_msgs);
36 
37  boost::spirit::qi::rule<Iterator,
38  std::vector<function_decl_def>(),
41 
42  boost::spirit::qi::rule<Iterator,
43  boost::spirit::qi::locals<bool, int>,
47 
48  boost::spirit::qi::rule<Iterator,
49  std::vector<arg_decl>(),
52 
53  boost::spirit::qi::rule<Iterator,
54  arg_decl(),
57 
58  boost::spirit::qi::rule<Iterator,
59  std::string(),
62 
63  boost::spirit::qi::rule<Iterator,
64  boost::spirit::qi::unused_type,
67  };
68 
69  }
70 }
71 #endif
boost::spirit::qi::rule< Iterator, std::vector< arg_decl >), whitespace_grammar< Iterator > > arg_decls_r
boost::spirit::qi::rule< Iterator, boost::spirit::qi::locals< bool, int >, function_decl_def(), whitespace_grammar< Iterator > > function_r
boost::spirit::qi::rule< Iterator, arg_decl(), whitespace_grammar< Iterator > > arg_decl_r
boost::spirit::qi::rule< Iterator, boost::spirit::qi::unused_type, whitespace_grammar< Iterator > > close_arg_decls_r
Probability, optimization and sampling library.
bare_type_grammar< Iterator > bare_type_g
boost::spirit::qi::rule< Iterator, std::string(), whitespace_grammar< Iterator > > identifier_r
boost::spirit::qi::rule< Iterator, std::vector< function_decl_def >), whitespace_grammar< Iterator > > functions_r
functions_grammar(variable_map &var_map, std::stringstream &error_msgs)
std::pair< expr_type, std::vector< expr_type > > function_signature_t
Definition: ast.hpp:127
std::set< std::pair< std::string, function_signature_t > > functions_defined_
statement_grammar< Iterator > statement_g
std::set< std::pair< std::string, function_signature_t > > functions_declared_

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