public TeXParser(boolean isPartial,String parseString,TeXFormula formula,boolean firstpass){
  this.formula=formula;
  this.isPartial=isPartial;
  if (parseString != null) {
    this.parseString=new StringBuffer(parseString);
    this.len=parseString.length();
    this.pos=0;
    if (firstpass) {
      firstpass();
    }
  }
 else {
    this.parseString=null;
    this.pos=0;
    this.len=0;
  }
}

public TeXParser ( boolean isPartial , String parseString , TeXFormula formula , boolean firstpass ) { this . formula = formula ; this . isPartial = isPartial ; if ( parseString != null ) { this . parseString = new StringBuffer ( parseString ) ; this . len = parseString . length ( ) ; this . pos = 0 ; if ( firstpass ) { firstpass ( ) ; } } else { this . parseString = null ; this . pos = 0 ; this . len = 0 ; } }
create a new texparser with or without a first pass
