Make tok::LexerException and Parser::ParserException type definitions instead of extending the Yerbacon::Exception class
This commit is contained in:
parent
facf460923
commit
659cdf4e80
|
@ -7,9 +7,7 @@
|
|||
#include <ostream>
|
||||
|
||||
struct tok {
|
||||
class LexerException: public Yerbacon::Exception {
|
||||
using Yerbacon::Exception::Exception;
|
||||
};
|
||||
typedef Yerbacon::Exception LexerException;
|
||||
enum type: const unsigned short {
|
||||
UNEXPECTED = std::numeric_limits<unsigned char>::max() + 1, IDENTIFIER, NUMBER, ALPHACHAR,
|
||||
EOF_ = '\0', DEFINE = '=', TAG = '#', DOLLAR_SIGN = '$', DOT = '.',
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
#include <concepts>
|
||||
|
||||
namespace Parser {
|
||||
class ParsingException: public Yerbacon::Exception {
|
||||
using Yerbacon::Exception::Exception;
|
||||
};
|
||||
typedef Yerbacon::Exception ParsingException;
|
||||
ParseTree parseVector(const vector<tok>& lexed) {
|
||||
ParseTree parseTree;
|
||||
using namespace StandardComponents;
|
||||
|
|
Loading…
Reference in New Issue