feat: custom languages syntax (WIP)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user