Beispiel #1
0
 public override void close()
 {
     if(reader != null) {
     reader.close();
     reader = null;
     }
     base.close();
 }
Beispiel #2
0
 public override void close()
 {
     if (reader != null)
     {
         reader.close();
         reader = null;
     }
     base.close();
 }
Beispiel #3
0
	/* ppvalid is:
	 * false in StringLexerSource,
	 * true in FileLexerSource */
	public LexerSource(TextReader r, bool ppvalid) {
		this.reader = new JoinReader(r);
		this.ppvalid = ppvalid;
		this.bol = true;
		this.include = false;

		this.digraphs = true;

		this.ucount = 0;

		this.line = 1;
		this.column = 0;
		this.lastcolumn = -1;
		this.cr = false;
	}
Beispiel #4
0
        /* ppvalid is:
         * false in StringLexerSource,
         * true in FileLexerSource */
        public LexerSource(TextReader r, bool ppvalid)
        {
            this.reader  = new JoinReader(r);
            this.ppvalid = ppvalid;
            this.bol     = true;
            this.include = false;

            this.digraphs = true;

            this.ucount = 0;

            this.line       = 1;
            this.column     = 0;
            this.lastcolumn = -1;
            this.cr         = false;
        }