xo-expression: pref xo::bp to xo::ref::brw
This commit is contained in:
parent
155b2dbec0
commit
a4b2299537
20 changed files with 66 additions and 60 deletions
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
|
||||
#include "DefineExpr.hpp"
|
||||
#include "Variable.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace ast {
|
||||
|
|
@ -31,6 +32,12 @@ namespace xo {
|
|||
this->free_var_set_ = this->calc_free_variables();
|
||||
}
|
||||
|
||||
rp<Variable>
|
||||
DefineExpr::lhs_variable() const
|
||||
{
|
||||
return Variable::make(lhs_name(), valuetype());
|
||||
}
|
||||
|
||||
std::set<std::string>
|
||||
DefineExpr::calc_free_variables() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue