Main Page | Data Structures | File List | Data Fields | Globals

ticvocab.h File Reference

#include "types.h"
#include "dictionary.h"

Include dependency graph for ticvocab.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  tic_param
struct  tic_hdr
union  tic_fwt_param
struct  tic_fwt_hdr
union  tic_mac_param
struct  tic_mac_hdr
union  tic_bool_param
struct  tic_bool_hdr

Defines

#define TIC_P_DEFLT_TYPE   long
#define TIC_FWT_P_DEFLT_TYPE   fwtoken
#define TIC_MAC_P_DEFLT_TYPE   char *
#define TIC_BOOL_P_DEFLT_TYPE   bool *
#define NO_PARAM_TIC(nam, func)   { nam , (tic_hdr_t *)NULL , func , { 0 }, UNSPECIFIED , NULL , 0 }
#define NO_PARAM_IGN(nam, func)   { nam , (tic_hdr_t *)NULL , func , { 0 }, UNSPECIFIED , func , 0 }
#define VALPARAM_TIC(nam, func, pval, definr)
#define DUALFUNC_TIC(nam, afunc, pval, ifunc, definr)
#define DUFNC_FWT_PARM(nam, afunc, pval, ifunc, definr)
#define FWORD_TKN_TIC(nam, func, fw_tokval, definr)   { nam , (tic_fwt_hdr_t *)NULL , func , { fw_tokval }, definr , NULL , 0 }
#define DUALFUNC_FWT_TIC(nam, afunc, fw_tokval, ifunc, definr)   { nam , (tic_fwt_hdr_t *)NULL , afunc , { fw_tokval }, definr , ifunc , 0 }
#define BUILTIN_MAC_TIC(nam, func, alias)   { nam , (tic_mac_hdr_t *)NULL , func , { alias }, MACRO_DEF , NULL , 0 }
#define BUILTIN_BOOL_TIC(nam, func, bool_vbl)

Typedefs

typedef tic_param tic_param_t
typedef tic_hdr tic_hdr_t
typedef tic_fwt_param tic_fwt_param_t
typedef tic_fwt_hdr tic_fwt_hdr_t
typedef tic_mac_param tic_mac_param_t
typedef tic_mac_hdr tic_mac_hdr_t
typedef tic_bool_param tic_bool_param_t
typedef tic_bool_hdr tic_bool_hdr_t

Functions

void init_tic_vocab (tic_hdr_t *tic_vocab_tbl, int max_indx, tic_hdr_t **tic_vocab_ptr)
void add_tic_entry (char *tname, void(*tfunct)(), TIC_P_DEFLT_TYPE tparam, fwtoken fw_defr, int pfldsiz, void(*ign_fnc)(), tic_hdr_t **tic_vocab)
tic_hdr_tlookup_tic_entry (char *tname, tic_hdr_t *tic_vocab)
bool exists_in_tic_vocab (char *tname, tic_hdr_t *tic_vocab)
bool handle_tic_vocab (char *tname, tic_hdr_t *tic_vocab)
bool create_tic_alias (char *new_name, char *old_name, tic_hdr_t **tic_vocab)
void reset_tic_vocab (tic_hdr_t **tic_vocab, tic_hdr_t *reset_position)

Variables

tic_hdr_ttic_found


Define Documentation

#define BUILTIN_BOOL_TIC nam,
func,
bool_vbl   ) 
 

Value:

{ nam , (tic_bool_hdr_t *)NULL , func , { &bool_vbl },   \
        COMMON_FWORD , func , 0 }

Definition at line 447 of file ticvocab.h.

#define BUILTIN_MAC_TIC nam,
func,
alias   )     { nam , (tic_mac_hdr_t *)NULL , func , { alias }, MACRO_DEF , NULL , 0 }
 

Definition at line 426 of file ticvocab.h.

#define DUALFUNC_FWT_TIC nam,
afunc,
fw_tokval,
ifunc,
definr   )     { nam , (tic_fwt_hdr_t *)NULL , afunc , { fw_tokval }, definr , ifunc , 0 }
 

Definition at line 406 of file ticvocab.h.

#define DUALFUNC_TIC nam,
afunc,
pval,
ifunc,
definr   ) 
 

Value:

{ nam , (tic_hdr_t *)NULL , afunc ,  \
        { (TIC_P_DEFLT_TYPE)(pval) }, definr , ifunc , 0 }

Definition at line 362 of file ticvocab.h.

#define DUFNC_FWT_PARM nam,
afunc,
pval,
ifunc,
definr   ) 
 

Value:

{ nam , (tic_fwt_hdr_t *)NULL , afunc ,  \
        { (TIC_FWT_P_DEFLT_TYPE)(pval) }, definr , ifunc , 0 }

Definition at line 367 of file ticvocab.h.

#define FWORD_TKN_TIC nam,
func,
fw_tokval,
definr   )     { nam , (tic_fwt_hdr_t *)NULL , func , { fw_tokval }, definr , NULL , 0 }
 

Definition at line 387 of file ticvocab.h.

