From 8f2e3e7af0360cca7f8918ae41cc573f8cd88d7f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 9 Nov 2020 16:55:10 +0100 Subject: Support empty translation unit --- grammer.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'grammer.cpp') diff --git a/grammer.cpp b/grammer.cpp index 31a4bbf..3f3a0f1 100644 --- a/grammer.cpp +++ b/grammer.cpp @@ -392,9 +392,6 @@ std::vector Compiler::compile(std::vector p_tokens) clear(); tokens = p_tokens; - if (tokens.size() == 0) - throw std::runtime_error("No tokens"); - // // top-down algorithm: // -- cgit v1.2.3