summaryrefslogtreecommitdiffhomepage
path: root/grammer.cpp
diff options
context:
space:
mode:
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();