From e62b66dd08ca445d1f7e5b802a503ad3ec83b2df Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Fri, 8 Aug 2025 23:57:26 +1000 Subject: added branching to compiler and comment generation --- Compiler/CompilerExtensions.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Compiler/CompilerExtensions.cs (limited to 'Compiler/CompilerExtensions.cs') diff --git a/Compiler/CompilerExtensions.cs b/Compiler/CompilerExtensions.cs new file mode 100644 index 0000000..f1f0ee6 --- /dev/null +++ b/Compiler/CompilerExtensions.cs @@ -0,0 +1,12 @@ +namespace Q1.Compiler; + +public static class CompilerExtensions +{ + public static string TrimStart(this string source, string search) + { + if (source.StartsWith(search)) + return source[search.Length..]; + + return source; + } +} \ No newline at end of file -- cgit v1.3.1