|
LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
|
#include <exp.hh>


Public Member Functions | |
Ctor & dtor. | |
| Exp (const Location &location) | |
| Construct an Exp node. | |
| virtual | ~Exp () |
| Destroy an Exp node. | |
Visitors entry point. | |
| virtual void | accept (ConstVisitor &v) const override=0 |
| Accept a const visitor v. | |
| virtual void | accept (Visitor &v) override=0 |
| Accept a non-const visitor v. | |
Accessors. | |
| const Location & | location_get () const |
| Return scanner position information. | |
| void | location_set (const Location &) |
| Set scanner position information. | |
Protected Attributes | |
| Location | location_ |
| Scanner position information. | |
Exp.
|
virtual |
Destroy an Exp node.
|
overridepure virtual |
Accept a const visitor v.
Implements ast::Ast.
Implemented in ast::OpExp, ast::CastExp, ast::ForExp, ast::IntExp, ast::NilExp, and ast::WhileExp.
|
overridepure virtual |
Accept a non-const visitor v.
Implements ast::Ast.
Implemented in ast::OpExp, ast::CastExp, ast::ForExp, ast::IntExp, ast::NilExp, and ast::WhileExp.
|
inlineinherited |
Return scanner position information.
References ast::Ast::location_.
Referenced by type::TypeChecker::error(), object::DesugarVisitor::operator()(), astclone::Cloner::operator()(), ast::DecsList::push_back(), ast::DecsList::push_front(), and type::TypeChecker::type_mismatch().
|
inlineinherited |
Set scanner position information.
References ast::Ast::location_.
|
protectedinherited |
Scanner position information.
Referenced by ast::Ast::location_get(), ast::Ast::location_set(), ast::DecsList::push_back(), and ast::DecsList::push_front().