feat: custom languages syntax (WIP)

This commit is contained in:
MihailRis
2025-04-13 00:19:38 +03:00
parent 4360cd408b
commit 5253be6c56
18 changed files with 278 additions and 88 deletions
+3
View File
@@ -166,6 +166,9 @@ size_t BasicParser<CharT>::remain() const {
template<typename CharT>
bool BasicParser<CharT>::isNext(const std::basic_string<CharT>& substring) {
if (substring.empty()) {
return false;
}
if (source.length() - pos < substring.length()) {
return false;
}