summaryrefslogtreecommitdiff
path: root/Compiler/PreprocessingCharStream.cs
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2026-03-17 20:49:22 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2026-03-17 20:49:22 +1000
commit18868128e18d38b706e7df14e8e683e1a9739c17 (patch)
tree6f0e0e5eee646f10cbad9c0c89c24d330bc58cc6 /Compiler/PreprocessingCharStream.cs
parentd87ab8af4c86a3fc6ee237444e372d87e536e3ef (diff)
chore: Initial commit
Diffstat (limited to 'Compiler/PreprocessingCharStream.cs')
-rw-r--r--Compiler/PreprocessingCharStream.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/Compiler/PreprocessingCharStream.cs b/Compiler/PreprocessingCharStream.cs
deleted file mode 100644
index 428cbff..0000000
--- a/Compiler/PreprocessingCharStream.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-namespace Q1.Compiler;
-
-using Antlr4.Runtime;
-using Antlr4.Runtime.Misc;
-
-public class PreprocessingCharStream : ICharStream
-{
- private readonly AntlrInputStream inner;
-
- public PreprocessingCharStream(string filePath)
- {
- string preprocessed = Preprocessor.Process(filePath);
- this.inner = new AntlrInputStream(preprocessed);
- }
-
- public int Index => this.inner.Index;
- public int Size => this.inner.Size;
- public string SourceName => this.inner.SourceName;
- public void Consume() => this.inner.Consume();
- public int LA(int i) => this.inner.LA(i);
- public int Mark() => this.inner.Mark();
- public void Release(int marker) => this.inner.Release(marker);
- public void Seek(int index) => this.inner.Seek(index);
- public string GetText(Interval interval) => this.inner.GetText(interval);
-} \ No newline at end of file