feat: temporary grammar

This commit is contained in:
Mattia Belletti
2025-03-01 12:30:36 +01:00
parent aa3baa780d
commit eed28168ad
31 changed files with 1409 additions and 479 deletions

View File

@@ -2,12 +2,15 @@
using System.Text;
using InkBlot;
using Microsoft.Extensions.Logging;
var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole());
var parser = new InkBlotParser();
parser.Parse(new PreMadeFileReader(new Dictionary<string, string>
InkBlotParser.Parse(new PreMadeFileReader(new Dictionary<string, string>
{
{ "main.ink", "Hel-\\lo!" }
}), "main.ink");
}), loggerFactory, "main.ink");
internal class PreMadeFileReader(Dictionary<string, string> filesToContents) : IFileReader