コード例 #1
0
        public static bool IsNullable(this LexMatchType matchType)
        {
            switch (matchType)
            {
            case LexMatchType.Null:
                return(true);

            default:
                return(false);
            }
        }
コード例 #2
0
 public SequenceLexRule(LexMatchType matchType)
     : this(matchType, new List <ILexRule>())
 {
     return;
 }
コード例 #3
0
 public SequenceLexRule(LexMatchType matchType, IList <ILexRule> rules)
 {
     MatchType = matchType;
     _rules    = rules;
 }
コード例 #4
0
ファイル: LexNode.cs プロジェクト: g1hanna/Stem
 public bool Matches(LexMatchType matchType)
 {
     return(MatchType == matchType);
 }
コード例 #5
0
ファイル: LexNode.cs プロジェクト: g1hanna/Stem
 public LexNode(LexMatchType matchType, int start, string text)
 {
     MatchType = matchType;
     Text      = text;
     Start     = start;
 }
コード例 #6
0
ファイル: FunctionalLexRule.cs プロジェクト: g1hanna/Stem
 public FunctionalLexRule(LexMatchType matchType, LexMatcher lexFunction)
 {
     LexFunction = lexFunction;
     MatchType   = matchType;
 }
コード例 #7
0
 public ContainerParseRule(ParseMatchType matchType, LexMatchType lexMatchType)
     : this(matchType, l => l.MatchType == lexMatchType, new List <IParseRule>())
 {
     return;
 }