Retrieve the arguments of a function, process everything from β(β up to β)β.
Function name is consumed by caller.
Retrieve the name (of a proposition or variable) from the input.
The first character of the name may or may not be already consumed by the caller.
Predicate to decide if a given βnameβ represents false
constant.
Predicate to decide if a given βnameβ represents true
constant.
Check if given char can appear in a name.
Check if given char can appear in a name.
Print the vector of tokens (for debug purposes).
Recursively display tokens.
Decide whether the name corresponds to a constant or a variable, and return the
correct term token.
Check all whitespaces at the front of the iterator.
Try to tokenize given FOL formula string, turning it into a vector of
FolToken instances.
Process a peekable iterator of characters into a vector of FolToken
s. This function is used
for both tokenizing a top-level formula an expression that is given as fnβs argument.