/// <summary> /// Конструктор /// </summary> /// <param name="lex">Лексема-идентификатор</param> public LexID(LexID lex) { name = lex.name; type = lex.type; value = lex.value; html_elem = lex.html_elem; html_elem_collect = lex.html_elem_collect; }
public void addId(LexID lex) { if (isDeclare(new Lexem(lex.getType(), lex.getName()))) { throw new SystemException("повторное описание переменной " + lex.getName() + " в функции " + funcName); } tId.Add(new LexID(lex)); curId++; }
public void addId(LexID lex) { funcIdTable[curFunc].addId(lex); }