Example #1
0
 public CcsScanner_t(CcsErrorPool_t errpool, string filename)
 {
     Stream stream;
     this.errpool = errpool;
     stream = new FileStream(filename, FileMode.Open);
     dummyToken = new CcsToken_t(0, 0, 0, 0, "dummy");
     buffer = new CcsBuffer_t(stream);
     Init();
 }
Example #2
0
 public CcsParser_t(string fname, TextWriter errwriter)
 {
     errpool = new CcsErrorPool_t(errwriter);
     scanner = new CcsScanner_t(errpool, fname);
     t = la = null;
     /*---- constructor ----*/
     maxT = 12;
     /*---- enable ----*/
 }
Example #3
0
    public CcsScanner_t(CcsErrorPool_t errpool, string filename)
    {
        Stream stream;

        this.errpool = errpool;
        stream       = new FileStream(filename, FileMode.Open);
        dummyToken   = new CcsToken_t(0, 0, 0, 0, "dummy");
        buffer       = new CcsBuffer_t(stream);
        Init();
    }