Lexer+Reader+Printer: Store strings with quotes, improve error handling

This commit is contained in:
Riyyi
2023-03-19 12:06:04 +01:00
parent 58523551c8
commit 21914c6b6a
4 changed files with 114 additions and 20 deletions
+5
View File
@@ -30,6 +30,7 @@ private:
bool isEOF() const;
Token peek() const;
Token consume();
bool consumeSpecific(Token token);
void ignore();
ASTNode* readImpl();
@@ -43,6 +44,10 @@ private:
size_t m_indentation { 0 };
std::vector<Token> m_tokens;
char m_error_character { 0 };
bool m_invalid_syntax { false };
bool m_is_unbalanced { false };
ASTNode* m_node { nullptr };
};