|
Scala
1.4.0.3 |
|||
Field Summary | |
protected abstract
|
val iter: Iterator[Char]
the actual iterator |
Method Summary | |
protected
|
var ccol: Int
|
var ch: Char
the last character returned by next. |
|
protected
|
var cline: Int
|
var descr: String
description of this source, default empty |
|
def getLine(line: Int): String
convenience method, returns given line (not including newline) from Source |
|
def hasNext: Boolean
returns true if this source has more characters |
|
var nerrors: Int
|
|
def next: Char
returns next character and has the following side-effects: updates position (ccol and cline) and assigns the character to ch |
|
var nwarnings: Int
|
|
var pos: Int
position of last character returned by next |
|
def report(pos: Int, msg: String, out: java.io.PrintStream): Unit
|
|
def reportError(pos: Int, msg: String): Unit
reports an error message to console |
|
def reportError(pos: Int, msg: String, out: java.io.PrintStream): Unit
|
|
def reportWarning(pos: Int, msg: String): Unit
reports a warning message to java.lang.System.out |
|
def reportWarning(pos: Int, msg: String, out: java.io.PrintStream): Unit
|
|
abstract
|
def reset: Source
the actual reset method |
var tabinc: Int
default col increment for tabs '\t', set to 4 initially |
Methods inherited from java/lang/Object-class |
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Iterator-class |
/:, :\, append, buffered, contains, copyToArray, drop, duplicate, exists, filter, find, flatMap, foldLeft, foldRight, forall, foreach, map, take, toList, zip |
Methods inherited from scala/ScalaObject-class |
getScalaType |
Field Detail |
protected abstract val iter: Iterator[Char]
Method Detail |
protected var cline: Int
protected var ccol: Int
var pos: Int
var ch: Char
var descr: String
var nerrors: Int
var nwarnings: Int
var tabinc: Int
def getLine(line: Int): String
def hasNext: Boolean
def next: Char
def reportError(pos: Int, msg: String): Unit
def reportError(pos: Int, msg: String, out: java.io.PrintStream): Unit
def report(pos: Int, msg: String, out: java.io.PrintStream): Unit
def reportWarning(pos: Int, msg: String): Unit
def reportWarning(pos: Int, msg: String, out: java.io.PrintStream): Unit
abstract def reset: Source
|
Scala
1.4.0.3 |
|||