C# Class Rebel.Framework.Localization.Parsing.DefaultExpressionParser

Inheritance: ExpressionParser
Mostra file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
DefaultExpressionParser ( ) : System
Escape ( string s ) : string
Parse ( TextReader reader, TextManager textManager ) : Expression

Parses the specified pattern returned by the reader and localizes error messages with the text manager specified

Private Methods

Method Description
ExpectedToken ( string construct, string token ) : void
LookAheadFor ( string chars ) : char
MoveNext ( ) : bool
ParseExpression ( ) : Expression
ParseExpressionPart ( ) : ExpressionPart
ParseFormatGroup ( ) : FormatGroup
ParseParameterSpec ( ) : ParameterSpec
ParseSwitch ( ) : System.Switch
ParseSwitchCase ( ) : SwitchCase
ParseText ( ) : Text
ReadParameterFormat ( ) : string
ReadParameterName ( ) : string
ReadText ( string stopChars ) : string
SyntaxError ( string construct, string defaultMessage, string messageKey, object messageParams ) : void
TakeWhitespace ( ) : bool
UnexpectedSwitchToken ( string parameterName, string token ) : void
UnexpectedToken ( string construct, string token ) : void

Method Details

DefaultExpressionParser() public method

public DefaultExpressionParser ( ) : System
return System

Escape() public static method

public static Escape ( string s ) : string
s string
return string

Parse() public method

Parses the specified pattern returned by the reader and localizes error messages with the text manager specified
public Parse ( TextReader reader, TextManager textManager ) : Expression
reader TextReader The reader.
textManager TextManager The text manager.
return Expression