Parses Enhanced C# code into a sequence of Loyc trees (LNode), one per top-level statement.
You can use EcsLanguageService.Value with ParsingService.Parse to easily parse a text string (holding zero or more EC# statements) into a Loyc tree. One does not normally use this class directly.
|
sealed override int | EofInt () |
| Returns the value used for EOF (normally 0) More...
|
|
sealed override Token | LT (int i) |
| Returns the token at lookahead i (e.g. Source[InputPosition + i] if the tokens come from a list called Source) More...
|
|
LNode | Error (string message, params object[] args) |
|
void | Error (LNode node, string message, params object[] args) |
|
void | Error (Token token, string message, params object[] args) |
|
override void | Error (int lookaheadIndex, string message) |
| Records an error or throws an exception. More...
|
|
override void | Error (int lookaheadIndex, string message, params object[] args) |
|
int | GetTextPosition (int tokenPosition) |
|
override string | ToString (int type_) |
|
TT | LA (int i) |
|
bool | Down (int li) |
|
bool | Down (IListSource< Token > children) |
|
T | Up< T > (T value) |
|
void | Up () |
|
LNode | SingleExprInside (Token group, string stmtType, WList< LNode > list=null, bool allowUnassignedVarDecl=false) |
|
WList< LNode > | AppendExprsInside (Token group, WList< LNode > list, bool allowTrailingComma=false, bool allowUnassignedVarDecl=false) |
|
WList< LNode > | AppendInitializersInside (Token group, WList< LNode > list) |
|
WList< LNode > | AppendStmtsInside (Token group, WList< LNode > list) |
|
WList< LNode > | ExprListInside (Token t, bool allowTrailingComma=false, bool allowUnassignedVarDecl=false) |
|
| BaseParser (ISourceFile file=null, int startIndex=0) |
|
| BaseParser (ISourceFile file=null, int startIndex=0) |
|
abstract string | ToString (MatchType tokenType) |
| Returns a string representation of the specified token type. These strings are used in error messages. More...
|
|
virtual int | LaIndexToCharIndex (int lookaheadIndex) |
| Converts a lookahead token index to a character index (used for error reporting). More...
|
|
virtual object | LaIndexToSourcePos (int lookaheadIndex) |
| Converts a lookahead token index to a SourcePos object using LaIndexToCharIndex and SourceFile. More...
|
|
void | Skip () |
|
Token | MatchAny () |
|
Token | Match (HashSet< MatchType > set, bool inverted=false) |
|
Token | Match (MatchType a) |
|
Token | Match (MatchType a, MatchType b) |
|
Token | Match (MatchType a, MatchType b, MatchType c) |
|
Token | Match (MatchType a, MatchType b, MatchType c, MatchType d) |
|
Token | MatchExcept () |
|
Token | MatchExcept (MatchType a) |
|
Token | MatchExcept (MatchType a, MatchType b) |
|
Token | MatchExcept (MatchType a, MatchType b, MatchType c) |
|
Token | MatchExcept (MatchType a, MatchType b, MatchType c, MatchType d) |
|
Token | MatchExcept (HashSet< MatchType > set) |
|
bool | TryMatch (HashSet< MatchType > set, bool inverted=false) |
|
bool | TryMatch (MatchType a) |
|
bool | TryMatch (MatchType a, MatchType b) |
|
bool | TryMatch (MatchType a, MatchType b, MatchType c) |
|
bool | TryMatch (MatchType a, MatchType b, MatchType c, MatchType d) |
|
bool | TryMatchExcept () |
|
bool | TryMatchExcept (MatchType a) |
|
bool | TryMatchExcept (MatchType a, MatchType b) |
|
bool | TryMatchExcept (MatchType a, MatchType b, MatchType c) |
|
bool | TryMatchExcept (MatchType a, MatchType b, MatchType c, MatchType d) |
|
bool | TryMatchExcept (HashSet< MatchType > set) |
|
void | Error (bool inverted, params MatchType[] expected) |
|
virtual void | Error (bool inverted, IEnumerable< MatchType > expected) |
|
virtual string | ToString (bool inverted, IEnumerable< MatchType > expected) |
|
virtual void | Check (bool expectation, string expectedDescr="") |
|