miSim

misim.editor
Class Parser

java.lang.Object
  |
  +--misim.editor.Parser
Direct Known Subclasses:
AssemblyParser, BasicParser

public abstract class Parser
extends java.lang.Object


Constructor Summary
Parser()
           
 
Method Summary
abstract  java.util.Vector parse(Token token)
          Read a Token and attempt to promote it into a sequence of Tokens appropriate for the particular parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

parse

public abstract java.util.Vector parse(Token token)
Read a Token and attempt to promote it into a sequence of Tokens appropriate for the particular parser. The Parser returns a Vector of Tokens, which may just contain the original token passed in.
Parameters:
token - The token to be parsed
Returns:
A Vector of Tokens representing the original text

miSim