remove SOF token

This commit is contained in:
jorenchik
2024-11-23 14:55:19 +02:00
parent dabe28b722
commit 8367e17381
3 changed files with 0 additions and 7 deletions

View File

@@ -15,7 +15,6 @@ enum class TokenType {
Cooldown, Cooldown,
CooldownStart, CooldownStart,
CooldownEnd, CooldownEnd,
StartOfFile,
EndOfFile EndOfFile
}; };

View File

@@ -280,7 +280,6 @@ std::string Token::toString(const TokenType* ttype) {
case TokenType::Cooldown: return "pārtraukums"; case TokenType::Cooldown: return "pārtraukums";
case TokenType::CooldownStart: return "pātraukuma sākums"; case TokenType::CooldownStart: return "pātraukuma sākums";
case TokenType::CooldownEnd: return "pātraukuma beigas"; case TokenType::CooldownEnd: return "pātraukuma beigas";
case TokenType::StartOfFile: return "faila sākums";
case TokenType::EndOfFile: return "faila beigas"; case TokenType::EndOfFile: return "faila beigas";
default: return "neatpazīta tekstvienība"; default: return "neatpazīta tekstvienība";
} }

View File

@@ -61,11 +61,6 @@ void initTransitions() {
(*transitions)[TokenType::CooldownEnd] = { (*transitions)[TokenType::CooldownEnd] = {
TokenType::TextFragment TokenType::TextFragment
}; };
(*transitions)[TokenType::StartOfFile] = {
TokenType::TextFragment,
TokenType::ElementDashStart,
TokenType::EndOfFile
};
(*transitions)[TokenType::EndOfFile] = {}; (*transitions)[TokenType::EndOfFile] = {};
} }