-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Aaron Krebs edited this page Dec 6, 2013
·
20 revisions
Welcome to the YACC wiki!
##Checkpoint 3 Test Case Ideas
- integer constant and real constant overflow conditions. See semantic/{maxint, maxreal, maxuses}.pal
- enumerated type assignment (assign consts to each other, to ints, etc)
- 16+ levels of nested scope
- uppercase Boolean is valid, lowercase integer and real are valid
##Hash Table Notes
##Commit Notes Commit 33711db34f74d205133a5a486c0a2dae34268c13, Oct 10 2013
- Use CamelCase for functions and variables, UPPER_CASE_UNDERSCORED for macros.
- Do not but function return types on a new line (as the style guide suggests), but put it all on the same line IE: void char *function(args...)
Otherwise, refer to this style guide
See TODO page.
- Unit Test Everything!
- Use the MinUnit Framework
Some sample tests have been added. Basically, for each .c file you write in /src write a matching test file in /test, add make rules to compile and link, and add the tests to test.c