feat: temporary grammar
This commit is contained in:
@@ -11,4 +11,8 @@
|
||||
<ProjectReference Include="..\InkBlot\InkBlot.csproj"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.2"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user