htpl

 view release on metacpan or  search on metacpan

htpl-parse.c  view on Meta::CPAN

    }
    if (numtokens >= 6)  {
        printfcode(" $g->set('legend' => [split(/:/, \"%s\")]);\n", gettokenlist(6, " ", "", ""));
    }
    printcode("	print $g->ashtml;\n");
    printcode("}\n");
    nesting = 0;
    RETURN(1)
}

int parse_htpl_combobox(stack, untag)
    int untag;
    STR stack; {

    TOKEN token;
    static done = 0;
    STR buff;
    int code;
    static int nesting = 0;
    static int refcount = 0;

htpl-parse.c  view on Meta::CPAN

            "SWITCH",
            "TEXT",
            "THROW",
            "TIME",
            "TRY"};
        static int htpl_locations[] = { 17, 18, 30, 39, 46, 56, 63, -1, 12, 21, 37, 61, -1, 25, 43, 59, 62, 65, -1, 9, 27, 33, 54, 57, -1, 1, 2, 7, 41, 44, 48, 52, -1, 13, 19, 22, 23, 26, 42, 49, 64, -1, 11, 31, 38, 47, 50, 58, -1, 3, 8, 14, 24, 29, ...
        static int htpl_shortcuts[] = { 0, 8, 13, 19, 25, 33, 42, 49, 60, 68 };
        static struct hash_t htpl_hash = {htpl_table,
             htpl_locations, htpl_shortcuts};

        static parser funs[] = { parse_htpl_assert, parse_htpl_auth, parse_htpl_auth_create, parse_htpl_break, parse_htpl_call, parse_htpl_case, parse_htpl_catch, parse_htpl_class, parse_htpl_cleanup, parse_htpl_clsutils, parse_htpl_combobox, parse_h...
        int n;
        parser fun;
        n = search_hash(&htpl_hash, token, 0);
        if (n < 0) RETURN(0)
        fun = funs[n];
        RETURN(fun(stack, untag))
    }
}

int parse_(stack, untag)

htpl-sh.h  view on Meta::CPAN

typedef int (*parser)(STR, int);
int parse_htpl(STR, int);
int parse_htpl_graph(STR, int);
int parse_htpl_combobox(STR, int);
int parse_htpl_fetchit(STR, int);
int parse_htpl_catch(STR, int);
int parse_htpl_merge(STR, int);
int parse_htpl_continue(STR, int);
int parse_htpl_else(STR, int);
int parse_htpl_text(STR, int);
int parse_htpl_text_precsv(STR, int);
int parse_htpl_text_template(STR, int);
int parse_htpl_text_template___fwd(STR, int);
int parse_htpl_text_template___rev(STR, int);



( run in 3.209 seconds using v1.01-cache-2.11-cpan-2398b32b56e )