public override string VisitPropInstruccion([NotNull] SicAsmParser.PropInstruccionContext context) { string result = Visit(context.inst()); if (result == null) { result = "Error: Error de sintaxis, instruccion no válida"; } return(result); }
/// <summary> /// Exit a parse tree produced by the <c>PropInstruccion</c> /// labeled alternative in <see cref="SicAsmParser.prop"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitPropInstruccion([NotNull] SicAsmParser.PropInstruccionContext context) { }
/// <summary> /// Visit a parse tree produced by the <c>PropInstruccion</c> /// labeled alternative in <see cref="SicAsmParser.prop"/>. /// <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 VisitPropInstruccion([NotNull] SicAsmParser.PropInstruccionContext context) { return(VisitChildren(context)); }