/* Manejo de errores para instrucciones y directivas */ public override string VisitInstruccionInvalida1([NotNull] SicAsmParser.InstruccionInvalida1Context context) { /* Si es la primera pasada */ if (_is_first_pass) { _lines_pc.Add(_line_count + 1, _program_counter); } else /* Si es la segunda pasada */ { _lines_opcode.Add(_line_count + 1, "------"); } return("Error: Error de sintaxis, instruccion no válida"); }
/// <summary> /// Exit a parse tree produced by the <c>InstruccionInvalida1</c> /// labeled alternative in <see cref="SicAsmParser.inst"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitInstruccionInvalida1([NotNull] SicAsmParser.InstruccionInvalida1Context context) { }
/// <summary> /// Visit a parse tree produced by the <c>InstruccionInvalida1</c> /// labeled alternative in <see cref="SicAsmParser.inst"/>. /// <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 VisitInstruccionInvalida1([NotNull] SicAsmParser.InstruccionInvalida1Context context) { return(VisitChildren(context)); }