LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
int-exp.hh
Go to the documentation of this file.
1 
6 #ifndef AST_INT_EXP_HH
7 # define AST_INT_EXP_HH
8 
9 # include <ast/exp.hh>
10 
11 namespace ast
12 {
13 
15  class IntExp : public Exp
16  {
19  public:
21  IntExp(const Location& location, int value);
23  virtual ~IntExp();
26 
27 
28  public:
30  virtual void accept(ConstVisitor& v) const override;
32  virtual void accept(Visitor& v) override;
34 
37  public:
39  int value_get() const;
42  protected:
44  int value_;
45  };
46 
47 } // namespace ast
48 
49 # include <ast/int-exp.hxx>
50 
51 #endif // !AST_INT_EXP_HH