if(tk.sval.equalsIgnoreCase("graph") || tk.sval.equalsIgnoreCase("node") || tk.sval.equalsIgnoreCase("edge") ) ; else { try { nodeID(tk); int nodeindex= m_nodes.indexOf(new GraphNode(tk.sval, null)); tk.nextToken();  if(tk.ttype == '[') nodeStmt(tk, nodeindex); else if(tk.ttype == '-') edgeStmt(tk, nodeindex); else System.err.println("error at lineno "+tk.lineno()+" in stmt"); } catch(Exception ex) {  System.err.println("error at lineno "+tk.lineno()+" in stmtException"); ex.printStackTrace(); } }
if(tk.sval.equalsIgnoreCase("graph") || tk.sval.equalsIgnoreCase("node") || tk.sval.equalsIgnoreCase("edge") ) ; else { try { nodeID(tk); int nodeindex= m_nodes.indexOf(new GraphNode(tk.sval, null)); tk.nextToken();  if(tk.ttype == '[') nodeStmt(tk, nodeindex); else if(tk.ttype == '-') edgeStmt(tk, nodeindex); else System.err.println("error at lineno "+tk.lineno()+" in stmt"); } catch(Exception ex) { System.err.println("error at lineno "+tk.lineno()+" in stmtException"); ex.printStackTrace(); }
    protected void stmt(StreamTokenizer tk) {	//tk.nextToken();	if(tk.sval.equalsIgnoreCase("graph") || tk.sval.equalsIgnoreCase("node") || tk.sval.equalsIgnoreCase("edge") )	    ; //attribStmt(k);	else {	    try {		nodeID(tk);		int nodeindex= m_nodes.indexOf(new GraphNode(tk.sval, null));		tk.nextToken();				if(tk.ttype == '[')		    nodeStmt(tk, nodeindex);		else if(tk.ttype == '-')		    edgeStmt(tk, nodeindex);		else		    System.err.println("error at lineno "+tk.lineno()+" in stmt");	    }	    catch(Exception ex) {  System.err.println("error at lineno "+tk.lineno()+" in stmtException"); ex.printStackTrace();	    }	}    }