xo-expression: + Expression.assign_valuetype()
This commit is contained in:
parent
2d0608de52
commit
fce0fea1cb
1 changed files with 4 additions and 0 deletions
|
|
@ -92,6 +92,10 @@ namespace xo {
|
|||
/** human-readable string representation **/
|
||||
virtual std::string display_string() const;
|
||||
|
||||
protected:
|
||||
/** useful when scaffolding expressions in a parser **/
|
||||
void assign_valuetype(TypeDescr x) { valuetype_ = x; }
|
||||
|
||||
private:
|
||||
/** expression type (constant | apply | ..) for this expression **/
|
||||
exprtype extype_ = exprtype::invalid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue