mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-10 17:08:46 +00:00
bool literals, fixes
This commit is contained in:
parent
b1aff1935d
commit
d31979166e
24 changed files with 179 additions and 46 deletions
|
|
@ -742,4 +742,8 @@ void PrintVisitor::Visit(UnitLiteral* node) {
|
|||
out_ << "[Unit ()] ";
|
||||
}
|
||||
|
||||
void PrintVisitor::Visit(BoolLiteral* node) {
|
||||
out_ << "[Bool " << (node->value ? "true" : "false") << "] ";
|
||||
}
|
||||
|
||||
} // namespace interpreter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue