public static Parser FromString(string text) { var scanner = new Scanner(text); return(new Parser(scanner)); }
public Parser(ILogger logger, string filePath) : this(logger, Scanner.FromFile(filePath)) { }
public Parser(string filePath) : this(Scanner.FromFile(filePath)) { }
public Parser(Scanner scanner) : this(new ConsoleLogger(scanner.FilePath), scanner) { }