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

rhsfun.c File Reference

Go to the source code of this file.

Functions

void add_rhs_function (Symbol *name, rhs_function_routine f, int num_args_expected, bool can_be_rhs_value, bool can_be_stand_alone_action)
rhs_functionlookup_rhs_function (Symbol *name)
void remove_rhs_function (Symbol *name)
Symboluser_select_rhsfun (list *args)
Symbolwrite_rhs_function_code (list *args)
Symbolcrlf_rhs_function_code (list *args)
Symbolhalt_rhs_function_code (list *args)
Symbolinterrupt_rhs_function_code (list *args)
Symbolmake_constant_symbol_rhs_function_code (list *args)
Symboltimestamp_rhs_function_code (list *args)
Symbolaccept_rhs_function_code (list *args)
Symbolcapitalize_symbol_rhs_function_code (list *args)
Symbolifeq_rhs_function_code (list *args)
Symbolstrlen_rhs_function_code (list *args)
Symboldont_learn_rhs_function_code (list *args)
Symbolforce_learn_rhs_function_code (list *args)
void init_built_in_rhs_functions (void)
void remove_built_in_rhs_functions (void)

Variables

rhs_functionavailable_rhs_functions = NIL
char * RHS_interrupt_msg = "*** RHS Function Interrupt ***"


Function Documentation

Symbol* accept_rhs_function_code list args  ) 
 

Definition at line 342 of file rhsfun.c.

References get_next_io_symbol_from_text_input_line(), list, release_io_symbol(), and Symbol.

Referenced by init_built_in_rhs_functions().

void add_rhs_function Symbol name,
rhs_function_routine  f,
int  num_args_expected,
bool  can_be_rhs_value,
bool  can_be_stand_alone_action
 

Definition at line 70 of file rhsfun.c.

References allocate_memory(), available_rhs_functions, rhs_function_struct::name, rhs_function_struct::next, print(), print_with_symbols(), rhs_function, rhs_function_routine, and Symbol.

Referenced by add_bot_rhs_functions(), init_built_in_rhs_functions(), and init_built_in_rhs_math_functions().

Symbol* capitalize_symbol_rhs_function_code list args  ) 
 

Definition at line 372 of file rhsfun.c.

References cons_struct::first, list, make_sym_constant(), print(), print_with_symbols(), cons_struct::rest, Symbol, and symbol_to_string().

Referenced by init_built_in_rhs_functions().

Symbol* crlf_rhs_function_code list args  ) 
 

Definition at line 202 of file rhsfun.c.

References list, make_sym_constant(), and Symbol.

Referenced by init_built_in_rhs_functions().

Symbol* dont_learn_rhs_function_code list args  ) 
 

Definition at line 514 of file rhsfun.c.

References cons_struct::first, symbol_union::id, identifier_struct::isa_goal, list, member_of_list(), print(), print_with_symbols(), cons_struct::rest, and Symbol.

Referenced by init_built_in_rhs_functions().

Symbol* force_learn_rhs_function_code list args  ) 
 

Definition at line 551 of file rhsfun.c.

References cons_struct::first, symbol_union::id, identifier_struct::isa_goal, list, member_of_list(), print(), print_with_symbols(), cons_struct::rest, and Symbol.

Referenced by init_built_in_rhs_functions().

Symbol* halt_rhs_function_code list args  ) 
 

Definition at line 214 of file rhsfun.c.

References list, and Symbol.

Referenced by init_built_in_rhs_functions().

Symbol* ifeq_rhs_function_code list args  ) 
 

Definition at line 465 of file rhsfun.c.

References cons, cons_struct::first, list, print(), cons_struct::rest, and Symbol.

Referenced by init_built_in_rhs_functions().

void init_built_in_rhs_functions void   ) 
 

Definition at line 587 of file rhsfun.c.

References accept_rhs_function_code(), add_rhs_function(), capitalize_symbol_rhs_function_code(), crlf_rhs_function_code(), dont_learn_rhs_function_code(), force_learn_rhs_function_code(), halt_rhs_function_code(), ifeq_rhs_function_code(), init_built_in_rhs_math_functions(), interrupt_rhs_function_code(), make_constant_symbol_rhs_function_code(), make_sym_constant(), strlen_rhs_function_code(), timestamp_rhs_function_code(), and write_rhs_function_code().

Referenced by init_soar_agent().

Symbol* interrupt_rhs_function_code list args  ) 
 

Definition at line 233 of file rhsfun.c.

References agent, all_soar_agents, cons, cons_struct::first, list, agent_struct::reason_for_stopping, cons_struct::rest, RHS_interrupt_msg, agent_struct::stop_soar, Symbol, and symbol_to_string().

Referenced by init_built_in_rhs_functions().

rhs_function* lookup_rhs_function Symbol name  ) 
 

Definition at line 97 of file rhsfun.c.

References available_rhs_functions, rhs_function_struct::name, rhs_function_struct::next, rhs_function, and Symbol.

Referenced by parse_function_call_after_lparen(), and reteload_rhs_value().

Symbol* make_constant_symbol_rhs_function_code list args  ) 
 

Definition at line 273 of file rhsfun.c.

References cons, find_sym_constant(), cons_struct::first, generate_new_sym_constant(), list, make_sym_constant(), cons_struct::rest, Symbol, and symbol_to_string().

Referenced by init_built_in_rhs_functions().

void remove_built_in_rhs_functions void   ) 
 

Definition at line 609 of file rhsfun.c.

References make_sym_constant(), remove_built_in_rhs_math_functions(), and remove_rhs_function().

Referenced by soar_default_destroy_agent_procedure().

void remove_rhs_function Symbol name  ) 
 

Definition at line 107 of file rhsfun.c.

References available_rhs_functions, free_memory(), rhs_function_struct::next, print_with_symbols(), rhs_function, and Symbol.

Referenced by remove_bot_rhs_functions(), remove_built_in_rhs_functions(), and remove_built_in_rhs_math_functions().

Symbol* strlen_rhs_function_code list args  ) 
 

Definition at line 491 of file rhsfun.c.

References cons_struct::first, list, make_int_constant(), Symbol, and symbol_to_string().

Referenced by init_built_in_rhs_functions().

Symbol* timestamp_rhs_function_code list args  ) 
 

Definition at line 303 of file rhsfun.c.

References list, make_sym_constant(), and Symbol.

Referenced by init_built_in_rhs_functions().

Symbol* user_select_rhsfun list args  ) 
 

Definition at line 146 of file rhsfun.c.

References cons_struct::first, list, sym_constant_struct::name, print(), symbol_union::sc, set_sysparam(), and Symbol.

Symbol* write_rhs_function_code list args  ) 
 

Definition at line 181 of file rhsfun.c.

References cons_struct::first, list, print_string(), cons_struct::rest, Symbol, and symbol_to_string().

Referenced by init_built_in_rhs_functions().


Variable Documentation

rhs_function* available_rhs_functions = NIL
 

Definition at line 68 of file rhsfun.c.

Referenced by add_rhs_function(), lookup_rhs_function(), and remove_rhs_function().

char* RHS_interrupt_msg = "*** RHS Function Interrupt ***"
 

Definition at line 231 of file rhsfun.c.

Referenced by interrupt_rhs_function_code().


Generated on Thu Dec 11 13:00:29 2003 for Soar Kernel by doxygen 1.3.5