diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-08 23:57:26 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-08 23:57:26 +1000 |
| commit | e62b66dd08ca445d1f7e5b802a503ad3ec83b2df (patch) | |
| tree | 8cdb4ee09d1eefe096f51d6c9150dc361d08ccb9 /Compiler/CompilerExtensions.cs | |
| parent | 33e1c5fc6e37549b4eba833ae7e534f9da250b10 (diff) | |
added branching to compiler and comment generation
Diffstat (limited to 'Compiler/CompilerExtensions.cs')
| -rw-r--r-- | Compiler/CompilerExtensions.cs | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
