summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-06-24 13:45:00 -1000
committerFuwn <[email protected]>2022-06-24 13:45:00 -1000
commitc8f9797a88edd041d835a2b388fb8779474c3e81 (patch)
tree19c74f21b1ccf376a6c59f26b8e267cf1662e219
parentfix(src): apply clang-tidy fixes (diff)
downloadcait-c8f9797a88edd041d835a2b388fb8779474c3e81.tar.xz
cait-c8f9797a88edd041d835a2b388fb8779474c3e81.zip
refactor(parser): out-of-line definition for parser_exception
-rw-r--r--src/parser.cc3
-rw-r--r--src/parser.hh3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/parser.cc b/src/parser.cc
index 7bbc388..f853629 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -23,6 +23,9 @@
namespace cait {
+parser_exception::parser_exception(const std::string &message)
+ : std::runtime_error(message) {}
+
token_bundle::token_bundle(std::size_t &_j, token_t &bundle_token,
std::vector<token_t> &_parsed_token_line,
std::vector<token_t> &_token_line)
diff --git a/src/parser.hh b/src/parser.hh
index f49081e..5d1cdb4 100644
--- a/src/parser.hh
+++ b/src/parser.hh
@@ -31,8 +31,7 @@ using node_tree = std::vector<node::node_set>;
class parser_exception : public std::runtime_error {
public:
- explicit parser_exception(const std::string &message)
- : std::runtime_error(message) {}
+ explicit parser_exception(const std::string &);
};
struct token_bundle {