mirror of
https://github.com/jorenchik/mdemory.git
synced 2026-03-22 00:26:21 +00:00
remove SOF token
This commit is contained in:
@@ -15,7 +15,6 @@ enum class TokenType {
|
||||
Cooldown,
|
||||
CooldownStart,
|
||||
CooldownEnd,
|
||||
StartOfFile,
|
||||
EndOfFile
|
||||
};
|
||||
|
||||
|
||||
@@ -280,7 +280,6 @@ std::string Token::toString(const TokenType* ttype) {
|
||||
case TokenType::Cooldown: return "pārtraukums";
|
||||
case TokenType::CooldownStart: return "pātraukuma sākums";
|
||||
case TokenType::CooldownEnd: return "pātraukuma beigas";
|
||||
case TokenType::StartOfFile: return "faila sākums";
|
||||
case TokenType::EndOfFile: return "faila beigas";
|
||||
default: return "neatpazīta tekstvienība";
|
||||
}
|
||||
|
||||
@@ -61,11 +61,6 @@ void initTransitions() {
|
||||
(*transitions)[TokenType::CooldownEnd] = {
|
||||
TokenType::TextFragment
|
||||
};
|
||||
(*transitions)[TokenType::StartOfFile] = {
|
||||
TokenType::TextFragment,
|
||||
TokenType::ElementDashStart,
|
||||
TokenType::EndOfFile
|
||||
};
|
||||
(*transitions)[TokenType::EndOfFile] = {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user