public override object VisitValue_id([NotNull] KCCParser.Value_idContext context) { if (context.@bool() != null) { return(context.@bool().GetText()); } else if (context.@string() != null) { _controller.AddDirective(Directives.Lc, context.@string().GetText()); _controller.AddDirective(Directives.Ascii, context.@string().GetText(), true); return(context.@string().GetText()); } else if (context.@char() != null) { return(context.@char().GetText()); } else if (context.integer() != null) { return(context.integer().GetText()); } else if (context.@decimal() != null) { return(context.@decimal().GetText()); } else if (context.symbol_id() != null) { return(context.symbol_id().GetText()); } return(null); }
/// <summary> /// Exit a parse tree produced by <see cref="KCCParser.value_id"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitValue_id([NotNull] KCCParser.Value_idContext context) { }