Added efficient probing functions to Parser.
This commit is contained in:
@@ -53,7 +53,6 @@ class Parser
|
||||
|
||||
char currentCharacter() const;
|
||||
void advance();
|
||||
bool advanceIf(char expectedCharacter);
|
||||
bool atEndOfStream() const;
|
||||
|
||||
template<typename Type>
|
||||
@@ -65,6 +64,9 @@ class Parser
|
||||
template<class CharacterPredicate>
|
||||
std::string parseIdentifier(CharacterPredicate characterPredicate);
|
||||
|
||||
template<typename Type>
|
||||
bool probe(const Type &expectedValue);
|
||||
|
||||
template<typename Type>
|
||||
void expect(const Type &expectedValue);
|
||||
|
||||
|
Reference in New Issue
Block a user