ilang
1.1.4
ILAng: A Modeling and Verification Platform for SoCs
|
The class for the Abstract Syntax Tree. An Ast object can be an expression or function definition (interpreted or uninterpreted). More...
#include <ast.h>
Public Member Functions | |
Ast () | |
Default constructor. | |
Ast (const std::string &name) | |
Constructor with name. | |
virtual | ~Ast () |
Default destructor. | |
bool | is_ast () const |
Is type Ast. | |
virtual bool | is_expr () const |
Is type Ast::Expr. | |
virtual bool | is_func () const |
Is type Ast::Func. | |
InstrLvlAbsPtr | host () const |
Return the hosting ILA. | |
void | set_host (const InstrLvlAbsPtr &host) |
Set the hosting ILA. | |
virtual std::ostream & | Print (std::ostream &out) const =0 |
Output function. | |
![]() | |
Object () | |
Default constructor. | |
Object (const std::string &name) | |
Constructor with string name. | |
virtual | ~Object () |
Default destructor. | |
const Symbol & | name () const |
Get the symbol (name). | |
virtual bool | is_instr_lvl_abs () const |
Is type InstrLvlAbs. | |
virtual bool | is_instr () const |
Is type Instr. | |
Protected Types | |
typedef std::shared_ptr < InstrLvlAbs > | InstrLvlAbsPtr |
Type for forward declaration of ILA. | |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< Object > | ObjPtr |
Pointer type for normal use of Object. | |
The class for the Abstract Syntax Tree. An Ast object can be an expression or function definition (interpreted or uninterpreted).