|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.synth.graph.parser.GraphBuilder
Field Summary | |
protected Graph |
g
|
static java.lang.String |
NAME_KEY
|
Constructor Summary | |
GraphBuilder(Graph gr)
|
Method Summary | |
protected void |
addEdges(java.util.Vector sourceNodes,
java.util.Vector destNodes)
|
protected void |
addError(NodeToken err_token,
java.lang.String err_string)
|
protected void |
addError(java.lang.String err_string)
|
static Graph |
buildGraph(java.io.InputStream istream)
|
static Graph |
buildGraph(java.io.InputStream istream,
Graph gr)
|
java.lang.String |
errorString()
|
Graph |
getGraph()
|
boolean |
hasErrors()
|
protected java.lang.String |
IdentifierName(Identifier id)
|
int |
numErrors()
|
protected void |
parse(java.io.InputStream istream)
|
void |
setDebug(boolean d)
|
void |
visit(attrAssignment n)
f0 -> Identifier() f1 -> "=" f2 -> Identifier() |
void |
visit(attrDefs n)
f0 -> attrItem() f1 -> ( [ ";" | "," ] attrItem() )* |
void |
visit(attrItem n)
f0 -> attrAssignment() | attrMacro() |
void |
visit(attrList n)
f0 -> "[" f1 -> [ attrDefs() ] f2 -> "]" f3 -> ( "[" [ attrDefs() ] "]" )* |
void |
visit(attrMacro n)
f0 -> "@" f1 -> Identifier() |
void |
visit(attrStmt n)
f0 -> attrType() [ Identifier() "=" ] attrList() | attrAssignment() |
void |
visit(attrType n)
f0 -> "graph" | "node" | "edge" |
void |
visit(Body n)
f0 -> "{" f1 -> [ StatementList() ] f2 -> "}" |
void |
visit(compound n)
f0 -> simple() f1 -> [ rCompound() ] f2 -> [ attrList() ] |
void |
visit(dotfile n)
f0 -> Header() f1 -> Body() f2 -> |
void |
visit(edgeOp n)
f0 -> "->" | "--" |
void |
visit(Header n)
f0 -> [ "strict" ] f1 -> ( "graph" | "digraph" ) f2 -> Identifier() |
void |
visit(Identifier n)
f0 -> |
void |
visit(node_List n)
f0 -> nodeAtom() f1 -> [ "," node_List() ] |
void |
visit(nodeAtom n)
f0 -> Identifier() f1 -> [ ":" Identifier() ] |
void |
visit(NodeList n)
|
void |
visit(NodeListOptional n)
|
void |
visit(NodeOptional n)
|
void |
visit(NodeSequence n)
|
void |
visit(NodeToken n)
|
void |
visit(rCompound n)
f0 -> edgeOp() f1 -> simple() f2 -> ( edgeOp() simple() )* |
void |
visit(simple n)
f0 -> node_List() | subgraph() |
void |
visit(Statement n)
f0 -> attrStmt() [ ";" ] | compound() [ ";" ] |
void |
visit(StatementList n)
f0 -> Statement() f1 -> [ StatementList() ] |
void |
visit(SubgHdr n)
f0 -> "subgraph" Identifier() | "subgraph" |
void |
visit(subgraph n)
f0 -> [ SubgHdr() ] f1 -> Body() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Graph g
public static final java.lang.String NAME_KEY
Constructor Detail |
public GraphBuilder(Graph gr)
Method Detail |
public static Graph buildGraph(java.io.InputStream istream) throws ParseException
ParseException
public static Graph buildGraph(java.io.InputStream istream, Graph gr) throws ParseException
ParseException
protected void parse(java.io.InputStream istream) throws ParseException
ParseException
public void visit(NodeList n)
visit
in interface Visitor
public void visit(NodeListOptional n)
visit
in interface Visitor
public void visit(NodeOptional n)
visit
in interface Visitor
public void visit(NodeSequence n)
visit
in interface Visitor
public void visit(NodeToken n)
visit
in interface Visitor
public void visit(dotfile n)
visit
in interface Visitor
public void visit(Header n)
visit
in interface Visitor
public void visit(Body n)
visit
in interface Visitor
public void visit(StatementList n)
visit
in interface Visitor
public void visit(Statement n)
visit
in interface Visitor
public void visit(compound n)
visit
in interface Visitor
public void visit(simple n)
visit
in interface Visitor
public void visit(edgeOp n)
visit
in interface Visitor
public void visit(rCompound n)
visit
in interface Visitor
public void visit(node_List n)
visit
in interface Visitor
public void visit(nodeAtom n)
visit
in interface Visitor
public void visit(attrStmt n)
visit
in interface Visitor
public void visit(attrType n)
visit
in interface Visitor
public void visit(attrList n)
visit
in interface Visitor
public void visit(attrDefs n)
visit
in interface Visitor
public void visit(attrItem n)
visit
in interface Visitor
public void visit(attrAssignment n)
visit
in interface Visitor
public void visit(attrMacro n)
visit
in interface Visitor
public void visit(subgraph n)
visit
in interface Visitor
public void visit(SubgHdr n)
visit
in interface Visitor
public void visit(Identifier n)
visit
in interface Visitor
public boolean hasErrors()
public int numErrors()
public java.lang.String errorString()
public Graph getGraph()
protected void addEdges(java.util.Vector sourceNodes, java.util.Vector destNodes)
protected void addError(NodeToken err_token, java.lang.String err_string)
protected void addError(java.lang.String err_string)
protected java.lang.String IdentifierName(Identifier id)
public void setDebug(boolean d)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |