#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "ticvocab.h"
#include "tokzesc.h"
#include "stack.h"
#include "emit.h"
#include "stream.h"
#include "scanner.h"
#include "errhandler.h"
#include "strsubvocab.h"
#include "nextfcode.h"
Include dependency graph for tokzesc.c:
Go to the source code of this file.
Defines | |
#define | TKZESC_CONST(nam, pval) VALPARAM_TIC(nam, do_constant, pval, CONST ) |
#define | TKZ_ESC_FUNC(nam, afunc, pval, ifunc) DUALFUNC_TIC(nam, afunc, pval, ifunc, UNSPECIFIED) |
Functions | |
void | enter_tokz_esc (void) |
static void | end_tokz_esc (tic_param_t pfield) |
static void | tokz_esc_emit_byte (tic_param_t pfield) |
static bool | get_fcode_from_stack (u16 *the_num, char *the_action) |
static void | tokz_esc_next_fcode (tic_param_t pfield) |
static void | tokz_emit_fcode (tic_param_t pfield) |
static void | zero_equals (tic_param_t pfield) |
static void | tokz_esc_swap (tic_param_t pfield) |
static void | tokz_esc_two_swap (tic_param_t pfield) |
static void | tokz_esc_noop (tic_param_t pfield) |
static void | do_constant (tic_param_t pfield) |
static void | create_constant (tic_param_t pfield) |
void | init_tokz_esc_vocab (void) |
bool | handle_tokz_esc (char *tname) |
tic_hdr_t * | lookup_tokz_esc (char *name) |
bool | exists_in_tokz_esc (char *name) |
bool | create_tokz_esc_alias (char *new_name, char *old_name) |
void | reset_tokz_esc (void) |
void | pop_next_fcode (void) |
Variables | |
tic_hdr_t * | tokz_esc_vocab = NULL |
static int | saved_base |
static tic_hdr_t | tokz_esc_vocab_tbl [] |
static const tic_hdr_t * | built_in_tokz_esc |
|
|
|
|
|
Definition at line 479 of file tokzesc.c. References add_tic_entry(), check_name_length(), CONST, do_constant(), dpop(), get_word(), lineno, statbuf, TIC_P_DEFLT_TYPE, TKERROR, trace_creation(), warn_if_duplicate(), and warn_unterm(). Here is the call graph for this function: |
|
Definition at line 710 of file tokzesc.c. References create_tic_alias(). Referenced by create_alias(). Here is the call graph for this function: |
|
Definition at line 430 of file tokzesc.c. References dpush(), and tic_param::long_val. Referenced by create_constant(). Here is the call graph for this function: |
|
Definition at line 181 of file tokzesc.c. References base, in_tokz_esc, and saved_base. |
|
Definition at line 160 of file tokzesc.c. References base, in_tokz_esc, and saved_base. Referenced by handle_internal(). |
|
Definition at line 678 of file tokzesc.c. References exists_in_tic_vocab(). Here is the call graph for this function: |
|
Definition at line 241 of file tokzesc.c. References dpop(), statbuf, TKERROR, tokenization_error(), and WARNING. Referenced by tokz_emit_fcode(), and tokz_esc_next_fcode(). Here is the call graph for this function: |
|
Definition at line 630 of file tokzesc.c. References handle_tic_vocab(). Here is the call graph for this function: |
|
Definition at line 595 of file tokzesc.c. References init_tic_vocab(). Referenced by init_dictionary(). Here is the call graph for this function: |
|
Definition at line 654 of file tokzesc.c. References lookup_tic_entry(). Referenced by lookup_word(). Here is the call graph for this function: |
|
Definition at line 767 of file tokzesc.c. References tokz_esc_next_fcode(). Referenced by handle_internal(). Here is the call graph for this function: |
|
Definition at line 741 of file tokzesc.c. References reset_tic_vocab(). Referenced by handle_internal(), and reset_vocabs(). Here is the call graph for this function: |
|
Definition at line 321 of file tokzesc.c. References emit_fcode(), get_fcode_from_stack(), INFO, and tokenization_error(). Here is the call graph for this function: |
|
Definition at line 199 of file tokzesc.c. References dpop(), statbuf, tokenization_error(), user_emit_byte(), and WARNING. Here is the call graph for this function: |
|
Definition at line 282 of file tokzesc.c. References get_fcode_from_stack(), INFO, nextfcode, set_next_fcode(), and tokenization_error(). Referenced by pop_next_fcode(). Here is the call graph for this function: |
|
|
|
Definition at line 358 of file tokzesc.c. References swap(). Here is the call graph for this function: |
|
Definition at line 372 of file tokzesc.c. References two_swap(). Here is the call graph for this function: |
|
Definition at line 344 of file tokzesc.c. References dstack. |
|
Initial value: &tokz_esc_vocab_tbl[(sizeof(tokz_esc_vocab_tbl)/sizeof(tic_hdr_t))-1] |
|
Definition at line 158 of file tokzesc.c. Referenced by end_tokz_esc(), and enter_tokz_esc(). |
|
|
|
Initial value: { NO_PARAM_IGN( "]tokenizer" , end_tokz_esc ) , NO_PARAM_IGN( "f]" , end_tokz_esc ) , NO_PARAM_IGN( "]f" , end_tokz_esc ) , NO_PARAM_TIC( "emit-byte" , tokz_esc_emit_byte ) , NO_PARAM_TIC( "next-fcode" , tokz_esc_next_fcode ) , NO_PARAM_TIC( "emit-fcode" , tokz_emit_fcode ) , NO_PARAM_TIC( "constant" , create_constant ) , NO_PARAM_TIC( "0=" , zero_equals ) , NO_PARAM_TIC( "swap" , tokz_esc_swap ) , NO_PARAM_TIC( "2swap" , tokz_esc_two_swap ) , NO_PARAM_TIC( "noop" , tokz_esc_noop ) , TKZESC_CONST( "false" , 0 ) , TKZESC_CONST( "true" , -1 ) , TKZ_ESC_FUNC( ".(" , user_message, ')', skip_user_message ) , TKZ_ESC_FUNC( ".\"" , user_message, '"', skip_user_message ) , } |