CodeFile.Skip Method
Assembly: Topten.Cminor.Compiler.dll
Namespace: Topten.Cminor.Lexical
Declaring Type: CodeFile
Overloads
Skip(Func<char,bool>) | Skip characters matching predicate |
Skip(char) | Skip one instance of the specified character (case sensitive) |
Skip(string) | Skip a string (case sensitive) |
Skip(Func<char,bool>)
Skip characters matching predicate
public bool Skip(Func<char,bool> predicate);
Parameters
Func<char,bool> predicate | The predicate callback |
Returns
bool | True any characters were skipped |
Skip(char)
Skip one instance of the specified character (case sensitive)
public bool Skip(char ch);
Parameters
char ch | The character to skip |
Returns
bool | True if the character was skipped |
Skip(string)
Skip a string (case sensitive)
public bool Skip(string str);
Parameters
string str | The string to skip |
Returns
bool | True if the string was found at the current position |