1 #ifndef STAN_LANG_AST_NODE_RANGE_DEF_HPP
2 #define STAN_LANG_AST_NODE_RANGE_DEF_HPP
3 
4 #include <stan/lang/ast.hpp>
5 
6 namespace stan {
7   namespace lang {
8 
range()9     range::range() { }
10 
range(const expression & low,const expression & high)11     range::range(const expression& low, const expression& high)
12       : low_(low), high_(high) {  }
13 
has_low() const14     bool range::has_low() const {
15       return !is_nil(low_.expr_);
16     }
17 
has_high() const18     bool range::has_high() const {
19       return !is_nil(high_.expr_);
20     }
21 
22   }
23 }
24 #endif
25