Enhanced C#
Language of your choice: library documentation
Loyc.Syntax.ParserSource< Token, MatchType, List > Class Template Reference

An implementation of the LLLPG Parser API, used with the LLLPG options inputSource and inputClass. More...


Source file:

Remarks

An implementation of the LLLPG Parser API, used with the LLLPG options inputSource and inputClass.

This derived class simply makes public all of the LLLPG APIs which are marked protected in BaseParserForList<Token,MatchType,List>.

Template Parameters
TokenData type of complete tokens in the token list. A token contains the type of a "word" in the program (string, identifier, plus sign, etc.), a value (e.g. the name of an identifier), and a range of characters in the source file. See ISimpleToken<MatchType>. Note: Token is usually a small struct; this class does not expect it to ever be null.
MatchTypeA data type, usually int, that represents a token type (identifier, operator, etc.) and implements IEquatable<T> so it can be compared for equality with other token types; this is also the type of the ISimpleToken<Matchtype>.Type property.
ListData type of the list that contains the tokens (one often uses IList{Token}, but one could use Loyc.Collections.Impl.InternalList<T> for potentially higher performance.)
Type Constraints
Token :ISimpleToken<MatchType> 
MatchType :IEquatable<MatchType> 
List :IList<Token>