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

scanner.h File Reference

#include "types.h"
#include "ticvocab.h"

Include dependency graph for scanner.h:

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

Go to the source code of this file.

Defines

#define FUNC_CPY_BUF_SIZE   40

Functions

void init_scanner (void)
void exit_scanner (void)
void init_scan_state (void)
void fcode_ender (void)
bool skip_until (char lim_ch)
void push_source (void(*res_func)(), _PTR res_parm, bool is_f_chg)
signed long get_word (void)
bool get_word_in_line (char *func_nam)
bool get_rest_of_line (void)
void warn_unterm (int severity, char *something, unsigned int saved_lineno)
void warn_if_multiline (char *something, unsigned int start_lineno)
void user_message (tic_param_t pfield)
void skip_user_message (tic_param_t pfield)
bool get_number (long *result)
void eval_string (char *inp_bufr)
void process_remark (tic_param_t pfield)
bool filter_comments (u8 *inword)
bool as_a_what (fwtoken definer, char *as_what)
tic_hdr_tlookup_word (char *stat_name, char **where_pt1, char **where_pt2)
bool word_exists (char *stat_name, char **where_pt1, char **where_pt2)
void warn_if_duplicate (char *stat_name)
void trace_creation (fwtoken definer, char *nu_name)
void tokenize_one_word (signed long wlen)
void check_name_length (signed long wlen)
void tokenize (void)

Variables

u8 * statbuf
u8 base
bool pci_is_last_image
u16 pci_image_rev
u16 pci_vpd
bool offs16
bool in_tokz_esc
bool incolon
bool haveend
int do_loop_depth
int lastcolon
char * last_colon_defname
char * last_colon_filename
unsigned int last_colon_lineno
bool report_multiline
unsigned int last_colon_abs_token_no


Define Documentation

#define FUNC_CPY_BUF_SIZE   40
 

Definition at line 120 of file scanner.h.

Referenced by base_val(), get_token(), and get_word_in_line().


Function Documentation

bool as_a_what fwtoken  definer,
char *  as_what
 

Definition at line 2538 of file scanner.c.

References ALIAS, and definer_name().

Referenced by exists_in_ancestor(), lookup_word(), and trace_creation().

Here is the call graph for this function:

void check_name_length signed long  wlen  ) 
 

Definition at line 2423 of file scanner.c.

References FLAG_HEADERLESS, hdr_flag, in_tokz_esc, INFO, TKERROR, tokenization_error(), and WARNING.

Referenced by create_constant(), and create_word().

Here is the call graph for this function:

void eval_string char *  inp_bufr  ) 
 

Definition at line 3943 of file scanner.c.

References init_inbuf(), and push_source().

Referenced by activate_locals(), eval_builtin_mac(), eval_user_symbol(), finish_locals(), and invoke_local().

Here is the call graph for this function:

void exit_scanner void   ) 
 

Definition at line 1895 of file scanner.c.

References statbuf.

Referenced by main().

void fcode_ender void   ) 
 

Definition at line 3741 of file scanner.c.

References current_device_node, default_top_dev_ifile_name, fcode_end_err_check(), fcode_started, finish_fcodehdr(), haveend, device_node::ifile_name, iname, incolon, is_instance, last_colon_filename, last_colon_lineno, device_node::line_no, reset_normal_vocabs(), resume_device_scope(), scope_is_global, TKERROR, tokenization_error(), unresolved_instance(), warn_unterm(), and WARNING.

Referenced by finish_fcodehdr(), and handle_internal().

Here is the call graph for this function:

bool filter_comments u8 *  inword  ) 
 

Definition at line 5397 of file scanner.c.

References ALLOW_MULTI_LINE, tic_hdr::funct, tic_param::fw_token, handle_internal(), lookup_word(), tic_hdr::pfield, and process_remark().

Referenced by gather_locals().

Here is the call graph for this function:

bool get_number long *  result  ) 
 

Definition at line 1693 of file scanner.c.

References base, iname, lineno, parse_number(), and statbuf.

Referenced by gather_locals(), and handle_number().

Here is the call graph for this function:

bool get_rest_of_line void   ) 
 

Definition at line 745 of file scanner.c.

References abs_token_no, get_until(), lineno, pc, and skip_ws().

Referenced by add_user_macro(), and skip_user_macro().

Here is the call graph for this function:

signed long get_word void   ) 
 

Definition at line 595 of file scanner.c.

References abs_token_no, end, FATAL, GET_BUF_MAX, iname, lineno, need_to_pop_source, pc, pop_source(), skip_ws(), statbuf, and tokenization_error().

Referenced by assign_local(), conditionally_tokenize(), create_constant(), create_word(), finish_locals(), gather_locals(), get_word_in_line(), skip_a_word(), skip_string(), tokenize(), and validate_to_target().

Here is the call graph for this function:

bool get_word_in_line char *  func_nam  ) 
 

Definition at line 681 of file scanner.c.

References abs_token_no, FUNC_CPY_BUF_SIZE, get_word(), lineno, pc, TKERROR, and tokenization_error().

Referenced by add_user_macro(), base_val(), conditional_word_in_line(), create_alias(), get_token(), handle_internal(), skip_a_word_in_line(), skip_two_words_in_line(), and skip_user_macro().

Here is the call graph for this function:

void init_scan_state void   ) 
 

Definition at line 1990 of file scanner.c.

References base, dev_change_instance_warning, first_fc_starter, FLAG_HEADERLESS, incolon, instance_definer_gap, instance_filename, is_instance, last_colon_filename, need_to_pop_source, pci_is_last_image, reset_fcode_ranges(), ret_stk_depth, and set_hdr_flag().

Referenced by main().

Here is the call graph for this function:

void init_scanner void   ) 
 

Definition at line 1883 of file scanner.c.

References GET_BUF_MAX, safe_malloc(), and statbuf.

Referenced by main().

Here is the call graph for this function:

tic_hdr_t* lookup_word char *  stat_name,
char **  where_pt1,
char **  where_pt2
 

Definition at line 2644 of file scanner.c.

References as_a_what(), current_device_node, tic_hdr::fword_defr, ibm_locals, in_tkz_esc_mode, in_tokz_esc, in_what_node(), lookup_core_word(), lookup_in_dev_node(), lookup_local(), lookup_shared_word(), and lookup_tokz_esc().

Referenced by exists_in_current(), filter_comments(), ignore_one_word(), tokenize_one_word(), and word_exists().

Here is the call graph for this function:

void process_remark tic_param_t  pfield  ) 
 

Definition at line 5336 of file scanner.c.

References tic_param::deflt_elem, get_until(), iname, lineno, pc, skip_until(), statbuf, tokenization_error(), warn_if_multiline(), warn_unterm(), and WARNING.

Referenced by filter_comments().

Here is the call graph for this function:

void push_source void(*)()  res_func,
_PTR  res_parm,
bool  is_f_chg
 

Definition at line 394 of file scanner.c.

References end, iname, lineno, source_state::next, source_state::old_end, source_state::old_iname, source_state::old_lineno, source_state::old_pc, source_state::old_start, source_state::pause_before_pop, pc, report_multiline, source_state::resump_func, source_state::resump_param, safe_malloc(), source_state::sav_rep_multlin, and start.

Referenced by eval_mac_string(), eval_string(), and handle_internal().

Here is the call graph for this function:

bool skip_until char  lim_ch  ) 
 

Definition at line 210 of file scanner.c.

References end, lineno, and pc.

Referenced by declare_locals(), get_until(), process_remark(), and string_remark().

void skip_user_message tic_param_t  pfield  ) 
 

Definition at line 1658 of file scanner.c.

References tic_param::deflt_elem, and handle_user_message().

Here is the call graph for this function:

void tokenize void   ) 
 

Definition at line 5523 of file scanner.c.

References get_word(), and tokenize_one_word().

Referenced by main().

Here is the call graph for this function:

void tokenize_one_word signed long  wlen  ) 
 

Definition at line 5484 of file scanner.c.

References tic_hdr::funct, handle_number(), lookup_word(), tic_hdr::pfield, statbuf, tic_found, and tokenized_word_error().

Referenced by conditionally_tokenize(), finish_locals(), and tokenize().

Here is the call graph for this function:

void trace_creation fwtoken  definer,
char *  nu_name
 

Definition at line 3107 of file scanner.c.

References as_a_what(), current_device_node, in_last_colon(), in_tkz_esc_mode, in_tokz_esc, in_what_node(), INFO, is_on_trace_list(), LOCAL_VAL, scope_is_global, show_node_start(), tokenization_error(), and verbose.

Referenced by add_local(), add_user_macro(), create_constant(), create_word(), and handle_internal().

Here is the call graph for this function:

void user_message tic_param_t  pfield  ) 
 

Definition at line 1627 of file scanner.c.

References tic_param::deflt_elem, and handle_user_message().

Here is the call graph for this function:

void warn_if_duplicate char *  stat_name  ) 
 

Definition at line 2800 of file scanner.c.

References do_not_overload, show_node_start(), tokenization_error(), verbose_dup_warning, WARNING, and word_exists().

Referenced by add_user_macro(), create_alias(), create_constant(), and create_word().

Here is the call graph for this function:

void warn_if_multiline char *  something,
unsigned int  start_lineno
 

Definition at line 862 of file scanner.c.

