Пример #1
0
        void net_alias()
        {
            require_token(m_tok_paren_left);
            string alias = get_identifier_or_number();

            require_token(m_tok_comma);

            string out_ = get_identifier();

            require_token(m_tok_paren_right);

            m_setup.log().debug.op("Parser: Alias: {0} {1}\n", alias, out_);
            m_setup.register_alias(alias, out_);
        }
Пример #2
0
 //#define ALIAS(alias, name)                                                        \
 //    setup.register_alias(# alias, # name);
 public static void ALIAS(nlparse_t setup, string alias, string name)
 {
     setup.register_alias(alias, name);
 }