internal FollowSetsDigraphAnalyzer( Grammar <TTokenKind, TNonterminal> grammar, IErasableSymbolsAnalyzer nullableSymbolsAnalyzer, IFirstSetsAnalyzer <TTokenKind> starterTokensAnalyzer) { var analyzer = new FirstSymbolsAnalyzer <TTokenKind>(nullableSymbolsAnalyzer, starterTokensAnalyzer); _followMap = ComputeFollow(grammar, analyzer); }
public FollowSymbolsAnalyzer( IErasableSymbolsAnalyzer nullableSymbolsAnalyzer, IFirstSetsAnalyzer <TTokenKind> starterTokensAnalyzer, IFollowSetsAnalyzer <TTokenKind> followerTokensAnalyzer) { _nullableSymbolsAnalyzer = nullableSymbolsAnalyzer; _starterTokensAnalyzer = starterTokensAnalyzer; _followerTokensAnalyzer = followerTokensAnalyzer; }