Go to the source code of this file.
Functions | |
int | bad_psi_term (ptr_psi_term t) |
void | show (long limit) |
void | push (psi_term tok, long prec, long op) |
long | pop (ptr_psi_term tok, long *op) |
long | look () |
long | precedence (psi_term tok, long typ) |
ptr_psi_term | stack_copy_psi_term (psi_term t) |
ptr_psi_term | heap_copy_psi_term (psi_term t) |
void | feature_insert (char *keystr, ptr_node *tree, ptr_psi_term psi) |
psi_term | list_nil (ptr_definition type) |
psi_term | parse_list (ptr_definition typ, char e, char s) |
psi_term | read_psi_term () |
psi_term | make_life_form (ptr_psi_term tok, ptr_psi_term arg1, ptr_psi_term arg2) |
void | crunch (long prec, long limit) |
psi_term | read_life_form (char ch1, char ch2) |
psi_term | parse (long *q) |
int bad_psi_term | ( | ptr_psi_term | t | ) |
void crunch | ( | long | prec, |
long | limit | ||
) |
Definition at line 636 of file parser.c.
References error_psi_term, FALSE, fx, look(), make_life_form(), nop, NULL, parse_ok, parser_stack_index, pop(), push(), xf, and xfx.
void feature_insert | ( | char * | keystr, |
ptr_node * | tree, | ||
ptr_psi_term | psi | ||
) |
Definition at line 225 of file parser.c.
References FEATCMP, find(), stack_copy_psi_term(), stack_insert_copystr(), and Syntaxerrorline().
ptr_psi_term heap_copy_psi_term | ( | psi_term | t | ) |
Definition at line 202 of file parser.c.
References global_time_stamp, and HEAP_ALLOC.
psi_term list_nil | ( | ptr_definition | type | ) |
Definition at line 255 of file parser.c.
References wl_psi_term::attr_list, wl_psi_term::coref, disj_nil, disjunction, FALSE, wl_psi_term::flags, nil, NULL, wl_psi_term::resid, wl_psi_term::status, wl_psi_term::type, and wl_psi_term::value_3.
long look | ( | ) |
psi_term make_life_form | ( | ptr_psi_term | tok, |
ptr_psi_term | arg1, | ||
ptr_psi_term | arg2 | ||
) |
Definition at line 546 of file parser.c.
References wl_psi_term::attr_list, wl_psi_term::coref, deref_ptr, equ_tokch, error_psi_term, FEATCMP, heap_alloc(), integer, minus_symbol, NULL, one, push_psi_ptr_value(), REAL, real, wl_psi_term::resid, stack_copy_psi_term(), stack_insert(), Syntaxerrorline(), top, two, wl_psi_term::type, and wl_psi_term::value_3.
psi_term parse | ( | long * | q | ) |
Definition at line 877 of file parser.c.
References eof, EOLN, ERROR, FACT, FALSE, final_dot, final_question, mark_nonstrict(), NULL, parse_ok, parser_stack_index, prompt, put_back_char(), QUERY, read_char(), read_life_form(), read_token(), saved_char, saved_psi_term, stringparse, Syntaxerrorline(), TRUE, and wl_psi_term::type.
psi_term parse_list | ( | ptr_definition | typ, |
char | e, | ||
char | s | ||
) |
Definition at line 304 of file parser.c.
References wl_psi_term::attr_list, display_psi_stderr(), equ_tokc, equ_tokch, FALSE, FEATCMP, list_nil(), NULL, one, parse_ok, perr(), psi_term_error(), put_back_token(), read_life_form(), read_token(), stack_copy_psi_term(), stack_insert(), stringparse, two, and wl_psi_term::type.
long pop | ( | ptr_psi_term | tok, |
long * | op | ||
) |
Definition at line 115 of file parser.c.
References error_psi_term, FALSE, int_stack, parse_ok, parser_stack_index, and psi_term_stack.
long precedence | ( | psi_term | tok, |
long | typ | ||
) |
Definition at line 159 of file parser.c.
References wl_operator_data::next, NOP, and wl_operator_data::precedence.
void push | ( | psi_term | tok, |
long | prec, | ||
long | op | ||
) |
Definition at line 91 of file parser.c.
References int_stack, parser_stack_index, PARSER_STACK_SIZE, perr(), psi_term_error(), and psi_term_stack.
psi_term read_life_form | ( | char | ch1, |
char | ch2 | ||
) |
Definition at line 700 of file parser.c.
References wl_psi_term::attr_list, bad_psi_term(), crunch(), equ_tokc, equ_tokch, error_psi_term, FALSE, fx, fy, line_count, MAX_PRECEDENCE, nop, NOP, parse_ok, parser_stack_index, pop(), precedence(), push(), put_back_token(), read_psi_term(), read_token(), stringparse, Syntaxerrorline(), TRUE, xf, xfx, xfy, yf, and yfx.
psi_term read_psi_term | ( | ) |
Definition at line 400 of file parser.c.
References add_module1, add_module2, add_module3, alist, apply, wl_psi_term::attr_list, bad_psi_term(), wl_keyword::combined_name, wl_psi_term::coref, current_module, disjunction, eof, equ_tok, equ_tokch, equal_types, error_psi_term, FALSE, FEATCMP, feature_insert(), find(), functor, heap_copy_string(), integer, wl_definition::keyword, wl_module::module_name, NULL, parse_list(), parse_ok, wl_keyword::private_feature, put_back_token(), quoted_string, read_life_form(), read_token(), REAL, wl_psi_term::resid, stack_copy_psi_term(), stack_insert(), stack_psi_term(), stringparse, wl_keyword::symbol, Syntaxerrorline(), TRUE, two, wl_psi_term::type, wl_psi_term::value_3, variable, and wl_const_3.
void show | ( | long | limit | ) |
Definition at line 52 of file parser.c.
References display_psi_stdout(), fx, int_stack, nop, parser_stack_index, psi_term_stack, xf, and xfx.
ptr_psi_term stack_copy_psi_term | ( | psi_term | t | ) |
Definition at line 183 of file parser.c.
References global_time_stamp, and STACK_ALLOC.