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,
|
Cooldown,
|
||||||
CooldownStart,
|
CooldownStart,
|
||||||
CooldownEnd,
|
CooldownEnd,
|
||||||
StartOfFile,
|
|
||||||
EndOfFile
|
EndOfFile
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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] = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user