diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-12 07:41:29 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-12 07:41:29 +1000 |
| commit | 94ddc02e03ab942d0c881e29053e8df3d2940c30 (patch) | |
| tree | 4cd91b46b70a29ffd8a8247d68afd97d0852a0ce /Compiler/gen/CGrammarBaseVisitor.cs | |
| parent | 252ad79d05e3805f7a8c990e19dccb373a2c5231 (diff) | |
WIP: added type specification, indexes and hex numerics
Diffstat (limited to 'Compiler/gen/CGrammarBaseVisitor.cs')
| -rw-r--r-- | Compiler/gen/CGrammarBaseVisitor.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Compiler/gen/CGrammarBaseVisitor.cs b/Compiler/gen/CGrammarBaseVisitor.cs index 9775583..857e6ff 100644 --- a/Compiler/gen/CGrammarBaseVisitor.cs +++ b/Compiler/gen/CGrammarBaseVisitor.cs @@ -417,6 +417,17 @@ public partial class CGrammarBaseVisitor<Result> : AbstractParseTreeVisitor<Resu /// <return>The visitor result.</return> public virtual Result VisitLogicalAndExpression([NotNull] CGrammarParser.LogicalAndExpressionContext context) { return VisitChildren(context); } /// <summary> + /// Visit a parse tree produced by the <c>indexExpression</c> + /// labeled alternative in <see cref="CGrammarParser.expression"/>. + /// <para> + /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> + /// on <paramref name="context"/>. + /// </para> + /// </summary> + /// <param name="context">The parse tree.</param> + /// <return>The visitor result.</return> + public virtual Result VisitIndexExpression([NotNull] CGrammarParser.IndexExpressionContext context) { return VisitChildren(context); } + /// <summary> /// Visit a parse tree produced by the <c>invertExpression</c> /// labeled alternative in <see cref="CGrammarParser.expression"/>. /// <para> @@ -692,6 +703,27 @@ public partial class CGrammarBaseVisitor<Result> : AbstractParseTreeVisitor<Resu /// <return>The visitor result.</return> public virtual Result VisitIntConstant([NotNull] CGrammarParser.IntConstantContext context) { return VisitChildren(context); } /// <summary> + /// Visit a parse tree produced by the <c>hexConstant</c> + /// labeled alternative in <see cref="CGrammarParser.constant"/>. + /// <para> + /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> + /// on <paramref name="context"/>. + /// </para> + /// </summary> + /// <param name="context">The parse tree.</param> + /// <return>The visitor result.</return> + public virtual Result VisitHexConstant([NotNull] CGrammarParser.HexConstantContext context) { return VisitChildren(context); } + /// <summary> + /// Visit a parse tree produced by <see cref="CGrammarParser.type"/>. + /// <para> + /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> + /// on <paramref name="context"/>. + /// </para> + /// </summary> + /// <param name="context">The parse tree.</param> + /// <return>The visitor result.</return> + public virtual Result VisitType([NotNull] CGrammarParser.TypeContext context) { return VisitChildren(context); } + /// <summary> /// Visit a parse tree produced by the <c>variableTarget</c> /// labeled alternative in <see cref="CGrammarParser.target"/>. /// <para> |
