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(); }
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 ----*/ }