diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -38,6 +38,7 @@ int main(int argc, const char *argv[]) std::cout << buf << ' '; }); fth->add("emit", [](auto) { std::cout << static_cast<char>(fth->pop()); }); + fth->add("dictsize", [](auto) { fth->push(dict.size() * sizeof(forth::cell)); }); for (auto arg : args) { if (std::ifstream file {arg}; parse_stream(fth, file)) |