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); }
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); } }
public override bool Equals(object obj) { return(Lexema.GetType() == obj.GetType() && Lexema.ToString().Equals(obj.ToString())); }
public override string ToString() { return(Lexema.ToString() + " [" + GetTagDescription() + "] Linha " + Linha); }