Expression tokens print correctly.
[Jack-Compiler.git] / test.h
blob1e0f9deafc52c0a505aefde96b362be4be2b2118
1 #ifndef TEST_H_
2 #define TEST_H_
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();
32 int test_no_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();
46 int test_all();
48 #endif