Пример #1
0
        string add_new_uniq_lexId(Type_of_lex type, HtmlElement elem, List <HtmlElement> collect)
        {
            string name = "/hlp_html_var";

            while (tableId.getNumOfLex(name) != -1)
            {
                name += "/";
            }
            tableId.addId(new LexID(new Lexem(type, name), elem, collect));
            return(name);
        }
Пример #2
0
        public void variable_list_item()
        {
            if (curLex.get_type() != Type_of_lex.LEX_id)
            {
                throw new SystemException(curLex.ToString());
            }
            //тут id
            tableId.addId(curLex);
            curLex.put_type(Type_of_lex._undefined);
            Lexem hlp = curLex;

            getLex();
            if (curLex.get_type() == Type_of_lex.LEX_assign)
            {
                push(hlp);
                push(curLex);
                getLex();
                tableId.poliz_put_lex(new Lexem(Type_of_lex.POLIZ_ADDR, tableId.getNumOfLex(hlp).ToString()));
                rvalue();
                check_assign(hlp);
            }
            else
            {
                return;
            }
        }