diff options
Diffstat (limited to 'Compiler/Context.cs')
| -rw-r--r-- | Compiler/Context.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Compiler/Context.cs b/Compiler/Context.cs new file mode 100644 index 0000000..52e577f --- /dev/null +++ b/Compiler/Context.cs @@ -0,0 +1,23 @@ +namespace Q1.Compiler; + +using Antlr4.Runtime; + +public class Context : ParserRuleContext +{ + public string? LoopEndBranch; + public string? LoopBodyBranch; + + public Context() { } + + public Context(ParserRuleContext parent, int invokingStateNumber) + : base((Context) parent, invokingStateNumber) + { + } + + + public void SyncProps(Context childCtx) + { + childCtx.LoopBodyBranch = this.LoopBodyBranch; + childCtx.LoopEndBranch = this.LoopEndBranch; + } +}
\ No newline at end of file |
