|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.number.Parser
public class Parser
A hand written top down parser for Rational, Radicand1 and Matrix4 classes
| Constructor Summary | |
|---|---|
Parser(java.io.Reader in)
|
|
| Method Summary | |
|---|---|
float |
floatNum()
A floating point number of the form {+,-}? |
void |
fraction()
FRACTION <= INTEGER { '/' NATURAL}? |
java.io.StreamTokenizer |
getTokenizer()
|
int |
integer()
INTEGER <- {+|-}? |
Matrix4rad |
matrix4rad()
Reads a 4x4 radical matrix from the tokenizer [ [radicand x 4] x4] |
int |
natural()
A posative integer (no signs infront of digits) |
Radical1 |
radicand1()
RADICAND1 <- RADICAND1_TERM {"+" RADICAND1_TERM}* |
void |
radicand1Term()
RADICAND1_TERM <- RATIONAL {"*" RADICAND} | RADICAND |
Rational |
rational()
RATIONAL <- FRACTION || ( INTEGER +? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser(java.io.Reader in)
| Method Detail |
|---|
public java.io.StreamTokenizer getTokenizer()
public Matrix4rad matrix4rad()
throws java.io.IOException
java.io.IOException
public Radical1 radicand1()
throws java.io.IOException
java.io.IOException
public void radicand1Term()
throws java.io.IOException
java.io.IOException
public Rational rational()
throws java.io.IOException
java.io.IOException
public void fraction()
throws java.io.IOException
java.io.IOException
public int integer()
throws java.io.IOException
java.io.IOException
public int natural()
throws java.io.IOException
java.io.IOException
public float floatNum()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||