/// <summary> /// Interprete l'expression d'une cellule /// </summary> /// <param name="context">la partie droite de la regle de la grammaire</param> /// <returns>Le resultat de l'expression de la cellule cible</returns> public override Term VisitRead([NotNull] TableurParser.ReadContext context) { String adr = context.ADR().GetText(); String[] cur = adr.Split('@'); CellCoord target = new CellCoord(ulong.Parse(cur[0]), ulong.Parse(cur[1])); String msg = this.kern.Read(target); return(new Texte(msg)); }
/// <summary> /// Visit a parse tree produced by the <c>Read</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 VisitRead([NotNull] TableurParser.ReadContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by the <c>Read</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 ExitRead([NotNull] TableurParser.ReadContext context) { }