mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
menu page queries
This commit is contained in:
parent
7f8a86b740
commit
4dc2c4701d
8 changed files with 55 additions and 11 deletions
|
|
@ -164,6 +164,14 @@ char BasicParser::peek() {
|
|||
return source[pos];
|
||||
}
|
||||
|
||||
std::string BasicParser::readUntil(char c) {
|
||||
int start = pos;
|
||||
while (hasNext() && source[pos] != c) {
|
||||
pos++;
|
||||
}
|
||||
return source.substr(start, pos-start);
|
||||
}
|
||||
|
||||
std::string BasicParser::parseName() {
|
||||
char c = peek();
|
||||
if (!is_identifier_start(c)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue