mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-06 23:18:45 +00:00
fixes, expression printers
This commit is contained in:
parent
3669084f55
commit
bf49f4030c
9 changed files with 349 additions and 101 deletions
|
|
@ -528,6 +528,20 @@ public:
|
|||
return std::nullopt;
|
||||
}
|
||||
|
||||
std::variant<Match, Condition, Loop, Container, Return, NameDefinition,
|
||||
Access, LoopControl, ModifierExpression, NameExpression,
|
||||
Constructor, Lambda, Literal> *
|
||||
get_any() {
|
||||
return &expression_;
|
||||
}
|
||||
|
||||
const std::variant<Match, Condition, Loop, Container, Return, NameDefinition,
|
||||
Access, LoopControl, ModifierExpression, NameExpression,
|
||||
Constructor, Lambda, Literal> *
|
||||
get_any() const {
|
||||
return &expression_;
|
||||
}
|
||||
|
||||
bool is_scoped() const { return is_scoped_; }
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue