Added tokens to fit specification.
[Jack-Compiler.git] / test.h
bloba384c0f647e5400c95a229199380a51719c79871
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_all();
36 #endif