diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-09 09:45:22 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-09 09:45:22 +1000 |
| commit | 7f334796e8d0619dc744b1345a7b7b73a27220f9 (patch) | |
| tree | 709c9a7df920d8eb1e779df4f878a25596303f17 /Compiler/Context.cs | |
| parent | d36d51429d604f0ab3b2076c4c05e28ebf9b52c5 (diff) | |
added method calling and for loops
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 |