References iname, lineno, report_multiline, tokenization_error(), WARNING, and where_started().

Referenced by declare_locals(), get_string(), handle_user_message(), process_remark(), and string_err_check().

Here is the call graph for this function:

void warn_unterm int  severity,
char *  something,
unsigned int  saved_lineno
 

Definition at line 813 of file scanner.c.

References in_last_colon(), last_colon_defname, lineno, and tokenization_error().

Referenced by assign_local(), create_constant(), create_word(), declare_locals(), fcode_ender(), gather_locals(), get_string(), handle_user_message(), process_remark(), string_err_check(), string_remark(), and validate_to_target().

Here is the call graph for this function:

bool word_exists char *  stat_name,
char **  where_pt1,
char **  where_pt2
 

Definition at line 2742 of file scanner.c.

References lookup_word().

Referenced by gather_locals(), tokenized_word_error(), and warn_if_duplicate().

Here is the call graph for this function:


Variable Documentation

u8 base
 

Definition at line 70 of file scanner.c.

Referenced by base_change(), base_val(), c_string_escape(), end_tokz_esc(), enter_tokz_esc(), get_number(), and init_scan_state().

int do_loop_depth
 

Definition at line 83 of file scanner.c.

Referenced by clear_control_structs_to_limit(), handle_internal(), mark_do(), must_be_deep_in_do(), and resolve_loop().

bool haveend
 

Definition at line 82 of file scanner.c.

Referenced by fcode_ender(), finish_fcodehdr(), and init_emit().

bool in_tokz_esc
 

Definition at line 80 of file scanner.c.

Referenced by add_user_macro(), base_change(), check_name_length(), create_alias(), deliver_number(), end_tokz_esc(), enter_tokz_esc(), handle_internal(), lookup_word(), tokenized_word_error(), and trace_creation().

bool incolon
 

Definition at line 81 of file scanner.c.

Referenced by base_change(), create_alias(), error_check_locals(), fcode_ender(), finish_or_new_device(), handle_internal(), in_last_colon(), init_scan_state(), must_be_deep_in_do(), and test_in_colon().

unsigned int last_colon_abs_token_no
 

Definition at line 93 of file scanner.c.

Referenced by error_check_locals(), and handle_internal().

char* last_colon_defname
 

Definition at line 89 of file scanner.c.

Referenced by handle_internal(), in_last_colon(), and warn_unterm().

char* last_colon_filename
 

Definition at line 90 of file scanner.c.

Referenced by fcode_ender(), handle_internal(), in_last_colon(), and init_scan_state().

unsigned int last_colon_lineno
 

Definition at line 91 of file scanner.c.

Referenced by fcode_ender(), handle_internal(), and in_last_colon().

int lastcolon
 

Definition at line 86 of file scanner.c.

Referenced by error_check_locals(), and handle_internal().

bool offs16
 

Definition at line 79 of file scanner.c.

Referenced by emit_fc_offset(), emit_offset(), fcode_starter(), handle_internal(), and offset_too_large().

u16 pci_image_rev
 

Definition at line 74 of file scanner.c.

Referenced by finish_pcihdr(), and handle_internal().

bool pci_is_last_image
 

Definition at line 73 of file scanner.c.

Referenced by emit_pci_data_block(), finish_pcihdr(), handle_internal(), and init_scan_state().

u16 pci_vpd
 

Definition at line 75 of file scanner.c.

Referenced by finish_pcihdr().

bool report_multiline
 

Definition at line 92 of file scanner.c.

Referenced by declare_locals(), eval_mac_string(), handle_internal(), pop_source(), push_source(), and warn_if_multiline().

u8* statbuf
 

Definition at line 69 of file scanner.c.

Referenced by abort_quote(), add_byte_to_string(), add_user_macro(), assign_local(), base_val(), conditional_word_in_line(), conditionally_tokenize(), control_stack_size_test(), control_structure_mismatch(), create_alias(), create_constant(), create_word(), dev_vocab_control_struct_check(), encode_file(), enter_global_scope(), exit_scanner(), finish_device_vocab(), finish_pcihdr(), gather_locals(), get_fcode_from_stack(), get_number(), get_string(), get_token(), get_until(), get_word(), glob_not_allowed(), handle_internal(), handle_user_message(), init_scanner(), macro_recursion_error(), must_be_deep_in_do(), new_device_vocab(), obsolete_warning(), offset_too_large(), process_remark(), push_cstag(), resume_device_scope(), ret_stk_access_rpt(), ret_stk_balance_rpt(), skip_a_word_in_line(), skip_string(), skip_two_words_in_line(), skip_user_macro(), stackerror(), tokenize_one_word(), tokz_esc_emit_byte(), validate_to_target(), and you_are_here().


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