eval.h File Reference

#include "../cl/cdaccess.h"
#include <regex.h>
#include "regex2dfa.h"
#include "corpmanag.h"
#include "symtab.h"

Data Structures

Defines

Typedefs

Enumerations

Functions

Variables


Define Documentation

#define MAXENVIRONMENT   10

Referenced by next_environment().

#define MAXPATTERNS   5000
#define repeat_inf   -1
#define repeat_none   -2

Typedef Documentation

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 enum _avstype AVSType
typedef union c_tree Constraint

Union of structures underlying the Constraint / Constrainttree objects.

Each Constraint is a node in the Constrainttree.

The Constrainttree object.

typedef struct ctxtsp Context
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 union e_tree* Evaltree
typedef AVStructure Patternlist[MAXPATTERNS]

Enumeration Type Documentation

enum _avstype
Enumerator:
Pattern 
Tag 
MatchAll 
Anchor 
enum b_ops

Labels a boolean operation.

Enumerator:
b_and 

boolean and operator

b_or 

boolean or operator

b_implies 

boolean implication (->) operator

b_not 

boolean negation

cmp_gt 

compare: greater than

cmp_lt 

compare: less than

cmp_get 

compare: greater or equal than

cmp_let 

compare: less or equal than

cmp_eq 

compare: equal

cmp_neq 

compare: not equal

cmp_ex 

is value present? bool exprs

enum bnodetype

Labels the type of a boolean node.

Enumerator:
bnode 

boolean evaluation node

cnode 

constant node

func 

function call

sbound 

structure boundary (open or close)

pa_ref 

reference to positional attribute

sa_ref 

reference to structural attribute

string_leaf 

string constant

int_leaf 

integer constant

float_leaf 

float constant

id_list 

list of IDs

var_ref 

variable reference

enum cooc_op
Enumerator:
cooc_meet 
cooc_union 
enum ctxtdir
Enumerator:
leftright 
left 
right 
enum re_ops
Enumerator:
re_od_concat 
re_oi_concat 
re_disj 
re_repeat 
enum spacet
Enumerator:
word 
structure 
enum tnodetype
Enumerator:
node 
leaf 
meet_union 
tabular 
enum wf_type

Labels the type of a {what??}.

Enumerator:
NORMAL 
REGEXP 
CID 

Function Documentation

void cqp_run_mu_query ( int  keep_old_ranges,
int  cut_value 
)
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  ) 
Boolean eval_bool ( Constrainttree  ctptr,
RefTab  rt,
int  corppos 
)
int free_environment ( int  thisenv  ) 

Frees an evaluation environment.

Parameters:
thisenv The eval environment to free.
Returns:
Boolean: true if the deletion went OK; false if the environment to be freed was not occupied (will print an error message).

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 (  ) 
void show_environment ( int  thisenv  ) 

Variable Documentation

int eep
EvalEnvironment Environment[MAXENVIRONMENT]

Generated on Sun Feb 28 18:08:04 2010 for CWB by  doxygen 1.6.1