NAPA Compiler V4.50
Author: Yves Leduc, yves.leduc.be@gmail.com
|
Go to the source code of this file.
Macros | |
#define | EXTERN extern |
#define | METAPHONE_MAX 10 /* NAPA node and variable names could be long! */ |
#define | METAPHONE_VOWEL(x) |
#define | METAPHONE_SAME(x) |
#define | METAPHONE_VARSON(x) |
#define | METAPHONE_FRONTV(x) |
#define | METAPHONE_NOGHF(x) |
Functions | |
void | process_instruction_error (const char *instr) |
void | process_node_kind_error (const char *kind) |
void | process_node_error (const char *tok1) |
void | process_variable_error (const char *tok1) |
void | process_record_error (const char *tok1) |
void | process_array_error (const char *tok1) |
long | metaphone_strcmp (const char *word1, const char *word2) |
void | metaphone (const char *word_in, char *word_out) |
long | damerau_levenshtein_strcmp (const char *word1, const char *word2) |
long | damerau_levenshtein (const char *s, const char *t) |
#define METAPHONE_FRONTV | ( | x | ) |
Definition at line 50 of file mp.c.
Referenced by metaphone().
#define METAPHONE_MAX 10 /* NAPA node and variable names could be long! */ |
Definition at line 45 of file mp.c.
Referenced by metaphone(), and metaphone_strcmp().
#define METAPHONE_NOGHF | ( | x | ) |
Definition at line 51 of file mp.c.
Referenced by metaphone().
#define METAPHONE_SAME | ( | x | ) |
Definition at line 48 of file mp.c.
Referenced by metaphone().
#define METAPHONE_VARSON | ( | x | ) |
Definition at line 49 of file mp.c.
Referenced by metaphone().
#define METAPHONE_VOWEL | ( | x | ) |
Definition at line 47 of file mp.c.
Referenced by metaphone().
long damerau_levenshtein | ( | const char * | s, |
const char * | t ) |
Definition at line 717 of file mp.c.
References LENGTH, MAX, and MIN.
Referenced by damerau_levenshtein_strcmp().
long damerau_levenshtein_strcmp | ( | const char * | word1, |
const char * | word2 ) |
Definition at line 710 of file mp.c.
References damerau_levenshtein(), and LENGTH.
Referenced by process_array_error(), process_instruction_error(), process_node_error(), process_node_kind_error(), process_record_error(), and process_variable_error().
void metaphone | ( | const char * | word_in, |
char * | word_out ) |
Definition at line 497 of file mp.c.
References METAPHONE_FRONTV, METAPHONE_MAX, METAPHONE_NOGHF, METAPHONE_SAME, METAPHONE_VARSON, METAPHONE_VOWEL, and STRLENGTH.
Referenced by metaphone_strcmp().
long metaphone_strcmp | ( | const char * | word1, |
const char * | word2 ) |
Definition at line 488 of file mp.c.
References LENGTH, metaphone(), and METAPHONE_MAX.
Referenced by process_array_error(), process_instruction_error(), process_node_error(), process_node_kind_error(), process_record_error(), and process_variable_error().
void process_array_error | ( | const char * | tok1 | ) |
Definition at line 441 of file mp.c.
References Array_List, damerau_levenshtein_strcmp(), metaphone_strcmp(), Num_Arrays, STDERR, STRLENGTH, and upper_to_lower().
Referenced by get_array(), and syntax_nodes().
void process_instruction_error | ( | const char * | instr | ) |
Definition at line 56 of file mp.c.
References damerau_levenshtein_strcmp(), metaphone_strcmp(), STDERR, STRLENGTH, and upper_to_lower().
Referenced by line_parsing().
void process_node_error | ( | const char * | tok1 | ) |
Definition at line 259 of file mp.c.
References damerau_levenshtein_strcmp(), metaphone_strcmp(), Node_List, Num_Nodes, STDERR, STRLENGTH, and upper_to_lower().
Referenced by build_output(), check_syntax(), collect_export_definitions(), create_automatic_node(), declaration_type_A(), get_node(), inject_nodes(), print_algebra(), print_C_code_banner_b(), print_test(), print_usertool(), process_aliases(), redefine_node_segments(), reset_user_variables(), stuck_nodes(), and syntax_nodes().
void process_node_kind_error | ( | const char * | kind | ) |
Definition at line 132 of file mp.c.
References damerau_levenshtein_strcmp(), metaphone_strcmp(), STDERR, STRLENGTH, and upper_to_lower().
Referenced by get_node().
void process_record_error | ( | const char * | tok1 | ) |
Definition at line 403 of file mp.c.
References damerau_levenshtein_strcmp(), metaphone_strcmp(), Num_Records, Record_List, STDERR, STRLENGTH, and upper_to_lower().
Referenced by syntax_records().
void process_variable_error | ( | const char * | tok1 | ) |
Definition at line 331 of file mp.c.
References damerau_levenshtein_strcmp(), metaphone_strcmp(), Num_Vars, STDERR, STRLENGTH, upper_to_lower(), and Var_List.
Referenced by build_input(), build_output(), build_update(), check_syntax(), collect_export_definitions(), declaration_type_A(), expand_update_definitions(), get_array(), print_C_code_banner_b(), process_aliases(), reset_arrays_function(), and syntax_records().