parse_actions.h File Reference

#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "cqp.h"
#include "corpmanag.h"
#include "targets.h"
#include "eval.h"
#include "output.h"
#include "ranges.h"

Defines

Functions

Variables


Define Documentation

#define OP_CONTAINS   2

grammar constant: contains

Referenced by do_mval_string(), and do_XMLTag().

#define OP_EQUAL   0

grammar constant: =

Referenced by do_XMLTag().

#define OP_MATCHES   4

grammar constant: matches

Referenced by do_mval_string(), and do_XMLTag().

#define OP_NOT   1

grammar constant: != or 'not'

Referenced by do_XMLTag().

#define OP_NOT_MASK   0xfe

grammar constant: mask used to reset OP_NOT bit

Referenced by do_mval_string(), and do_XMLTag().


Function Documentation

CorpusList* ActivateCorpus ( CorpusList cl  ) 
Evaltree add_tabular_pattern ( Evaltree  patterns,
Context context,
int  pattern_index 
)
void addHistoryLine ( void   ) 
void after_CorpusCommand ( CorpusList cl  ) 
CorpusList* after_CorpusSetExpr ( CorpusList cl  ) 
CorpusList* after_Query ( CorpusList cl  ) 
Constrainttree bool_and ( Constrainttree  left,
Constrainttree  right 
)
Constrainttree bool_implies ( Constrainttree  left,
Constrainttree  right 
)
Constrainttree bool_not ( Constrainttree  left  ) 
Constrainttree bool_or ( Constrainttree  left,
Constrainttree  right 
)
void debug_output ( void   ) 
void do_AddSubVariables ( char *  var1Name,
int  add,
char *  var2Name 
)
int do_AnchorPoint ( FieldType  field,
int  is_closing 
)
void do_attribute_show ( char *  name,
int  status 
)
void do_cat ( CorpusList cl,
struct Redir r,
int  first,
int  last 
)
void do_cut ( CorpusList cl,
int  first,
int  last 
)
void do_delete_lines ( CorpusList cl,
FieldType  f,
int  mode 
)
void do_delete_lines_num ( CorpusList cl,
int  start,
int  end 
)
void do_Description ( Context context,
int  nr,
char *  name 
)
void do_dump ( CorpusList cl,
int  first,
int  last,
struct Redir rd 
)
void do_exec ( char *  fname  ) 
Constrainttree do_flagged_re_variable ( char *  varname,
int  flags 
)
Constrainttree do_flagged_string ( char *  s,
int  flags 
)
void do_group ( CorpusList cl,
FieldType  target,
int  target_offset,
char *  t_att,
FieldType  source,
int  source_offset,
char *  s_att,
int  cut,
int  expand,
struct Redir redir 
)
void do_group2 ( CorpusList cl,
FieldType  target,
int  target_offset,
char *  t_att,
int  cut,
int  expand,
struct Redir r 
)
Constrainttree do_IDReference ( char *  id_name,
int  auto_delete 
)
void do_info ( CorpusList cl  ) 

References corpus_info().

Constrainttree do_LabelReference ( char *  label_name,
int  auto_delete 
)
Evaltree do_MeetStatement ( Evaltree  left,
Evaltree  right,
Context context 
)
CorpusList* do_MUQuery ( Evaltree  evalt,
int  keep_flag,
int  cut_value 
)
Constrainttree do_mval_string ( char *  s,
int  op,
int  flags 
)
int do_NamedWfPattern ( int  is_target,
char *  label,
int  pat_idx 
)
void do_OptDistance ( Context context,
int  l_bound,
int  u_bound 
)
void do_PrintAllVariables (  ) 
void do_printVariableSize ( char *  varName  ) 
void do_PrintVariableValue ( char *  varName  ) 
void do_reduce ( CorpusList cl,
int  number,
int  percent 
)
Constrainttree do_RelExExpr ( Constrainttree  left  ) 
Constrainttree do_RelExpr ( Constrainttree  left,
enum b_ops  op,
Constrainttree  right 
)
void do_save ( CorpusList cl,
struct Redir r 
)
void do_SearchPattern ( Evaltree  expr,
Constrainttree  constraint 
)
void do_set_complex_target ( CorpusList cl,
FieldType  goal,
SearchStrategy  search_strategy,
Constrainttree  boolt,
enum ctxtdir  direction,
int  number,
char *  id,
FieldType  field,
int  inclusive 
)
void do_set_target ( CorpusList cl,
FieldType  goal,
FieldType  source 
)

References NoField, and set_target().

CorpusList* do_setop ( RangeSetOp  op,
CorpusList c1,
CorpusList c2 
)
void do_SetVariableValue ( char *  varName,
char  operator,
char *  varValues 
)
Constrainttree do_SimpleVariableReference ( char *  varName  ) 
void do_size ( CorpusList cl,
FieldType  field 
)
void do_sleep ( int  duration  ) 

Puts the program to sleep.

A wrapper round the standard sleep() function.

Parameters:
duration How many seconds to sleep for.
CorpusList* do_StandardQuery ( int  cut_value,
int  keep_flag 
)
void do_start_timer ( void   ) 

Starts the timer running.

References timer_start_time, and timing.

Referenced by do_group(), do_group2(), do_MUQuery(), do_StandardQuery(), and do_TABQuery().

Constrainttree do_StringConstraint ( char *  s,
int  flags 
)
void do_StructuralContext ( Context context,
char *  name 
)
CorpusList* do_subset ( FieldType  field,
Constrainttree  boolt 
)
CorpusList* do_TABQuery ( Evaltree  patterns  ) 
void do_timing ( char *  msg  ) 

Shows the period since the timer started running.

Parameters:
msg A message to print along with the reading from the timer.

References cqpmessage(), Info, timer_start_time, and timing.

Referenced by do_group(), do_group2(), and in_UnnamedCorpusCommand().

int do_undump ( char *  corpname,
int  extension_fields,
int  sort_ranges,
struct InputRedir rd 
)
Evaltree do_UnionStatement ( Evaltree  left,
Evaltree  right 
)
Constrainttree do_VariableReference ( char *  s  ) 
int do_WordformPattern ( Constrainttree  boolt,
int  lookahead 
)
int do_XMLTag ( char *  s_name,
int  is_closing,
int  op,
char *  regex,
int  flags 
)
void expand_dataspace ( CorpusList ds  ) 
Constrainttree FunctionCall ( char *  f_name,
ActualParamList apl 
)
CorpusList* in_CorpusCommand ( char *  id,
CorpusList cl 
)
CorpusList* in_UnnamedCorpusCommand ( CorpusList cl  ) 
Evaltree make_first_tabular_pattern ( int  pattern_index,
Evaltree  next 
)
void prepare_AlignmentConstraints ( char *  id  ) 
void prepare_do_subset ( CorpusList cl,
FieldType  field 
)
void prepare_input ( void   ) 
void prepare_parse (  ) 

References cqpmessage(), generate_code, and Warning.

void prepare_Query (  ) 
void push_regchr ( char  c  ) 
Evaltree reg_disj ( Evaltree  left,
Evaltree  right 
)
Evaltree reg_seq ( Evaltree  left,
Evaltree  right 
)
void resetQueryBuffer ( void   ) 

References QueryBuffer, QueryBufferOverflow, and QueryBufferP.

Referenced by RaiseError().


Variable Documentation

Referenced by findcorpus().

Referenced by simulate().

char regex_string[]

Referenced by push_regchr().

Referenced by prepare_input(), and push_regchr().

int sslen

Referenced by do_SearchPattern().

int within_gc
FILE* yyin

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