ist.palcom.assembler
Class Tokenizer

java.lang.Object
  extended by java.io.StreamTokenizer
      extended by ist.palcom.assembler.Tokenizer

public class Tokenizer
extends java.io.StreamTokenizer


Field Summary
 
Fields inherited from class java.io.StreamTokenizer
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype
 
Constructor Summary
Tokenizer(java.io.Reader reader)
           
 
Method Summary
 void consumeEOLs()
           
 byte getByte()
           
 int getNumber()
           
 double getReal()
           
 java.lang.String getString()
           
 java.lang.String getStringOrNull()
           
 java.lang.String getSymbol()
           
 void matchEOLs()
           
 boolean matches(java.lang.String match)
           
 void matchString(java.lang.String match)
           
 
Methods inherited from class java.io.StreamTokenizer
commentChar, eolIsSignificant, lineno, lowerCaseMode, nextToken, ordinaryChar, ordinaryChars, parseNumbers, pushBack, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tokenizer

public Tokenizer(java.io.Reader reader)
Method Detail

getNumber

public int getNumber()
              throws java.lang.Exception
Throws:
java.lang.Exception

getByte

public byte getByte()
             throws java.lang.Exception
Throws:
java.lang.Exception

getStringOrNull

public java.lang.String getStringOrNull()
                                 throws java.io.IOException
Throws:
java.io.IOException

getString

public java.lang.String getString()
                           throws java.lang.Exception
Throws:
java.lang.Exception

getSymbol

public java.lang.String getSymbol()
                           throws java.lang.Exception
Throws:
java.lang.Exception

getReal

public double getReal()
               throws java.lang.Exception
Throws:
java.lang.Exception

matchString

public void matchString(java.lang.String match)
                 throws java.lang.Exception
Throws:
java.lang.Exception

matches

public boolean matches(java.lang.String match)
                throws java.io.IOException
Throws:
java.io.IOException

matchEOLs

public void matchEOLs()
               throws java.lang.Exception
Throws:
java.lang.Exception

consumeEOLs

public void consumeEOLs()
                 throws java.io.IOException
Throws:
java.io.IOException