more work towards working where

This commit is contained in:
2021-07-06 18:50:03 +02:00
parent e88255c3c3
commit 199a5f9e12
4 changed files with 64 additions and 9 deletions

View File

@@ -99,6 +99,7 @@ TokenType Lexer::type(const std::string &token) {
std::regex double_regex("[0-9]+\\.[0-9]+");
std::regex identifier_regex("[A-Za-z]+[A-Za-z0-9_#]*");
// TODO 'one is evaluated as identifier
if (token == ";")
return TokenType::semicolon;