import Analysis.TaskStateAnalysis.*;
public class State {
+
+ public int lines;
public State() {
this.classes=new SymbolTable();
this.tasks=new SymbolTable();
this.selfloops=new HashSet();
this.excprefetch=new HashSet();
this.classpath=new Vector();
+ this.lines=0;
}
public void addParseNode(ParseNode parsetree) {
boolean isJava15;
String line = null;
int line_pos = 1;
- int line_num = 0;
+ public int line_num = 0;
LineList lineL = new LineList(-line_pos, null); // sentinel for line #0
public Lexer(Reader reader) {
state.OWNERSHIPALIASFILE);
}
+
+ System.out.println("Lines="+state.lines);
System.exit(0);
}
System.out.println("Error parsing "+sourcefile);
System.exit(l.numErrors());
}
+ state.lines+=l.line_num;
return p;
} catch (Exception e) {