Пример #1
0
 public SLRParser(Semantic semantic, Syntactic syntactic)
 {
     _tableParser = new TableParser();
     Generated    = false;
     IsSLR        = true;
     _semantic    = semantic;
     _syntactic   = syntactic;
 }
Пример #2
0
 public LALRParser(Semantic semantic, Syntactic syntactic)
 {
     Generated    = false;
     IsLALR       = true;
     _semantic    = semantic;
     _syntactic   = syntactic;
     _tableParser = new TableParser();
     states       = new List <LRState>();
 }