コード例 #1
0
ファイル: Grammar.cs プロジェクト: sunny-hell/bmstu
 public bool isDistinguishedSymbol(Symbol s)
 {
     return (s is Nonterminal && s.Sym == DistinguishedSymbol.Sym);
 }
コード例 #2
0
ファイル: Grammar.cs プロジェクト: sunny-hell/bmstu
 public bool isVanishingSymbol(Symbol s)
 {
     return _vanishingSymbols.Exists(vs => vs.Sym == s.Sym);
 }
コード例 #3
0
ファイル: Rule.cs プロジェクト: sunny-hell/bmstu
 public bool hasSymbolInRight(Symbol s)
 {
     return Right.Exists(rr => rr.Sym == s.Sym);
 }