private void CheckError(bool is_read = false) { if (error != null) { Scaner.Exception res = error; error = null; throw res; } }
public void Pass() { while (!IsWhite(buf.Peek()) && buf.Peek() != -1 && buf.Peek() != ';') { buf.Read(); }; try { next_token = Next(); } catch (Scaner.Exception e) { error = e; } }
public Scaner(System.IO.StreamReader istream) { buf = new Buffer(istream.BaseStream); try { next_token = Next(); } catch (Scaner.Exception e) { error = e; } }
public Token Read() { CheckError(); Token res = next_token; try { next_token = Next(); } catch (Scaner.Exception e) { error = e; } return res; }
public void Pass() { while (!IsWhite(buf.Peek()) && buf.Peek() != -1 && buf.Peek() != ';') { buf.Read(); } ; try { next_token = Next(); } catch (Scaner.Exception e) { error = e; } }
public Token Read() { CheckError(); Token res = next_token; try { next_token = Next(); } catch (Scaner.Exception e) { error = e; } return(res); }