summaryrefslogtreecommitdiffhomepage
path: root/grammer.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-03-27 19:12:44 +0100
committerRoland Reichwein <mail@reichwein.it>2020-03-27 19:12:44 +0100
commit02d391df5cb7a9cefcd6fec62c4392a8557b5dc8 (patch)
treec397ad923b87a8fbbd8669ec421e318c6f228377 /grammer.cpp
parent3057729f132d516dd9ed58c6964a495aa1c11c3d (diff)
Fixes
Diffstat (limited to 'grammer.cpp')
-rw-r--r--grammer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammer.cpp b/grammer.cpp
index cd5b50f..cb6b3bf 100644
--- a/grammer.cpp
+++ b/grammer.cpp
@@ -308,7 +308,7 @@ std::vector<TreeNode> Compiler::compile(std::vector<Token> p_tokens)
tokens = p_tokens;
if (tokens.size() == 0)
- throw std::runtime_error("No tokens!");
+ throw std::runtime_error("No tokens");
//
// top-down algorithm:
@@ -317,7 +317,7 @@ std::vector<TreeNode> Compiler::compile(std::vector<Token> p_tokens)
// 2. Construct Node Tree from symbol_variants
//
if (!match(m_top, 0, tokens.size()))
- throw std::runtime_error("Compile error.");
+ throw std::runtime_error("Compile error");
//DumpTree();