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:
raf 2026-02-22 20:03:25 +03:00
commit ed8f637c99
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 313 additions and 12 deletions

View file

@ -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);