예제 #1
0
        public static Parser FromString(string text)
        {
            var scanner = new Scanner(text);

            return(new Parser(scanner));
        }
예제 #2
0
 public Parser(ILogger logger, string filePath)
     : this(logger, Scanner.FromFile(filePath))
 {
 }
예제 #3
0
 public Parser(string filePath)
     : this(Scanner.FromFile(filePath))
 {
 }
예제 #4
0
 public Parser(Scanner scanner)
     : this(new ConsoleLogger(scanner.FilePath), scanner)
 {
 }