Home
last modified time | relevance | path

Searched refs:parse_tree (Results 1 – 25 of 757) sorted by relevance

12345678910>>...31

/dports/devel/cligen/cligen-4.8.0/
H A Dcligen_parsetree.h53 typedef struct parse_tree parse_tree; /* struct defined internally in cligen_parsetree.c */ typedef
62 cg_obj *pt_vec_i_get(parse_tree *pt, int i);
67 int pt_len_get(parse_tree *pt);
68 char *pt_name_get(parse_tree *pt);
70 int pt_sets_get(parse_tree *pt);
73 int pt_realloc(parse_tree *pt);
74 int pt_copy(parse_tree *pt, cg_obj *parent, parse_tree *ptn);
75 parse_tree *pt_dup(parse_tree *pt, cg_obj *cop);
76 int cligen_parsetree_merge(parse_tree *pt0, cg_obj *parent0, parse_tree *pt1);
77 int pt_free(parse_tree *pt, int recurse);
[all …]
H A Dcligen_parsetree.c73 struct parse_tree{ struct
195 pt_len_get(parse_tree *pt) in pt_len_get()
259 parse_tree *
262 parse_tree *pt = NULL; in pt_new()
310 pt_copy(parse_tree *pt, in pt_copy()
312 parse_tree *ptn) in pt_copy()
357 parse_tree *
358 pt_dup(parse_tree *pt, in pt_dup()
387 parse_tree *pt1) in cligen_parsetree_merge()
481 parse_tree *pt1; in cligen_parsetree_sort()
[all …]
H A Dcligen_expand.h48 int pt_expand_treeref(cligen_handle h, cg_obj *coprev, parse_tree *pt);
49 int pt_expand(cligen_handle h, parse_tree *pt, cvec *cvec, int hide, int expandv, parse_tree *ptn);
50 int pt_expand_treeref_cleanup(parse_tree *pt);
51 int pt_expand_cleanup(parse_tree *pt);
52 int reference_path_match(cg_obj *co1, parse_tree *pt0, cg_obj **co0p);
H A Dcligen_syntax.h68 parse_tree *pt,
74 parse_tree *obsolete,
77 int cligen_callback_str2fn(parse_tree *pt, cg_str2fn_t *str2fn, void *arg);
78 int cligen_callbackv_str2fn(parse_tree *pt, cgv_str2fn_t *str2fn, void *arg);
79 int cligen_expandv_str2fn(parse_tree *pt, expandv_str2fn_t *str2fn, void *arg);
80 int cligen_translate_str2fn(parse_tree *pt, translate_str2fn_t *str2fn, void *arg);
/dports/security/sudo/sudo-1.9.8p2/plugins/sudoers/
H A Dalias.c76 if (parse_tree->aliases == NULL) in alias_get()
122 if (parse_tree->aliases == NULL) { in alias_add()
123 if ((parse_tree->aliases = alloc_aliases()) == NULL) in alias_add()
160 struct sudoers_parse_tree *parse_tree; member
179 alias_apply(struct sudoers_parse_tree *parse_tree, in alias_apply() argument
186 if (parse_tree->aliases != NULL) { in alias_apply()
187 closure.parse_tree = parse_tree; in alias_apply()
200 no_aliases(struct sudoers_parse_tree *parse_tree) in no_aliases() argument
203 debug_return_bool(parse_tree->aliases == NULL || in no_aliases()
204 rbisempty(parse_tree->aliases)); in no_aliases()
[all …]
H A Dmatch.c71 const char *lhost = parse_tree->lhost ? parse_tree->lhost : user_runhost; in user_matches()
72 const char *shost = parse_tree->shost ? parse_tree->shost : user_srunhost; in user_matches()
154 const char *lhost = parse_tree->lhost ? parse_tree->lhost : user_runhost; in runaslist_matches()
155 const char *shost = parse_tree->shost ? parse_tree->shost : user_srunhost; in runaslist_matches()
188 a = alias_get(parse_tree, m->name, RUNASALIAS); in runaslist_matches()
232 a = alias_get(parse_tree, m->name, RUNASALIAS); in runaslist_matches()
234 rc = runaslist_matches(parse_tree, &empty, in runaslist_matches()
312 const char *lhost = parse_tree->lhost ? parse_tree->lhost : user_runhost; in hostlist_matches()
313 const char *shost = parse_tree->shost ? parse_tree->shost : user_srunhost; in hostlist_matches()
344 a = alias_get(parse_tree, m->name, HOSTALIAS); in host_matches()
[all …]
H A Dcvtsudoers.c693 if (user_matches(parse_tree, &pw, m) == true) in userlist_matches_filter()
719 if (user_matches(parse_tree, pw, m) == true) in userlist_matches_filter()
939 a = alias_get(parse_tree, alias_name, alias_type); in alias_matches()
1054 a = alias_remove(parse_tree, m->name, type); in free_aliases_by_members()
1065 filter_defaults(struct sudoers_parse_tree *parse_tree, in filter_defaults() argument
1186 if (!alias_find_used(parse_tree, used_aliases)) in alias_remove_unused()
1190 free_aliases(parse_tree->aliases); in alias_remove_unused()
1191 parse_tree->aliases = used_aliases; in alias_remove_unused()
1224 alias_prune(struct sudoers_parse_tree *parse_tree, in alias_prune() argument
1229 alias_apply(parse_tree, alias_prune_helper, conf); in alias_prune()
[all …]
H A Dcheck_aliases.c43 if ((a = alias_get(parse_tree, name, type)) != NULL) { in check_alias()
48 errors += check_alias(parse_tree, m->name, type, a->file, a->line, in check_alias()
100 TAILQ_FOREACH(us, &parse_tree->userspecs, entries) { in check_aliases()
103 errors += check_alias(parse_tree, m->name, USERALIAS, in check_aliases()
110 errors += check_alias(parse_tree, m->name, HOSTALIAS, in check_aliases()
118 errors += check_alias(parse_tree, m->name, RUNASALIAS, in check_aliases()
126 errors += check_alias(parse_tree, m->name, RUNASALIAS, in check_aliases()
132 errors += check_alias(parse_tree, m->name, CMNDALIAS, in check_aliases()
140 if (!alias_find_used(parse_tree, used_aliases)) in check_aliases()
145 if (!no_aliases(parse_tree)) in check_aliases()
[all …]
H A Dfmtsudoers_cvt.c40 struct sudoers_parse_tree *parse_tree, struct privilege *priv, in sudoers_format_privilege() argument
55 sudoers_format_member(lbuf, parse_tree, m, ", ", in sudoers_format_privilege()
72 sudoers_format_member(lbuf, parse_tree, m, ", ", in sudoers_format_privilege()
81 sudoers_format_member(lbuf, parse_tree, m, ", ", in sudoers_format_privilege()
90 sudoers_format_cmndspec(lbuf, parse_tree, cs, prev_cs, tags, in sudoers_format_privilege()
103 struct sudoers_parse_tree *parse_tree, in sudoers_format_userspec() argument
120 sudoers_format_member(lbuf, parse_tree, m, ", ", in sudoers_format_userspec()
142 struct sudoers_parse_tree *parse_tree, const char *separator, in sudoers_format_userspecs() argument
148 TAILQ_FOREACH(us, &parse_tree->userspecs, entries) { in sudoers_format_userspecs()
167 struct sudoers_parse_tree *parse_tree, struct defaults *d, in sudoers_format_default_line() argument
[all …]
H A Dparse.c70 TAILQ_FOREACH(us, &nss->parse_tree->userspecs, entries) { in sudoers_lookup_pseudo()
95 cmnd_matches(nss->parse_tree, cs->cmnd, cs->runchroot, in sudoers_lookup_pseudo()
150 runas_match = runaslist_matches(nss->parse_tree, in sudoers_lookup_check()
370 struct sudoers_parse_tree *parse_tree = NULL; in sudoers_lookup() local
401 parse_tree = nss->parse_tree; in sudoers_lookup()
458 sudoers_format_member(lbuf, parse_tree, m, ", ", in display_priv_short()
471 sudoers_format_member(lbuf, parse_tree, m, ", ", in display_priv_short()
559 sudoers_format_member(lbuf, parse_tree, m, ", ", in display_priv_long()
573 sudoers_format_member(lbuf, parse_tree, m, ", ", in display_priv_long()
830 n = display_defaults(nss->parse_tree, pw, &def_buf); in display_privs()
[all …]
H A Dparse.h342 bool no_aliases(struct sudoers_parse_tree *parse_tree);
345 struct alias *alias_get(struct sudoers_parse_tree *parse_tree, const char *name, int type);
346 struct alias *alias_remove(struct sudoers_parse_tree *parse_tree, char *name, int type);
347 bool alias_find_used(struct sudoers_parse_tree *parse_tree, struct rbtree *used_aliases);
366 void init_parse_tree(struct sudoers_parse_tree *parse_tree, const char *lhost, const char *shost);
367 void free_parse_tree(struct sudoers_parse_tree *parse_tree);
390 int cmnd_matches(struct sudoers_parse_tree *parse_tree, const struct member *m, const char *runchro…
393 int hostlist_matches(struct sudoers_parse_tree *parse_tree, const struct passwd *pw, const struct m…
395 int user_matches(struct sudoers_parse_tree *parse_tree, const struct passwd *pw, const struct membe…
396 int userlist_matches(struct sudoers_parse_tree *parse_tree, const struct passwd *pw, const struct m…
[all …]
H A Dcvtsudoers_json.c309 print_member_json_int(jsonc, parse_tree, m->name, m->type, in print_member_json_int()
333 struct sudoers_parse_tree *parse_tree, struct member *m, in print_member_json() argument
363 print_member_json(closure->jsonc, parse_tree, m, in print_alias_json()
472 if (TAILQ_EMPTY(&parse_tree->defaults)) in print_defaults_json()
544 alias_apply(parse_tree, print_alias_json, &closure); in print_aliases_by_type_json()
558 struct sudoers_parse_tree *parse_tree) in print_aliases_json() argument
816 print_member_json(jsonc, parse_tree, m, TYPE_USERNAME, in print_userspec_json()
824 print_member_json(jsonc, parse_tree, m, TYPE_HOSTNAME, in print_userspec_json()
851 if (TAILQ_EMPTY(&parse_tree->userspecs)) in print_userspecs_json()
855 TAILQ_FOREACH(us, &parse_tree->userspecs, entries) { in print_userspecs_json()
[all …]
/dports/devel/py-arpeggio/Arpeggio-1.10.2/arpeggio/tests/
H A Dtest_position.py15 def parse_tree(): function
24 def test_position(parse_tree): argument
25 assert parse_tree[0].position == 3
26 assert parse_tree[1].position == 13
27 assert parse_tree[2].position == 22
28 assert parse_tree.position == 3
31 def test_position_end(parse_tree): argument
35 assert parse_tree.position_end == 27
46 a_pos = parse_tree[0].position
48 b_pos = parse_tree[1].position
[all …]
H A Dtest_flags.py40 parse_tree = parser_ci.parse(input_str)
41 assert parse_tree is not None
54 parse_tree = parser_nonci.parse(input_str)
55 assert parse_tree is not None
60 parse_tree = parser_nonci.parse(input_str)
61 assert parse_tree is not None
66 parse_tree = parser_nonci.parse(input_str)
67 assert parse_tree is not None
/dports/mail/p5-Mail-Field-Received/Mail-Field-Received-0.26/t/
H A Dall.t9 eq_or_diff $received->parse_tree, $expect, $name
23 my $parse_tree = {
76 $parse_tree = {
104 $parse_tree->{date_time}{whole} = $new_date_time;
105 $parse_tree->{date_time}{date_time} = $new_date_time;
106 $parse_tree->{date_time}{rest} = $new_rest;
107 $parse_tree->{whole} = $in;
117 $parse_tree->{date_time}{whole} = $new_date_time;
119 $parse_tree->{date_time}{rest} = $new_rest;
120 $parse_tree->{whole} = $in;
[all …]
/dports/science/py-dlib/dlib-19.22/dlib/test/
H A Dparse.cpp85 std::vector<parse_tree_element<tags> > parse_tree; in dotest1() local
88 DLIB_TEST(parse_tree.size() != 0); in dotest1()
92 find_trees_not_rooted_with_tag(parse_tree, G, roots); in dotest1()
123 DLIB_TEST(parse_tree.size() != 0); in dotest1()
127 dlog << LINFO << parse_tree_to_string(parse_tree, words); in dotest1()
141 DLIB_TEST(parse_tree.size() == 0); in dotest1()
168 std::vector<parse_tree_element<tags> > parse_tree; in dotest2() local
171 DLIB_TEST(parse_tree.size() == 0); in dotest2()
175 find_trees_not_rooted_with_tag(parse_tree, G, roots); in dotest2()
198 DLIB_TEST(parse_tree.size() == 0); in dotest2()
[all …]
/dports/science/dlib-cpp/dlib-19.22/dlib/test/
H A Dparse.cpp85 std::vector<parse_tree_element<tags> > parse_tree; in dotest1() local
88 DLIB_TEST(parse_tree.size() != 0); in dotest1()
92 find_trees_not_rooted_with_tag(parse_tree, G, roots); in dotest1()
123 DLIB_TEST(parse_tree.size() != 0); in dotest1()
127 dlog << LINFO << parse_tree_to_string(parse_tree, words); in dotest1()
141 DLIB_TEST(parse_tree.size() == 0); in dotest1()
168 std::vector<parse_tree_element<tags> > parse_tree; in dotest2() local
171 DLIB_TEST(parse_tree.size() == 0); in dotest2()
175 find_trees_not_rooted_with_tag(parse_tree, G, roots); in dotest2()
198 DLIB_TEST(parse_tree.size() == 0); in dotest2()
[all …]
/dports/databases/p5-Genezzo/Genezzo-0.72/lib/Genezzo/
H A DPlan.pm262 my $parse_tree;
269 unless (defined($parse_tree))
283 $parse_tree = $args{parse_tree};
286 return $self->{getAlgebra}->Convert(parse_tree => $parse_tree);
356 my ($sqltxt, $parse_tree);
359 if (exists($args{parse_tree}) &&
360 defined($args{parse_tree}))
362 $parse_tree = $args{parse_tree};
370 unless (defined($parse_tree));
373 $plan_status->{parse_tree} = $parse_tree;
[all …]
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/lalrpop-0.16.3/src/grammar/free_variables/
H A Dmod.rs1 use grammar::parse_tree::{self, Lifetime, TypeParameter};
97 impl FreeVariables for parse_tree::Path {
120 impl<T: FreeVariables> FreeVariables for parse_tree::WhereClause<T> {
123 parse_tree::WhereClause::Lifetime { lifetime, bounds } => { in free_variables()
129 parse_tree::WhereClause::Type { forall, ty, bounds } => ty in free_variables()
139 impl<T: FreeVariables> FreeVariables for parse_tree::TypeBoundParameter<T> {
144 parse_tree::TypeBoundParameter::Associated(..) => vec![], in free_variables()
149 impl<T: FreeVariables> FreeVariables for parse_tree::TypeBound<T> {
152 parse_tree::TypeBound::Lifetime(l) => free_lifetime(type_parameters, l), in free_variables()
153 parse_tree::TypeBound::Fn { in free_variables()
[all …]
/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/lalrpop-0.17.2/src/grammar/free_variables/
H A Dmod.rs1 use grammar::parse_tree::{self, Lifetime, TypeParameter};
115 impl FreeVariables for parse_tree::Path {
138 impl<T: FreeVariables> FreeVariables for parse_tree::WhereClause<T> {
141 parse_tree::WhereClause::Lifetime { lifetime, bounds } => { in free_variables()
147 parse_tree::WhereClause::Type { forall, ty, bounds } => ty in free_variables()
157 impl<T: FreeVariables> FreeVariables for parse_tree::TypeBoundParameter<T> {
162 parse_tree::TypeBoundParameter::Associated(..) => vec![], in free_variables()
167 impl<T: FreeVariables> FreeVariables for parse_tree::TypeBound<T> {
170 parse_tree::TypeBound::Lifetime(l) => free_lifetime(type_parameters, l), in free_variables()
171 parse_tree::TypeBound::Fn { in free_variables()
[all …]
/dports/net/krill/krill-0.9.4/cargo-crates/lalrpop-0.19.6/src/grammar/free_variables/
H A Dmod.rs1 use crate::grammar::parse_tree::{self, Lifetime, TypeParameter};
116 impl FreeVariables for parse_tree::Path {
139 impl<T: FreeVariables> FreeVariables for parse_tree::WhereClause<T> {
142 parse_tree::WhereClause::Lifetime { lifetime, bounds } => { in free_variables()
148 parse_tree::WhereClause::Type { forall, ty, bounds } => ty in free_variables()
158 impl<T: FreeVariables> FreeVariables for parse_tree::TypeBoundParameter<T> {
163 parse_tree::TypeBoundParameter::Associated(..) => vec![], in free_variables()
168 impl<T: FreeVariables> FreeVariables for parse_tree::TypeBound<T> {
171 parse_tree::TypeBound::Lifetime(l) => free_lifetime(type_parameters, l), in free_variables()
172 parse_tree::TypeBound::Fn { in free_variables()
[all …]
/dports/biology/p5-Bio-Phylo/Bio-Phylo-v2.0.1/t/
H A D58-symdiff.t10 my $t1 = parse_tree( '-format' => 'newick', '-string' => $newick );
11 my $t2 = parse_tree( '-format' => 'newick', '-string' => $newick );
26 my $t1 = parse_tree( '-format' => 'newick', '-string' => $n1 );
27 my $t2 = parse_tree( '-format' => 'newick', '-string' => $n2 );
41 my $t1 = parse_tree( '-format' => 'newick', '-string' => $n1 );
42 my $t2 = parse_tree( '-format' => 'newick', '-string' => $n2 );
/dports/lang/python311/Python-3.11.0a3/Lib/email/
H A Dheaderregistry.py200 def init(self, name, *, parse_tree, defects): argument
202 self._parse_tree = parse_tree
411 kwds['decoded'] = str(parse_tree)
412 kwds['defects'].extend(parse_tree.all_defects)
413 kwds['major'] = None if parse_tree.minor is None else parse_tree.major
414 kwds['minor'] = parse_tree.minor
415 if parse_tree.minor is not None:
449 kwds['decoded'] = str(parse_tree)
451 if parse_tree.params is None:
513 kwds['decoded'] = str(parse_tree)
[all …]
/dports/lang/python39/Python-3.9.9/Lib/email/
H A Dheaderregistry.py204 def init(self, name, *, parse_tree, defects): argument
206 self._parse_tree = parse_tree
408 kwds['decoded'] = str(parse_tree)
409 kwds['defects'].extend(parse_tree.all_defects)
410 kwds['major'] = None if parse_tree.minor is None else parse_tree.major
411 kwds['minor'] = parse_tree.minor
412 if parse_tree.minor is not None:
446 kwds['decoded'] = str(parse_tree)
448 if parse_tree.params is None:
510 kwds['decoded'] = str(parse_tree)
[all …]
/dports/lang/python310/Python-3.10.1/Lib/email/
H A Dheaderregistry.py200 def init(self, name, *, parse_tree, defects): argument
202 self._parse_tree = parse_tree
411 kwds['decoded'] = str(parse_tree)
412 kwds['defects'].extend(parse_tree.all_defects)
413 kwds['major'] = None if parse_tree.minor is None else parse_tree.major
414 kwds['minor'] = parse_tree.minor
415 if parse_tree.minor is not None:
449 kwds['decoded'] = str(parse_tree)
451 if parse_tree.params is None:
513 kwds['decoded'] = str(parse_tree)
[all …]

12345678910>>...31