1
This commit is contained in:
parent
bb2f76674d
commit
b075c000c2
@ -158,6 +158,9 @@ namespace a8
|
||||
if (token == "(") {
|
||||
List new_list = std::make_shared<std::vector<std::shared_ptr<Value>>>();
|
||||
stack.push_back(new_list);
|
||||
if (depth >= 0) {
|
||||
stack.at(depth)->push_back(std::make_shared<Value>(new_list));
|
||||
}
|
||||
++depth;
|
||||
} else if (token == ")") {
|
||||
--depth;
|
||||
@ -178,7 +181,9 @@ namespace a8
|
||||
}
|
||||
stack.at(depth)->push_back(symbol);
|
||||
} else {
|
||||
abort();
|
||||
Symbol symbol;
|
||||
symbol.name = token;
|
||||
stack.at(depth)->push_back(std::make_shared<Value>(symbol));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user