コード例 #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
ファイル: semantic.cs プロジェクト: liuyisi/Compiler
 public semantic()
     {
         Line = 1;
         Row  = 1;
         Cur  = 0;
         Error = new ErrorType();
         parser = new parser();
     }