예제 #1
0
파일: Parser.cs 프로젝트: liuyisi/Compiler
 public parser()
 {
     SNLScanner = new scanner() ;
     SNLPredict = new Predict("../../Predict.txt") ;
     SNLProduct = new Product("../../Product.txt") ;
     error      = new ErrorType() ;
     cur = 0;
 }
예제 #2
0
 public semantic()
     {
         Line = 1;
         Row  = 1;
         Cur  = 0;
         Error = new ErrorType();
         parser = new parser();
     }