irc: more syntax support
Indented strings, ancient let bindings and a bit more Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ib86c2d8ca4402dfa0c5c536a9959f4006a6a6964
This commit is contained in:
parent
77aa67c7e0
commit
ed8f637c99
3 changed files with 313 additions and 12 deletions
|
|
@ -163,7 +163,7 @@ struct IRGenerator::Impl {
|
|||
}
|
||||
std::vector<std::pair<std::string, std::shared_ptr<Node>>> new_bindings;
|
||||
new_bindings.reserve(n->bindings.size());
|
||||
for (const auto& [key, val] : n->bindings) {
|
||||
for (const auto& [key, val] : n->bindings) {
|
||||
new_bindings.push_back({key, convert(val)});
|
||||
}
|
||||
auto body = convert(n->body);
|
||||
|
|
@ -179,7 +179,7 @@ for (const auto& [key, val] : n->bindings) {
|
|||
}
|
||||
std::vector<std::pair<std::string, std::shared_ptr<Node>>> new_bindings;
|
||||
new_bindings.reserve(n->bindings.size());
|
||||
for (const auto& [key, val] : n->bindings) {
|
||||
for (const auto& [key, val] : n->bindings) {
|
||||
new_bindings.push_back({key, convert(val)});
|
||||
}
|
||||
auto body = convert(n->body);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue