C:/Users/Dennis/src/lang/Life_start/Life/life-1.02/source/token.h File Reference

Go to the source code of this file.

Data Structures

struct  wl_parse_block

Defines

#define STREAM   "stream"
#define INPUT_FILE_NAME   "input_file_name"
#define LINE_COUNT   "line_count"
#define START_OF_LINE   "start_of_line"
#define SAVED_CHAR   "saved_char"
#define OLD_SAVED_CHAR   "old_saved_char"
#define SAVED_PSI_TERM   "saved_psi_term"
#define OLD_SAVED_PSI_TERM   "old_saved_psi_term"
#define EOF_FLAG   "eof_flag"
#define CURRENT_MODULE   "current_module"

Typedefs

typedef struct wl_parse_blockptr_parse_block
typedef struct wl_parse_block parse_block

Functions

void psi_term_error ()
void stdin_cleareof ()
void begin_terminal_io ()
void end_terminal_io ()
char * expand_file_name ()
long open_input_file ()
long open_output_file ()
long read_char ()
long read_line ()
void read_token ()
void read_token_b ()
void put_back_char ()
void put_back_token ()
void save_state ()
void restore_state ()
void new_state ()
GENERIC get_attr ()
void heap_add_int_attr ()
void heap_mod_int_attr ()
void heap_add_str_attr ()
void heap_mod_str_attr ()
void heap_add_psi_attr ()
void stack_add_int_attr ()
void stack_add_str_attr ()
void stack_add_psi_attr ()
FILE * get_stream ()
void save_parse_state ()
void restore_parse_state ()
void init_parse_state ()

Variables

long stdin_terminal
long var_occurred
long line_count
long start_of_line
long saved_char
long old_saved_char
ptr_psi_term saved_psi_term
ptr_psi_term old_saved_psi_term
long eof_flag
FILE * input_stream
ptr_psi_term input_state
ptr_psi_term stdin_state
long stringparse
char * stringinput


Define Documentation

#define CURRENT_MODULE   "current_module"

Definition at line 52 of file token.h.

Referenced by load_aim(), and new_state().

#define EOF_FLAG   "eof_flag"

Definition at line 51 of file token.h.

Referenced by new_state(), restore_state(), and save_state().

#define INPUT_FILE_NAME   "input_file_name"

Definition at line 44 of file token.h.

Referenced by new_state(), restore_state(), and save_state().

#define LINE_COUNT   "line_count"

Definition at line 45 of file token.h.

Referenced by new_state(), restore_state(), and save_state().

#define OLD_SAVED_CHAR   "old_saved_char"

Definition at line 48 of file token.h.

Referenced by new_state(), restore_state(), and save_state().

#define OLD_SAVED_PSI_TERM   "old_saved_psi_term"

Definition at line 50 of file token.h.

Referenced by new_state(), restore_state(), and save_state().

#define SAVED_CHAR   "saved_char"

Definition at line 47 of file token.h.

Referenced by new_state(), restore_state(), and save_state().

#define SAVED_PSI_TERM   "saved_psi_term"

Definition at line 49 of file token.h.

Referenced by new_state(), restore_state(), and save_state().

#define START_OF_LINE   "start_of_line"

Definition at line 46 of file token.h.

Referenced by new_state(), restore_state(), and save_state().

#define STREAM   "stream"

Definition at line 43 of file token.h.

Referenced by c_close(), get_stream(), new_state(), restore_state(), and save_state().


Typedef Documentation

typedef struct wl_parse_block parse_block

typedef struct wl_parse_block* ptr_parse_block

Definition at line 77 of file token.h.


Function Documentation

void begin_terminal_io (  ) 

Definition at line 454 of file token.c.

References inchange, input_stream, open_input_file(), out, outchange, and output_stream.

Referenced by main(), WFInit(), and what_next_aim().

void end_terminal_io (  ) 

Definition at line 475 of file token.c.

References inchange, NULL, out, outchange, output_stream, and restore_state().

Referenced by main(), and what_next_aim().

char* expand_file_name (  ) 

GENERIC get_attr (  ) 

FILE* get_stream (  ) 

void heap_add_int_attr (  ) 

void heap_add_psi_attr (  ) 

void heap_add_str_attr (  ) 

void heap_mod_int_attr (  ) 

void heap_mod_str_attr (  ) 

void init_parse_state (  ) 

Definition at line 425 of file token.c.

References eof_flag, FALSE, line_count, NULL, old_saved_char, saved_char, start_of_line, stringparse, and TRUE.

Referenced by c_parse(), open_input_file(), and WFInput().

void new_state (  ) 

long open_input_file (  ) 

long open_output_file (  ) 

void psi_term_error (  ) 

Definition at line 822 of file token.c.

References FALSE, input_file_name, parse_ok, perr_i(), perr_s(), and psi_term_line_number.

Referenced by parse_list(), and push().

void put_back_char (  ) 

void put_back_token (  ) 

long read_char (  ) 

Definition at line 746 of file token.c.

References EOLN, FALSE, Infoline, input_stream, line_count, old_saved_char, prompt, saved_char, start_of_line, stringinput, stringparse, trace_input, and TRUE.

Referenced by c_get(), handle_interrupt(), main(), parse(), read_comment(), read_name(), read_number(), read_string(), what_next_aim(), and yes_or_no().

long read_line (  ) 

void read_token (  ) 

void read_token_b (  ) 

void restore_parse_state (  ) 

void restore_state (  ) 

void save_parse_state (  ) 

void save_state (  ) 

void stack_add_int_attr (  ) 

void stack_add_psi_attr (  ) 

void stack_add_str_attr (  ) 

void stdin_cleareof (  ) 

Definition at line 86 of file token.c.

References eof_flag, FALSE, NULL, old_saved_char, saved_char, start_of_line, stdin_terminal, and TRUE.

Referenced by abort_life(), fail_all(), handle_interrupt(), main(), WFInit(), and what_next_aim().


Variable Documentation

long eof_flag

Definition at line 57 of file token.c.

Referenced by c_get(), c_read(), init_parse_state(), new_state(), restore_parse_state(), restore_state(), save_parse_state(), save_state(), and stdin_cleareof().

ptr_psi_term input_state

Definition at line 60 of file token.c.

Referenced by c_load(), c_open_in(), c_set_input(), check(), handle_interrupt(), init_io(), load_aim(), main(), WFInit(), and yes_or_no().

FILE* input_stream

Definition at line 49 of file token.c.

long line_count

Definition at line 51 of file token.c.

long old_saved_char

Definition at line 54 of file token.c.

Referenced by init_parse_state(), new_state(), put_back_char(), read_char(), restore_parse_state(), restore_state(), save_parse_state(), save_state(), and stdin_cleareof().

ptr_psi_term old_saved_psi_term

Definition at line 56 of file token.c.

Referenced by check().

long saved_char

Definition at line 53 of file token.c.

Referenced by init_parse_state(), new_state(), parse(), put_back_char(), read_char(), restore_parse_state(), restore_state(), save_parse_state(), save_state(), and stdin_cleareof().

ptr_psi_term saved_psi_term

Definition at line 55 of file token.c.

Referenced by check(), and parse().

long start_of_line

Definition at line 52 of file token.c.

Referenced by init_parse_state(), new_state(), read_char(), restore_parse_state(), restore_state(), save_parse_state(), save_state(), and stdin_cleareof().

ptr_psi_term stdin_state

Definition at line 63 of file token.c.

Referenced by check(), and init_io().

long stdin_terminal

Definition at line 34 of file token.c.

Referenced by init_io(), and stdin_cleareof().

char* stringinput

Definition at line 38 of file token.c.

Referenced by c_parse(), read_char(), and WFInput().

long stringparse

Definition at line 37 of file token.c.

Referenced by c_parse(), init_parse_state(), parse(), parse_list(), read_char(), read_life_form(), read_psi_term(), read_string_error(), and WFInput().

long var_occurred

Definition at line 25 of file token.c.

Referenced by abort_life(), c_parse(), load_aim(), main(), read_name(), WFInit(), WFInput(), and what_next_aim().


Generated on Sat Jan 26 08:48:09 2008 for WildLife by  doxygen 1.5.4