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:
parent
c9ccbd339b
commit
63bc3b4bdf
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue