Exemple #1
0
        public override string ToString()
        {
            string l = Lexema.Replace("\n", "salto");

            l = (Lexema == " ") ? "blanco" : Lexema.ToString();
            string v = Numero + "\t" + l + "\t" + Sinonimo + "\t" + Nombre;

            return(v);
        }
Exemple #2
0
        public bool ChechInden(string line, string consanents, string numbers)
        {
            string consts = "+*=)";
            bool   check  = false;

            Inden = "";
            while (true)
            {
                if (consanents.Contains(Lexema))
                {
                    check  = true;
                    Inden += Lexema.ToString();
                }
                else if (check)
                {
                    while (numbers.Contains(Lexema))
                    {
                        Inden += Lexema.ToString();
                        if (Pos == line.Length)
                        {
                            Bail = 1;
                            return(true);
                        }
                        GetToken(line);
                    }
                    if (consts.Contains(Lexema) || Pos > line.Length)
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }
                }
                else
                {
                    return(false);
                }
                GetToken(line);
            }
        }
Exemple #3
0
 public override bool Equals(object obj)
 {
     return(Lexema.GetType() == obj.GetType() && Lexema.ToString().Equals(obj.ToString()));
 }
Exemple #4
0
 public override string ToString()
 {
     return(Lexema.ToString() + " [" + GetTagDescription() + "] Linha " + Linha);
 }