added "hasNext" check (oops)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@3533 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
buraq 2004-08-20 13:39:25 +00:00
parent c9ccbd339b
commit 63bc3b4bdf
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ object ConstructingParser {
val p = new ConstructingParser() { val p = new ConstructingParser() {
val input = inp; val input = inp;
override val handle = theHandle; override val handle = theHandle;
def nextch = { ch = input.next; pos = input.pos; } def nextch = if(input.hasNext) { ch = input.next; pos = input.pos; }
override val preserveWS = true; override val preserveWS = true;
/** report a syntax error */ /** report a syntax error */