Пример #1
0
        public bool AddNaTabela(string lex, string tip, bool con, int esc)
        {
            TokenSemantico aux = new TokenSemantico(lex, tip, con, esc);

            if (!tkSem.Contains(aux))
            {
                tkSem.Add(aux);
                return(true);
            }
            return(false);
        }
Пример #2
0
            public override bool Equals(object obj)
            {
                TokenSemantico aux = (TokenSemantico)obj;

                if (this.Lexograma == aux.Lexograma)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }