コード例 #1
0
        internal FollowSetsDigraphAnalyzer(
            Grammar <TTokenKind, TNonterminal> grammar,
            IErasableSymbolsAnalyzer nullableSymbolsAnalyzer,
            IFirstSetsAnalyzer <TTokenKind> starterTokensAnalyzer)
        {
            var analyzer = new FirstSymbolsAnalyzer <TTokenKind>(nullableSymbolsAnalyzer, starterTokensAnalyzer);

            _followMap = ComputeFollow(grammar, analyzer);
        }
コード例 #2
0
 public FollowSymbolsAnalyzer(
     IErasableSymbolsAnalyzer nullableSymbolsAnalyzer,
     IFirstSetsAnalyzer <TTokenKind> starterTokensAnalyzer,
     IFollowSetsAnalyzer <TTokenKind> followerTokensAnalyzer)
 {
     _nullableSymbolsAnalyzer = nullableSymbolsAnalyzer;
     _starterTokensAnalyzer   = starterTokensAnalyzer;
     _followerTokensAnalyzer  = followerTokensAnalyzer;
 }