defer and struct hooks

This commit is contained in:
nub31
2025-09-19 23:08:12 +02:00
parent 609e1b5d85
commit ca838e32b8
15 changed files with 240 additions and 97 deletions

View File

@@ -23,6 +23,7 @@ public sealed class Tokenizer
["module"] = Symbol.Module,
["export"] = Symbol.Export,
["import"] = Symbol.Import,
["defer"] = Symbol.Defer,
};
private static readonly Dictionary<char[], Symbol> Symbols = new()
@@ -58,6 +59,7 @@ public sealed class Tokenizer
[[';']] = Symbol.Semi,
[['%']] = Symbol.Percent,
[['|']] = Symbol.Pipe,
[['@']] = Symbol.At,
};
private static readonly (char[] Pattern, Symbol Symbol)[] OrderedSymbols = Symbols