diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-09 16:55:10 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-09 16:55:10 +0100 |
commit | 8f2e3e7af0360cca7f8918ae41cc573f8cd88d7f (patch) | |
tree | d75230f12d1c25105aa68f96ce5759b8a547a2a2 /grammer.cpp | |
parent | fe063834e53e856823b9a42ad3a5e04153446849 (diff) |
Support empty translation unit
Diffstat (limited to 'grammer.cpp')
-rw-r--r-- | grammer.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/grammer.cpp b/grammer.cpp index 31a4bbf..3f3a0f1 100644 --- a/grammer.cpp +++ b/grammer.cpp @@ -392,9 +392,6 @@ std::vector<TreeNode> Compiler::compile(std::vector<Token> p_tokens) clear(); tokens = p_tokens; - if (tokens.size() == 0) - throw std::runtime_error("No tokens"); - // // top-down algorithm: // |