mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
feat: custom languages syntax (WIP)
This commit is contained in:
parent
4360cd408b
commit
5253be6c56
18 changed files with 278 additions and 88 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue