예제 #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);
 }