public static bool IsNullable(this LexMatchType matchType) { switch (matchType) { case LexMatchType.Null: return(true); default: return(false); } }
public SequenceLexRule(LexMatchType matchType) : this(matchType, new List <ILexRule>()) { return; }
public SequenceLexRule(LexMatchType matchType, IList <ILexRule> rules) { MatchType = matchType; _rules = rules; }
public bool Matches(LexMatchType matchType) { return(MatchType == matchType); }
public LexNode(LexMatchType matchType, int start, string text) { MatchType = matchType; Text = text; Start = start; }
public FunctionalLexRule(LexMatchType matchType, LexMatcher lexFunction) { LexFunction = lexFunction; MatchType = matchType; }
public ContainerParseRule(ParseMatchType matchType, LexMatchType lexMatchType) : this(matchType, l => l.MatchType == lexMatchType, new List <IParseRule>()) { return; }