/// <summary> /// Creates InputParser that uses the specified InputLinesParser, PlateauParser, RoverParser and RoverCommandSetParser /// </summary> /// <param name="inputLinesParser">InputLinesParser to be used</param> /// <param name="plateauParser">PlateauParser to be used</param> /// <param name="roverParser">RoverParser to be used</param> /// <param name="roverCommandSetParser">RoverCommandSetParser to be used</param> public InputParser(InputLinesParser inputLinesParser, PlateauParser plateauParser, RoverParser roverParser, CommandSetParser roverCommandSetParser) { this.inputLinesParser = inputLinesParser; this.plateauParser = plateauParser; this.roverParser = roverParser; this.roverCommandSetParser = roverCommandSetParser; }
/// <summary> /// Creates InputParser that uses the default InputLinesParser, PlateauParser, RoverParser and RoverCommandSetParser /// </summary> public InputParser() { inputLinesParser = new InputLinesParser(); plateauParser = new PlateauParser(); roverParser = new RoverParser(); roverCommandSetParser = new CommandSetParser(); }
public void Initialize() { inputLinesParser = new InputLinesParser(); }