#include "../cl/cdaccess.h"
#include <regex.h>
#include "regex2dfa.h"
#include "corpmanag.h"
#include "symtab.h"
Labels a boolean operation.
More...Labels the type of a {what??}.
More...Labels the type of a boolean node.
More...#define MAXENVIRONMENT 10 |
Referenced by next_environment().
#define MAXPATTERNS 5000 |
Referenced by do_AnchorPoint(), do_WordformPattern(), and do_XMLTag().
#define repeat_inf -1 |
Referenced by cqp_run_tab_query(), do_OptDistance(), evaltree2searchstr(), and print_rep_factor().
#define repeat_none -2 |
Referenced by evaltree2searchstr(), print_evaltree(), print_rep_factor(), reg_disj(), and reg_seq().
typedef struct _ActualParamList ActualParamList |
The ActualParamList object: used to build a linked list of parameters, each one of which is a Constrainttree.
typedef AVStructure* AVS |
typedef union _avs AVStructure |
typedef union c_tree Constraint |
Union of structures underlying the Constraint / Constrainttree objects.
Each Constraint is a node in the Constrainttree.
typedef Constraint* Constrainttree |
The Constrainttree object.
typedef EvalEnvironment* EEP |
EEPs are Eval Environment pointers.
typedef struct evalenv EvalEnvironment |
The EvalEnvironment object: environment variables for the evaluation of a corpus query.
typedef AVStructure Patternlist[MAXPATTERNS] |
enum _avstype |
enum b_ops |
Labels a boolean operation.
enum bnodetype |
Labels the type of a boolean node.
enum cooc_op |
enum ctxtdir |
enum re_ops |
enum spacet |
enum tnodetype |
enum wf_type |
void cqp_run_mu_query | ( | int | keep_old_ranges, | |
int | cut_value | |||
) |
References cl_malloc(), cqpmessage(), _Matchlist::end, Environment, Error, eval_mu_tree(), free_matchlist(), init_matchlist(), mark_offrange_cells(), Reduce, set_corpus_matchlists(), Setop(), _Matchlist::start, and _Matchlist::tabsize.
Referenced by do_MUQuery().
void cqp_run_query | ( | int | cut, | |
int | keep_old_ranges | |||
) |
References eep, hard_cut, and simulate_dfa().
Referenced by do_StandardQuery().
void cqp_run_tab_query | ( | int | implode | ) |
References calculate_initial_matchlist(), cl_malloc(), Environment, free_matchlist(), hard_boundary, init_matchlist(), mark_offrange_cells(), e_tree::next, e_tree::patindex, Reduce, repeat_inf, set_corpus_matchlists(), Setop(), e_tree::tab_el, tabular, and e_tree::type.
Referenced by do_TABQuery().
Boolean eval_bool | ( | Constrainttree | ctptr, | |
RefTab | rt, | |||
int | corppos | |||
) |
References ATTAT_FLOAT, ATTAT_INT, ATTAT_NONE, ATTAT_PAREF, ATTAT_POS, ATTAT_STRING, ATTAT_VAR, c_tree::attr, b_and, b_implies, b_not, b_or, bnode, CDA_OK, cderrno, _DCR::charres, cl_regex_match(), cmp_eq, cmp_ex, cmp_get, cmp_gt, cmp_let, cmp_lt, cmp_neq, cnode, c_tree::constnode, cqpmessage(), c_tree::delete, Error, eval_bool(), eval_debug, EvaluationIsRunning, False, float_leaf, _DCR::floatres, func, get_id_at_position(), get_label_referenced_position(), get_leaf_value(), get_string_of_id(), get_struc_attribute(), id_list, c_tree::idlist, int_leaf, intcompare(), _DCR::intres, c_tree::is_closing, c_tree::items, c_tree::label, c_tree::leaf, c_tree::left, _label_entry::name, c_tree::negated, c_tree::node, NORMAL, c_tree::nr_items, c_tree::op_id, pa_ref, _DCR::parefres, c_tree::pat_type, _label_entry::ref, REGEXP, c_tree::right, c_tree::rx, sa_ref, c_tree::sbound, sbound, set_reftab(), STREQ, string_leaf, c_tree::strucattr, True, _DCR::type, c_tree::type, c_tree::val, and _DCR::value.
Referenced by calculate_initial_matchlist_1(), eval_bool(), eval_constraint(), evaluate_subset(), evaluate_target(), and simulate().
int free_environment | ( | int | thisenv | ) |
Frees an evaluation environment.
thisenv | The eval environment to free. |
References Anchor, ctxtsp::attrib, cl_delete_regex(), cl_free, delete_symbol_table(), ctxtsp::direction, eep, Environment, False, free_booltree(), free_dfa(), free_evaltree(), evalenv::gconstraint, evalenv::has_target_indicator, evalenv::labels, leftright, MatchAll, evalenv::MaxPatIndex, NoField, Pattern, evalenv::patternlist, evalenv::query_corpus, evalenv::search_context, ctxtsp::size, Tag, ctxtsp::type, cl::type, and word.
Referenced by free_environments().
void free_environments | ( | ) |
References eep, and free_environment().
Referenced by in_UnnamedCorpusCommand(), and prepare_input().
int next_environment | ( | ) |
References ctxtsp::attrib, CurEnv, ctxtsp::direction, eep, Environment, evalenv::evaltree, evalenv::gconstraint, evalenv::has_target_indicator, init_dfa(), evalenv::labels, leftright, evalenv::match_label, evalenv::matchend_label, MAXENVIRONMENT, evalenv::MaxPatIndex, evalenv::negated, new_symbol_table(), evalenv::query_corpus, evalenv::search_context, ctxtsp::size, evalenv::target_label, ctxtsp::type, and word.
Referenced by ActivateCorpus(), after_CorpusSetExpr(), prepare_AlignmentConstraints(), and prepare_Query().
void show_environment | ( | int | thisenv | ) |
References eep, Environment, print_booltree(), print_evaltree(), show_compdfa, show_complete_dfa(), show_evaltree, show_gconstraints, show_patlist, and show_patternlist().
Referenced by debug_output().
Referenced by ActivateCorpus(), after_CorpusSetExpr(), do_AnchorPoint(), do_IDReference(), do_LabelReference(), do_MUQuery(), do_NamedWfPattern(), do_SearchPattern(), do_TABQuery(), do_WordformPattern(), do_XMLTag(), eval_mu_tree(), next_environment(), prepare_AlignmentConstraints(), and prepare_Query().
int eep |
eval environment pointer
Referenced by check_alignment_constraints(), cqp_run_query(), debug_output(), do_SearchPattern(), free_environment(), free_environments(), initialize_cqp(), next_environment(), prepare_Query(), regex2dfa(), show_environment(), and simulate_dfa().
EvalEnvironment Environment[MAXENVIRONMENT] |
Referenced by check_alignment_constraints(), cqp_run_mu_query(), cqp_run_tab_query(), do_Description(), do_MUQuery(), do_StandardQuery(), do_TABQuery(), free_environment(), next_environment(), prepare_AlignmentConstraints(), prepare_Query(), print_evaltree(), print_pattern(), regex2dfa(), show_environment(), show_patternlist(), and simulate_dfa().