public override object VisitDirByteHex([NotNull] StdAssemblerParser.DirByteHexContext context)
        {
            string   value;
            StdToken token;

            if (context.children.Count != 5)
            {
                throw new Exception("Error de sintáxis: Instrucción no válida");
            }
            else
            {
                value = context.VAL().GetText();
                if (!Regex.IsMatch(value, @"^[0-9A-F]+$"))
                {
                    throw new Exception("Error de sintáxis: ingrese un valor hexadecimal");
                }
                token = new StdToken()
                {
                    Address       = count,
                    IsDirective   = true,
                    IsHex         = true,
                    Mode          = false,
                    OperationCode = "BYTE",
                    Value         = value
                };
                count += int.Parse(Math.Ceiling((double)value.Length / 2).ToString());
                return(token);
            }
        }
 /// <summary>
 /// Exit a parse tree produced by the <c>DirByteHex</c>
 /// labeled alternative in <see cref="StdAssemblerParser.directiva"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitDirByteHex([NotNull] StdAssemblerParser.DirByteHexContext context)
 {
 }
 /// <summary>
 /// Visit a parse tree produced by the <c>DirByteHex</c>
 /// labeled alternative in <see cref="StdAssemblerParser.directiva"/>.
 /// <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 VisitDirByteHex([NotNull] StdAssemblerParser.DirByteHexContext context)
 {
     return(VisitChildren(context));
 }