#define NO_PARAM_IGN nam,
func   )     { nam , (tic_hdr_t *)NULL , func , { 0 }, UNSPECIFIED , func , 0 }
 

Definition at line 313 of file ticvocab.h.

#define NO_PARAM_TIC nam,
func   )     { nam , (tic_hdr_t *)NULL , func , { 0 }, UNSPECIFIED , NULL , 0 }
 

Definition at line 297 of file ticvocab.h.

#define TIC_BOOL_P_DEFLT_TYPE   bool *
 

Definition at line 251 of file ticvocab.h.

#define TIC_FWT_P_DEFLT_TYPE   fwtoken
 

Definition at line 189 of file ticvocab.h.

#define TIC_MAC_P_DEFLT_TYPE   char *
 

Definition at line 223 of file ticvocab.h.

#define TIC_P_DEFLT_TYPE   long
 

Definition at line 153 of file ticvocab.h.

Referenced by add_user_macro(), and create_constant().

#define VALPARAM_TIC nam,
func,
pval,
definr   ) 
 

Value:

{ nam , (tic_hdr_t *)NULL , func ,  \
        { (TIC_P_DEFLT_TYPE)(pval) }, definr , NULL , 0 }

Definition at line 339 of file ticvocab.h.


Typedef Documentation

typedef struct tic_bool_hdr tic_bool_hdr_t
 

typedef union tic_bool_param tic_bool_param_t
 

typedef struct tic_fwt_hdr tic_fwt_hdr_t
 

typedef union tic_fwt_param tic_fwt_param_t
 

typedef struct tic_hdr tic_hdr_t
 

typedef struct tic_mac_hdr tic_mac_hdr_t
 

typedef union tic_mac_param tic_mac_param_t
 

typedef union tic_param tic_param_t
 


Function Documentation

void add_tic_entry char *  tname,
void(*)()  tfunct,
TIC_P_DEFLT_TYPE  tparam,
fwtoken  fw_defr,
int  pfldsiz,
void(*)()  ign_fnc,
tic_hdr_t **  tic_vocab
 

Definition at line 192 of file ticvocab.c.

References tic_param::deflt_elem, tic_hdr::funct, tic_hdr::fword_defr, tic_hdr::ign_func, tic_hdr::name, tic_hdr::next, tic_hdr::pfield, tic_hdr::pfld_size, and safe_malloc().

Referenced by add_local(), add_to_current(), add_user_macro(), create_constant(), create_current_alias(), and create_tic_alias().

Here is the call graph for this function:

bool create_tic_alias char *  new_name,
char *  old_name,
tic_hdr_t **  tic_vocab
 

Definition at line 320 of file ticvocab.c.

References add_tic_entry(), tic_param::deflt_elem, tic_hdr::funct, tic_hdr::fword_defr, tic_hdr::ign_func, lookup_tic_entry(), and tic_hdr::pfield.

Referenced by create_core_alias(), create_current_alias(), create_local_alias(), and create_tokz_esc_alias().

Here is the call graph for this function:

bool exists_in_tic_vocab char *  tname,
tic_hdr_t tic_vocab
 

Definition at line 268 of file ticvocab.c.

References lookup_tic_entry().

Referenced by exists_as_local(), exists_in_core(), and exists_in_tokz_esc().

Here is the call graph for this function:

bool handle_tic_vocab char *  tname,
tic_hdr_t tic_vocab
 

Definition at line 366 of file ticvocab.c.

References tic_hdr::funct, lookup_tic_entry(), and tic_hdr::pfield.

Referenced by emit_token(), handle_core_word(), handle_current(), handle_local(), and handle_tokz_esc().

Here is the call graph for this function:

void init_tic_vocab tic_hdr_t tic_vocab_tbl,
int  max_indx,
tic_hdr_t **  tic_vocab_ptr
 

Definition at line 141 of file ticvocab.c.

References tic_hdr::next.

Referenced by init_conditionals_vocab(), init_dictionary(), init_macros(), and init_tokz_esc_vocab().

tic_hdr_t* lookup_tic_entry char *  tname,
tic_hdr_t tic_vocab
 

Definition at line 237 of file ticvocab.c.

References tic_hdr::name, and tic_hdr::next.

Referenced by create_tic_alias(), exists_in_ancestor(), exists_in_tic_vocab(), handle_tic_vocab(), lookup_core_word(), lookup_current(), lookup_in_dev_node(), lookup_local(), lookup_token(), and lookup_tokz_esc().

void reset_tic_vocab tic_hdr_t **  tic_vocab,
tic_hdr_t reset_position
 

Definition at line 409 of file ticvocab.c.

References tic_hdr::next.

Referenced by delete_device_vocab(), forget_locals(), reset_normal_vocabs(), and reset_tokz_esc().


Variable Documentation

tic_hdr_t* tic_found
 

Definition at line 108 of file ticvocab.c.

Referenced by eval_mac_string(), ignore_one_word(), and tokenize_one_word().


Generated on Fri Aug 18 14:05:12 2006 for Toke1.0 by  doxygen 1.4.4