public ParserStatus(int charactersProcessed, T result)
 {
     this.state = ParserStatusState.Done;
     this.charactersProcessed = charactersProcessed;
     this.result       = result;
     this.errorMessage = "";
 }
 public ParserStatus(int charactersProcessed, string errorMessage)
 {
     this.state = ParserStatusState.Error;
     this.charactersProcessed = charactersProcessed;
     this.result       = default(T);
     this.errorMessage = errorMessage;
 }
 public ParserStatus(int charactersProcessed)
 {
     this.state = ParserStatusState.Working;
     this.charactersProcessed = charactersProcessed;
     this.result       = default(T);
     this.errorMessage = "";
 }