64 |
void asm_parser_init(FILE *); |
void asm_parser_init(FILE *); |
65 |
|
|
66 |
/* executing procedures */ |
/* executing procedures */ |
67 |
int clex(void); |
int c_lex(void); |
68 |
int cpplex(void); |
int cpp_lex(void); |
69 |
int javalex(void); |
int java_lex(void); |
70 |
int phplex(void); |
int php_lex(void); |
71 |
int asmlex(void); |
int asm_lex(void); |
72 |
|
|
73 |
/* |
/* |
74 |
* The first entry is default language. |
* The first entry is default language. |
75 |
*/ |
*/ |
76 |
struct lang_entry lang_switch[] = { |
struct lang_entry lang_switch[] = { |
77 |
/* lang_name init_proc exec_proc */ |
/* lang_name init_proc exec_proc */ |
78 |
{"c", c_parser_init, clex}, /* DEFAULT */ |
{"c", c_parser_init, c_lex}, /* DEFAULT */ |
79 |
{"yacc", yacc_parser_init, clex}, |
{"yacc", yacc_parser_init, c_lex}, |
80 |
{"cpp", cpp_parser_init, cpplex}, |
{"cpp", cpp_parser_init, cpp_lex}, |
81 |
{"java", java_parser_init, javalex}, |
{"java", java_parser_init, java_lex}, |
82 |
{"php", php_parser_init, phplex}, |
{"php", php_parser_init, php_lex}, |
83 |
{"asm", asm_parser_init, asmlex} |
{"asm", asm_parser_init, asm_lex} |
84 |
}; |
}; |
85 |
#define DEFAULT_ENTRY &lang_switch[0] |
#define DEFAULT_ENTRY &lang_switch[0] |
86 |
|
|