byucc.jhdl.Fsm
Class Parser

java.lang.Object
  extended bybyucc.jhdl.Fsm.Parser
All Implemented Interfaces:
ParserConstants

public class Parser
extends java.lang.Object
implements ParserConstants


Field Summary
 FsmData fd
           
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 ParserTokenManager token_source
           
 
Fields inherited from interface byucc.jhdl.Fsm.ParserConstants
DEFAULT, DEFAULTTOK, DESCRIPTION, DIGIT, DIGT, ENCBIT, ENCODING, ENCODINGCMD, EOF, INBIT, INPUTCMD, INPUTTERM, IOBIT, IOTERM, LETTER, MULTI_LINE_COMMENT, NUMBER, ONEHOTTOK, OUTPUTCMD, SINGLE_LINE_COMMENT, STATECMD, STATENAME, STATEWIDTH, tokenImage
 
Constructor Summary
Parser(java.io.InputStream stream)
           
Parser(ParserTokenManager tm)
           
Parser(java.io.Reader stream)
           
 
Method Summary
 void body()
           
 void clearStack()
           
 void combLine()
           
 void combLines()
           
 void desc()
           
 void description()
           
 void disable_tracing()
           
 void enable_tracing()
           
 void enc()
           
 void encodings()
           
 void encs()
           
 FsmData fsmFile(java.lang.String fname)
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void iName()
           
 void iNames()
           
 void iTerm()
           
 void num()
           
 void oName()
           
 void oNames()
           
 java.lang.String popStack()
           
 void productLine2()
           
 void productLine4()
           
 void productLines2()
           
 void productLines4()
           
 void pushStack(java.lang.String s)
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 boolean setVerbose(boolean flag)
          Sets the verbosity, and returns the prior value of the verbose flag
 boolean stackEmpty()
           
 int stackSize()
           
 void stateName()
           
 void states()
           
 void stateWidth()
           
 void stName()
           
 void stNames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fd

public FsmData fd

token_source

public ParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

Parser

public Parser(java.io.InputStream stream)

Parser

public Parser(java.io.Reader stream)

Parser

public Parser(ParserTokenManager tm)
Method Detail

setVerbose

public boolean setVerbose(boolean flag)
Sets the verbosity, and returns the prior value of the verbose flag

Parameters:
flag - The new state of the verbose flag
Returns:
The prior state of the verbose flag

stackSize

public int stackSize()

stackEmpty

public boolean stackEmpty()

popStack

public java.lang.String popStack()

pushStack

public void pushStack(java.lang.String s)

clearStack

public void clearStack()

fsmFile

public final FsmData fsmFile(java.lang.String fname)
                      throws ParseException
Throws:
ParseException

body

public final void body()
                throws ParseException
Throws:
ParseException

stateWidth

public final void stateWidth()
                      throws ParseException
Throws:
ParseException

num

public final void num()
               throws ParseException
Throws:
ParseException

description

public final void description()
                       throws ParseException
Throws:
ParseException

desc

public final void desc()
                throws ParseException
Throws:
ParseException

iNames

public final void iNames()
                  throws ParseException
Throws:
ParseException

oNames

public final void oNames()
                  throws ParseException
Throws:
ParseException

iName

public final void iName()
                 throws ParseException
Throws:
ParseException

oName

public final void oName()
                 throws ParseException
Throws:
ParseException

productLines4

public final void productLines4()
                         throws ParseException
Throws:
ParseException

productLines2

public final void productLines2()
                         throws ParseException
Throws:
ParseException

combLines

public final void combLines()
                     throws ParseException
Throws:
ParseException

states

public final void states()
                  throws ParseException
Throws:
ParseException

encodings

public final void encodings()
                     throws ParseException
Throws:
ParseException

stNames

public final void stNames()
                   throws ParseException
Throws:
ParseException

stName

public final void stName()
                  throws ParseException
Throws:
ParseException

encs

public final void encs()
                throws ParseException
Throws:
ParseException

enc

public final void enc()
               throws ParseException
Throws:
ParseException

productLine4

public final void productLine4()
                        throws ParseException
Throws:
ParseException

productLine2

public final void productLine2()
                        throws ParseException
Throws:
ParseException

combLine

public final void combLine()
                    throws ParseException
Throws:
ParseException

iTerm

public final void iTerm()
                 throws ParseException
Throws:
ParseException

stateName

public final void stateName()
                     throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(ParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public final ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.