LL1Checker 3.0
“Tool for verifying LL(1) grammars and validating input strings.”
All Classes Functions Variables
grammar_error.hpp
1#pragma once
2#include <stdexcept>
3#include <utility>
4
5class GrammarError : public std::exception {
6 public:
7 explicit GrammarError(std::string msg) : msg_(std::move(msg)) {}
8 [[nodiscard]] const char* what() const noexcept override {
9 return msg_.c_str();
10 }
11
12 private:
13 std::string msg_;
14};