public override void EnterPrintstmt([NotNull] ProfaneParser.PrintstmtContext context) { var resolvedExp = context.expr() == null ? string.Empty : this.ResolveExpression(context.expr()); this.Output += $"System.Console.WriteLine({resolvedExp});\n"; }
/// <summary> /// Exit a parse tree produced by <see cref="ProfaneParser.printstmt"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitPrintstmt([NotNull] ProfaneParser.PrintstmtContext context) { }