/// <summary> /// Supprime une celllule du tableur /// </summary> /// <param name="context">la partie droite de la regle de la grammaire</param> /// <returns>Un message de confirmation</returns> public override Term VisitDelete([NotNull] TableurParser.DeleteContext context) { String adr = context.ADR().GetText(); String[] cur = adr.Split('@'); CellCoord target = new CellCoord(ulong.Parse(cur[0]), ulong.Parse(cur[1])); this.kern.DeleteContent(target); return(new Texte("Delete Success")); }
/// <summary> /// Visit a parse tree produced by the <c>Delete</c> /// labeled alternative in <see cref="TableurParser.instr"/>. /// <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 VisitDelete([NotNull] TableurParser.DeleteContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by the <c>Delete</c> /// labeled alternative in <see cref="TableurParser.instr"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitDelete([NotNull] TableurParser.DeleteContext context) { }