4 extern char *keywords
[];
6 /* These are the unit tests for the compiler. */
8 /* Prints standardized message about the type of test */
9 void test_msg_start(char *msg
);
11 /* Prints results of test message - exits if failed */
12 void test_msg_end(int pass
);
14 int test_c_comments();
16 int test_nested_c_comments();
18 int test_cpp_comments();
20 int test_nested_cpp_comments();
22 int test_literal_strings();
24 int test_symbol_recog();
26 int test_keyword_recog();
28 int test_token_type();
30 int test_end_of_code();
34 int test_parse_expression();
36 int test_parse_expression_keyword();
38 int test_parse_expression_nested_array();
40 int test_parse_expression_nested_sub();
42 int test_parse_expression_class_sub();
44 int test_parse_expression_list();