diff --git a/source/tlang/compiler/parsing/core.d b/source/tlang/compiler/parsing/core.d index 2d8006ad..77370e1d 100644 --- a/source/tlang/compiler/parsing/core.d +++ b/source/tlang/compiler/parsing/core.d @@ -19,6 +19,7 @@ import tlang.compiler.parsing.exceptions; bool isUnitTest; +// TODO: Technically we could make a core parser etc public final class Parser { /** @@ -103,6 +104,11 @@ public final class Parser tokenPtr--; } + private void setCursor(ulong newPosition) + { + tokenPtr = newPosition; + } + /** * Parses if statements *