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

18
InkBlot/Helpers.cs Normal file
View File

@@ -0,0 +1,18 @@
using System.Diagnostics;
namespace InkBlot;
public static class Helpers
{
public static T AsNotNull<T>(this T? value) where T : struct
{
Debug.Assert(value.HasValue);
return value.Value;
}
public static T AsNotNull<T>(this T? value) where T : class
{
Debug.Assert(value != null);
return value;
}
}