protected void parseZeroOrMoreWs() { if (!stream.eol() && !stream.eof()) { while (stream.peekCharIs(' ')) { stream.advance(1); } } }
protected void parseZeroOrMoreWsOptCmtNl() { while (true) { parseZeroOrMoreWs(); parseHiddenComment(); if (stream.eol()) { stream.advanceLine(); } else { return; } } }
protected void parseZeroOrMoreWs() { if (!stream.eol() && !stream.eof()) { while (stream.peekCharIs(' ')) { stream.advance(1); } } }
protected void parseZeroOrMoreWs() { if (!s.eol() && !s.eof()) { while (s.peekCharIs(' ')) { s.advance(1); } } }
protected void parseZeroOrMoreWsOptCmtNl() throws OBOFormatParserException { while(true) { parseZeroOrMoreWs(); parseHiddenComment(); if (s.eol()) { s.advanceLine(); } else { return; } } }
public boolean peekCharIs(char c) { if (eol() || eof()) { return false; } return peekChar() == c; }
public boolean peekCharIs(char c) { if (eol() || eof()) { return false; } return peekChar() == c; }
protected void parseOneOrMoreWs() { if (stream.eol() || stream.eof()) { error("Expected at least one white space at pos: " + stream.pos); } int n = 0; while (stream.peekCharIs(' ')) { stream.advance(1); n++; } if (n == 0) { error("Expected at least one white space at pos: " + stream.pos); } }
protected void parseZeroOrMoreWsOptCmtNl() { while (true) { parseZeroOrMoreWs(); parseHiddenComment(); if (stream.eol()) { stream.advanceLine(); } else { return; } } }
protected void parseZeroOrMoreWs() { if (!stream.eol() && !stream.eof()) { while (stream.peekCharIs(' ')) { stream.advance(1); } } }
protected void parseZeroOrMoreWs() { if (!stream.eol() && !stream.eof()) { while (stream.peekCharIs(' ')) { stream.advance(1); } } }
protected void forceParseNlOrEof() { parseZeroOrMoreWs(); if (stream.eol()) { stream.advanceLine(); return; } if (stream.eof()) { return; } error("expected newline or end of line but found: " + stream.rest()); }
protected void parseOneOrMoreWs() throws OBOFormatParserException { if (s.eol() || s.eof()) { error("Expected at least one white space at pos: "+s.pos); } int n = 0; while (s.peekCharIs(' ')) { s.advance(1); n++; } if ( n == 0) { error("Expected at least one white space at pos: "+s.pos); } }
protected void forceParseNlOrEof() { parseZeroOrMoreWs(); if (stream.eol()) { stream.advanceLine(); return; } if (stream.eof()) { return; } error("expected newline or end of line but found: " + stream.rest()); }
protected void parseZeroOrMoreWsOptCmtNl() { while (true) { parseZeroOrMoreWs(); parseHiddenComment(); if (stream.eol()) { stream.advanceLine(); } else { return; } } }
protected void forceParseNlOrEof() { parseZeroOrMoreWs(); if (stream.eol()) { stream.advanceLine(); return; } if (stream.eof()) { return; } error("expected newline or end of line but found: " + stream.rest()); }
public boolean peekCharIs(char c) { if (eol() || eof()) { return false; } return peekChar() == c; }
protected void forceParseNlOrEof() { parseZeroOrMoreWs(); if (stream.eol()) { stream.advanceLine(); return; } if (stream.eof()) { return; } error("expected newline or end of line but found: " + stream.rest()); }
protected void parseZeroOrMoreWsOptCmtNl() { while (true) { parseZeroOrMoreWs(); parseHiddenComment(); if (stream.eol()) { stream.advanceLine(); } else { return; } } }
public boolean peekCharIs(char c) { if (eol() || eof()) { return false; } return peekChar() == c; }