diff --git a/src/etc/lexer.cpp b/src/etc/lexer.cpp index 87c5619..970b67c 100644 --- a/src/etc/lexer.cpp +++ b/src/etc/lexer.cpp @@ -26,6 +26,7 @@ vector lex(const string& in) case '-': resVal.emplace_back(tok::HYPHEN, "-"); break; case '>': resVal.emplace_back(tok::LCOMP, ">"); break; case '<': resVal.emplace_back(tok::RCOMP, "<"); break; + case '$': resVal.emplace_back(tok::DOLLAR_SIGN, "$"); break; case '\'': resVal.emplace_back(tok::SQUOTE, "\'"); break; case ' ': case '\t': case '\r': case '\n': break; diff --git a/src/headers/lex.hpp b/src/headers/lex.hpp index ac2792b..cb9366b 100644 --- a/src/headers/lex.hpp +++ b/src/headers/lex.hpp @@ -10,7 +10,7 @@ struct tok { using Yerbacon::Exception::Exception; }; enum type { - DEFINE, TAG, NUMBER, PLUS, LPAR, LBRACE, LBRACKET, RPAR, RBRACE, RBRACKET, ALPHACHAR, HYPHEN, LCOMP, RCOMP, + DEFINE, TAG, DOLLAR_SIGN, NUMBER, PLUS, LPAR, LBRACE, LBRACKET, RPAR, RBRACE, RBRACKET, ALPHACHAR, HYPHEN, LCOMP, RCOMP, SQUOTE, STRING, IDENTIFIER,