public class BabelParser2
extends java.lang.Object
Constructor and Description |
---|
BabelParser2(java.lang.String inStr,
java.lang.Integer errNo)
BabelParser constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
eraseOutput()
Erase output stream
|
boolean |
finished() |
java.lang.String |
getOutStr()
Take output generated by syntax scan, and return as String Output index
is then set back to zero.
|
boolean |
tb(char mod)
Test for blank, CR or tab, but with modification (must be 'i', 'n' or 'o')
('n' is equivalent to old Babel 'IO' - I- and O-modification)
(the only blank tests in DiagramBuilder logic are all mod'd)
|
boolean |
tc(char x)
This macro compares against a given character.
|
boolean |
tc(char x,
char mod)
Same as tc(char), but with modification (must be 'i', 'n' or 'o') ('n' is
equivalent to old Babel 'IO' - I- and O-modification)
|
boolean |
tf()
This macro compares against a number (figure).
|
boolean |
tf(char mod)
Same as tf(), but with modification (must be 'i', 'o' or 'n') ('n' is
equivalent to old Babel 'IO' - I- and O-modification)
|
boolean |
tl()
This macro compares against a letter.
|
boolean |
tl(char mod)
Same as tl(), but with modification (must be 'i', 'o' or 'n') ('n' is
equivalent to old Babel 'IO' - I- and O-modification)
|
boolean |
tu()
Babel 'universal comparator' - it is always true, unless we are at end of
file
|
boolean |
tu(char mod)
Same as tu(), but with modification (must be 'i', 'o' or 'n') ('n' is
equivalent to old Babel 'IO' - I- and O-modification)
|
boolean |
w(char x)
Write one char out to output stream
|
public BabelParser2(java.lang.String inStr, java.lang.Integer errNo)
public void eraseOutput()
public boolean finished()
public java.lang.String getOutStr()
public boolean tc(char x)
public boolean tc(char x, char mod)
x
- charmod
- charpublic boolean tb(char mod)
mod
- charpublic boolean tf()
public boolean tf(char mod)
mod
- charpublic boolean tl()
public boolean tl(char mod)
mod
- charpublic boolean tu()
public boolean tu(char mod)
mod
- charpublic boolean w(char x)
x
- char