public void visit(BnfVisitor visitor,String s){
  this.syntax=s;
  tokens=tokenize();
  index=0;
  Rule rule=parseRule();
  rule.setLinks(ruleMap);
  rule.accept(visitor);
}

public void visit ( BnfVisitor visitor , String s ) { this . syntax = s ; tokens = tokenize ( ) ; index = 0 ; Rule rule = parseRule ( ) ; rule . setLinks ( ruleMap ) ; rule . accept ( visitor ) ; }
parse the syntax and let the rule call the visitor .
