Property | Type | Description | |
---|---|---|---|
WhiteSpaceCharacters | char[] |
Method | Description | |
---|---|---|
IsWhiteSpace ( char character ) : bool |
Determines whether or not the specified character is whitespace.
|
|
Parse ( |
Parses a collection of code elements from a stream reader.
|
Method | Description | |
---|---|---|
ApplyCommentsAndAttributes ( |
Applies attributes and comments to a code element.
|
|
DoParseElements ( ) : List |
Parses elements from the current point in the stream.
|
|
EatChar ( char character ) : void |
Eats the specified character.
|
|
EatWhiteSpace ( ) : void |
Reads until the next non-whitespace character is reached.
|
|
EatWhiteSpace ( WhiteSpaceTypes whiteSpaceType ) : void |
Reads until the next non-whitespace character is reached.
|
|
GetCommentDirectiveText ( |
Gets text from a comment directive, if present.
|
|
OnParseError ( string message ) : void |
Throws a parse error
|
|
PeekNextCharExcept ( char ignores ) : char |
Peeks ahead in the reader until the first character not in the ignore list is found and returns it. If already at eof or only characters to be ignored are found until end then '\0' is returned.
|
|
ReadLine ( ) : string |
Reads the current line. Does not update PreviousChar.
|
|
TryReadChar ( ) : bool |
Tries to read any character from the stream and places it in the CurrentChar property.
|
|
TryReadChar ( char character ) : bool |
Tries to read the specified character from the stream and update the CurrentChar property.
|
Method | Description | |
---|---|---|
Reset ( ) : void |
Reset the parser to a state to handle parsing another input.
|
protected static ApplyCommentsAndAttributes ( |
||
codeElement | Code element to apply to. | |
comments | ReadOnlyCollection |
Comments to apply. |
attributes | ReadOnlyCollection |
Attributes to apply. |
return | void |
protected abstract DoParseElements ( ) : List |
||
return | List |
protected EatChar ( char character ) : void | ||
character | char | Character to eat. |
return | void |
protected EatWhiteSpace ( WhiteSpaceTypes whiteSpaceType ) : void | ||
whiteSpaceType | WhiteSpaceTypes | Whitespace type flags. |
return | void |
protected GetCommentDirectiveText ( |
||
comment | Comment element containing the directive. | |
pattern | string | Regular expression pattern. |
group | string | Group key for the text to retrieve. |
return | string |
public static IsWhiteSpace ( char character ) : bool | ||
character | char | Character to test. |
return | bool |
protected OnParseError ( string message ) : void | ||
message | string | Parse error message. |
return | void |
public Parse ( |
||
reader | Code stream reader | |
return | ReadOnlyCollection |
protected PeekNextCharExcept ( char ignores ) : char | ||
ignores | char | |
return | char |
protected TryReadChar ( char character ) : bool | ||
character | char | Character to read. |
return | bool |