LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
jump.hxx
Go to the documentation of this file.
1 
6 #ifndef TREE_JUMP_HXX
7 # define TREE_JUMP_HXX
8 
9 # include <tree/jump.hh>
10 # include <tree/name.hh>
11 # include <temp/label.hh>
12 
13 namespace tree
14 {
15  inline
16  Jump::Jump(const rExp& exp)
17  : Stm()
18  {
19  child_push_back(exp);
20  }
21 
22  inline rExp
23  Jump::exp_get() const
24  {
25  return child_get(0).cast<Exp>();
26  }
27 
28  inline
31  {
32  return { child_get(0).cast<Name>()->label_get() };
33  }
34 
35 }
36 
37 #endif // !TREE_JUMP_HXX