edu.ksu.cis.bnj.bbn.converter.libb
Class LibBParser
java.lang.Object
edu.ksu.cis.bnj.bbn.converter.libb.LibBParser
- All Implemented Interfaces:
- Converter, LibBParserConstants, LibBParserTreeConstants
- public class LibBParser
- extends java.lang.Object
- implements LibBParserTreeConstants, Converter, LibBParserConstants
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
LibBParser
public LibBParser()
LibBParser
public LibBParser(java.io.InputStream stream)
LibBParser
public LibBParser(java.io.Reader stream)
LibBParser
public LibBParser(LibBParserTokenManager tm)
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()