org.hecl
Class ParseState
- java.lang.Object
-
- org.hecl.ParseState
-
public class ParseState extends java.lang.ObjectTheParseStateclass is the state of the current parse.
-
-
Field Summary
Fields Modifier and Type Field and Description booleaneocbooleaneofintlenintlineno
-
Constructor Summary
Constructors Constructor and Description ParseState(java.lang.String in)Creates a newParseStateinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleandone()Thedonemethod returns true if either the end-of-command or end-of-file condition is true.charnextchar()nextcharreturns the next character, keeping track of end-of-command and end-of-file conditions.voidremaining()Theremainingmethod is for debugging purposes, and prints to standard output the remaining text.voidrewind()Therewindmethod "rewinds" the input by one character.
-
-
-
Field Detail
-
len
public int len
-
lineno
public int lineno
-
eof
public boolean eof
-
eoc
public boolean eoc
-
-
Constructor Detail
-
ParseState
public ParseState(java.lang.String in)
Creates a newParseStateinstance.- Parameters:
in- aStringvalue
-
-
Method Detail
-
nextchar
public char nextchar()
nextcharreturns the next character, keeping track of end-of-command and end-of-file conditions.- Returns:
- a
charvalue
-
done
public boolean done()
Thedonemethod returns true if either the end-of-command or end-of-file condition is true.- Returns:
- a
booleanvalue
-
remaining
public void remaining()
Theremainingmethod is for debugging purposes, and prints to standard output the remaining text.
-
rewind
public void rewind()
Therewindmethod "rewinds" the input by one character.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG