From 10ecf4d95194a273cc6aab89c3a1bcf739a194cd Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 22 Jun 2024 11:01:41 -0600 Subject: Add tokenizer --- src/exceptions/tokenizer_exception.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/exceptions/tokenizer_exception.hpp (limited to 'src/exceptions') diff --git a/src/exceptions/tokenizer_exception.hpp b/src/exceptions/tokenizer_exception.hpp new file mode 100644 index 0000000..2366bb1 --- /dev/null +++ b/src/exceptions/tokenizer_exception.hpp @@ -0,0 +1,13 @@ +#pragma once +#include + +class TokenizerException { +private: + std::string message; +public: + TokenizerException(std::string error) : message{error} {} + const std::string &getError() const { + return message; + } +}; + -- cgit v1.2.3