edu.ksu.cis.bnj.bbn.converter.libb
Class LibBParser

java.lang.Object
  extended byedu.ksu.cis.bnj.bbn.converter.libb.LibBParser
All Implemented Interfaces:
Converter, LibBParserConstants, LibBParserTreeConstants

public class LibBParser
extends java.lang.Object
implements LibBParserTreeConstants, Converter, LibBParserConstants


Field Summary
protected  BBNGraph graph
           
 Token jj_nt
           
protected  edu.ksu.cis.bnj.bbn.converter.libb.JJTLibBParserState jjtree
           
protected static java.lang.String ln
           
 boolean lookingAhead
           
 Token token
           
 LibBParserTokenManager token_source
           
 
Fields inherited from interface edu.ksu.cis.bnj.bbn.converter.libb.LibBParserTreeConstants
jjtNodeName, JJTVOID
 
Fields inherited from interface edu.ksu.cis.bnj.bbn.converter.libb.LibBParserConstants
ANDASSIGN, ASG_OPR, ASSIGN, BANG, BIT_AND, BIT_OR, BIT_XOR, COLON, COMMA, DECIMAL_LITERAL, DECR, DEFAULT, DIGIT, DOT, EOF, EQ, EXPONENT, FLOATING_POINT_LITERAL, GE, GT, HEX_LITERAL, HOOK, IDENTIFIER, IN_SINGLE_LINE_COMMENT, INCR, INTEGER_LITERAL, LBRACE, LBRACKET, LE, LETTER, LPAREN, LSHIFT, LSHIFTASSIGN, LT, MINUS, MINUSASSIGN, NE, NETWORK, OCTAL_LITERAL, ORASSIGN, PARENTS, PLUS, PLUSASSIGN, PROBABILITY, RBRACE, RBRACKET, REMASSIGN, RPAREN, RSIGNEDSHIFT, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFT, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SC_XOR, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STRING_LITERAL, TILDE, tokenImage, TOWARD, VAR, XORASSIGN
 
Constructor Summary
LibBParser()
           
LibBParser(java.io.InputStream stream)
           
LibBParser(LibBParserTokenManager tm)
           
LibBParser(java.io.Reader stream)
           
 
Method Summary
 BBNGraph CompilationUnit()
          THE LibB NET LANGUAGE GRAMMAR STARTS HERE *
 java.util.LinkedList CPTEntries()
           
 void disable_tracing()
           
 void Edges()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
static void help()
           
 void initialize()
           
 BBNGraph load(java.io.InputStream r)
           
static void main(java.lang.String[] args)
           
 void Nodes()
           
 java.lang.Double NumberLiteral()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(LibBParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
protected  void resetCache()
          This is to reset cache.
 void save(java.io.OutputStream os, BBNGraph graph)
           
protected  java.lang.String saveCPT(java.util.LinkedList parents, BBNNode curNode, java.util.Hashtable curInst, java.util.LinkedList parentVals, java.lang.StringBuffer buffer)
           
 java.util.List StringList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected edu.ksu.cis.bnj.bbn.converter.libb.JJTLibBParserState jjtree

graph

protected BBNGraph graph

ln

protected static java.lang.String ln

token_source

public LibBParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

LibBParser

public LibBParser()

LibBParser

public LibBParser(java.io.InputStream stream)

LibBParser

public LibBParser(java.io.Reader stream)

LibBParser

public LibBParser(LibBParserTokenManager tm)
Method Detail

load

public BBNGraph load(java.io.InputStream r)
              throws ParseException
Specified by:
load in interface Converter
Throws:
ParseException

save

public void save(java.io.OutputStream os,
                 BBNGraph graph)
Specified by:
save in interface Converter

saveCPT

protected java.lang.String saveCPT(java.util.LinkedList parents,
                                   BBNNode curNode,
                                   java.util.Hashtable curInst,
                                   java.util.LinkedList parentVals,
                                   java.lang.StringBuffer buffer)

initialize

public void initialize()
Specified by:
initialize in interface Converter

resetCache

protected void resetCache()
This is to reset cache. Not used here.


help

public static void help()

main

public static void main(java.lang.String[] args)

CompilationUnit

public final BBNGraph CompilationUnit()
                               throws ParseException
THE LibB NET LANGUAGE GRAMMAR STARTS HERE *

Throws:
ParseException

Nodes

public final void Nodes()
                 throws ParseException
Throws:
ParseException

Edges

public final void Edges()
                 throws ParseException
Throws:
ParseException

StringList

public final java.util.List StringList()
                                throws ParseException
Throws:
ParseException

CPTEntries

public final java.util.LinkedList CPTEntries()
                                      throws ParseException
Throws:
ParseException

NumberLiteral

public final java.lang.Double NumberLiteral()
                                     throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)

ReInit

public void ReInit(java.io.Reader stream)

ReInit

public void ReInit(LibBParserTokenManager 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()