summaryrefslogtreecommitdiff
path: root/Compiler/gen/CGrammarVisitor.cs
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-09 00:16:57 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-09 00:16:57 +1000
commitd36d51429d604f0ab3b2076c4c05e28ebf9b52c5 (patch)
tree9a3755684359aa041bf391f4ef5d3f30837a2271 /Compiler/gen/CGrammarVisitor.cs
parente62b66dd08ca445d1f7e5b802a503ad3ec83b2df (diff)
updated block syntax and removed body grammar, fixed issue with if requiring an else branch
Diffstat (limited to 'Compiler/gen/CGrammarVisitor.cs')
-rw-r--r--Compiler/gen/CGrammarVisitor.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/Compiler/gen/CGrammarVisitor.cs b/Compiler/gen/CGrammarVisitor.cs
index 50cb551..e0689f0 100644
--- a/Compiler/gen/CGrammarVisitor.cs
+++ b/Compiler/gen/CGrammarVisitor.cs
@@ -44,12 +44,6 @@ public interface ICGrammarVisitor<Result> : IParseTreeVisitor<Result> {
/// <return>The visitor result.</return>
Result VisitFunction([NotNull] CGrammarParser.FunctionContext context);
/// <summary>
- /// Visit a parse tree produced by <see cref="CGrammarParser.body"/>.
- /// </summary>
- /// <param name="context">The parse tree.</param>
- /// <return>The visitor result.</return>
- Result VisitBody([NotNull] CGrammarParser.BodyContext context);
- /// <summary>
/// Visit a parse tree produced by <see cref="CGrammarParser.block"/>.
/// </summary>
/// <param name="context">The parse tree.</param>
@@ -83,6 +77,13 @@ public interface ICGrammarVisitor<Result> : IParseTreeVisitor<Result> {
/// <return>The visitor result.</return>
Result VisitExpressionStatement([NotNull] CGrammarParser.ExpressionStatementContext context);
/// <summary>
+ /// Visit a parse tree produced by the <c>blockStatement</c>
+ /// labeled alternative in <see cref="CGrammarParser.statement"/>.
+ /// </summary>
+ /// <param name="context">The parse tree.</param>
+ /// <return>The visitor result.</return>
+ Result VisitBlockStatement([NotNull] CGrammarParser.BlockStatementContext context);
+ /// <summary>
/// Visit a parse tree produced by the <c>variableDeclaration</c>
/// labeled alternative in <see cref="CGrammarParser.declaration"/>.
/// </summary>