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

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