![]() |
BadScript 2
|
Extensions for the Source Reader. More...
Static Public Member Functions | |
static bool | IsWordStart (this BadSourceReader reader, int offset=0) |
Returns true if the Current Character of the Reader is a valid Word Start Character. | |
static bool | IsWordChar (this BadSourceReader reader, int offset=0) |
Returns true if the Current Character of the Reader is a valid Word Character. | |
static bool | IsKey (this BadSourceReader reader, char c, int offset=0) |
static bool | IsKey (this BadSourceReader reader, string s, int offset=0) |
static bool | IsStringQuote (this BadSourceReader reader, int offset=0, bool singleQuote=false) |
Returns true if the Current Character is a String Quote Character. | |
static bool | IsNumberStart (this BadSourceReader reader, int offset=0) |
Returns true if the Current Character is a valid Number Character. | |
static bool | IsDigit (this BadSourceReader reader, int offset=0) |
Returns true if the Current Character is a Digit. | |
static bool | IsNewLine (this BadSourceReader reader, int offset=0) |
Returns true if the Current Character is a Newline Character. | |
static void | SkipWhiteSpace (this BadSourceReader reader) |
Skips all whitespace characters. | |
static void | SkipNewLine (this BadSourceReader reader) |
Skips all newline characters. | |
static void | SkipToEndOfLine (this BadSourceReader reader) |
Skips all characters untile a newline is found. | |
static void | SkipWhiteSpaceAndNewLine (this BadSourceReader reader) |
Skips all whitespace and newline characters. | |
static void | SkipComment (this BadSourceReader reader) |
Skips a comment. | |
static void | SkipNonToken (this BadSourceReader reader) |
Skips all whitespace, newline characters and comments. | |
static BadWordToken | ParseWord (this BadSourceReader reader) |
Parses a Word Token. | |
static BadNumberToken | ParseNumber (this BadSourceReader reader) |
Parses a BadNumberToken. | |
static BadBooleanToken | ParseBoolean (this BadSourceReader reader) |
Parses a BadBoolean Token. | |
static BadNullToken | ParseNull (this BadSourceReader reader) |
Parses a BadNullToken. | |
static ? BadSymbolToken | TryParseSymbols (this BadSourceReader reader, string symbols) |
Tries to parse symbols. | |
static ? BadSymbolToken | TryParseSymbols (this BadSourceReader reader, IEnumerable< string > symbols) |
Tries to parse a list of symbols. | |
static BadStringToken | ParseString (this BadSourceReader reader) |
Parses a BadStringToken. | |
static BadStringToken | ParseMultiLineString (this BadSourceReader reader) |
Parses a Multi Line String. | |
static bool | IsWhiteSpace (this BadSourceReader reader, int offset=0) |
Returns true if the Current Character is any whitespace or newline characters. | |
static bool | Last (this BadSourceReader reader, char c) |
Returns true if the last non-whitespace character is the specified character. | |
Extensions for the Source Reader.
Definition at line 13 of file BadSourceReaderExtensions.cs.
|
static |
Returns true if the Current Character is a Digit.
reader | The Reader Instance |
offset | The Offset from the Current Reader Position |
Definition at line 84 of file BadSourceReaderExtensions.cs.
|
static |
Definition at line 39 of file BadSourceReaderExtensions.cs.
|
static |
Definition at line 44 of file BadSourceReaderExtensions.cs.
|
static |
Returns true if the Current Character is a Newline Character.
reader | The Reader Instance |
offset | The Offset from the Current Reader Position |
Definition at line 95 of file BadSourceReaderExtensions.cs.
|
static |
Returns true if the Current Character is a valid Number Character.
reader | The Reader Instance |
offset | The Offset from the Current Reader Position |
Definition at line 72 of file BadSourceReaderExtensions.cs.
|
static |
Returns true if the Current Character is a String Quote Character.
reader | The Reader Instance |
offset | The Offset from the Current Reader Position |
singleQuote | Is the string expected to start with ' |
Definition at line 56 of file BadSourceReaderExtensions.cs.
|
static |
Returns true if the Current Character is any whitespace or newline characters.
reader | The Reader Instance |
offset | The Offset from the Current Reader Position |
Definition at line 408 of file BadSourceReaderExtensions.cs.
|
static |
Returns true if the Current Character of the Reader is a valid Word Character.
reader | The Reader Instance |
offset | The Offset from the Current Reader Position |
Definition at line 33 of file BadSourceReaderExtensions.cs.
|
static |
Returns true if the Current Character of the Reader is a valid Word Start Character.
reader | The Reader Instance |
offset | The Offset from the Current Reader Position |
Definition at line 21 of file BadSourceReaderExtensions.cs.
|
static |
Returns true if the last non-whitespace character is the specified character.
reader | The Reader Instance |
c | The Character that should be matched |
Definition at line 420 of file BadSourceReaderExtensions.cs.
|
static |
Parses a BadBoolean Token.
reader | The Reader Instance |
BadSourceReaderException | Gets Raised if the Current Character sequence is not Equal to BadStaticKeys.True and not equal to BadStaticKeys.False |
Definition at line 252 of file BadSourceReaderExtensions.cs.
|
static |
Parses a Multi Line String.
reader | The Reader Instance |
BadSourceReaderException | Gets Raised if the String is not properly terminated |
Definition at line 372 of file BadSourceReaderExtensions.cs.
|
static |
Parses a BadNullToken.
reader | The Reader Instance |
Definition at line 275 of file BadSourceReaderExtensions.cs.
|
static |
Parses a BadNumberToken.
reader | The Reader Instance |
BadSourceReaderException | Gets raised if the Start Character is not a valid number character |
Definition at line 211 of file BadSourceReaderExtensions.cs.
|
static |
Parses a BadStringToken.
reader | The Reader Instance |
BadSourceReaderException | Gets Raised if the Start Character is not a String Quote or the Sequence is not properly terminated. |
Definition at line 314 of file BadSourceReaderExtensions.cs.
|
static |
Parses a Word Token.
reader | The Reader Instance |
BadSourceReaderException | Gets Raised if the Current Character is not a Valid Word Start Character
|
Definition at line 184 of file BadSourceReaderExtensions.cs.
|
static |
Skips a comment.
reader | The Reader Instance |
Definition at line 141 of file BadSourceReaderExtensions.cs.
|
static |
Skips all newline characters.
reader | The Reader Instance |
Definition at line 114 of file BadSourceReaderExtensions.cs.
|
static |
Skips all whitespace, newline characters and comments.
reader | The Reader Instance |
Definition at line 161 of file BadSourceReaderExtensions.cs.
|
static |
Skips all characters untile a newline is found.
reader | The Reader Instance |
Definition at line 123 of file BadSourceReaderExtensions.cs.
|
static |
Skips all whitespace characters.
reader | The Reader Instance |
Definition at line 104 of file BadSourceReaderExtensions.cs.
|
static |
Skips all whitespace and newline characters.
reader | The Reader Instance |
Definition at line 132 of file BadSourceReaderExtensions.cs.
|
static |
Tries to parse a list of symbols.
reader | The Reader Instance |
symbols | The Symbol Sequences to be parsed |
Definition at line 297 of file BadSourceReaderExtensions.cs.
|
static |
Tries to parse symbols.
reader | The Reader Instance |
symbols | The Symbol Sequence to be parsed |
Definition at line 286 of file BadSourceReaderExtensions.cs.