Skip to content
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

Refactoring TODO

##Hash Table Notes

  • structs
  • API
  • add anonymous types to the symbol table

##Commit Notes Commit 33711db34f74d205133a5a486c0a2dae34268c13, Oct 10 2013

Style

  • 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

Testing

See TODO page.

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

Checkpoint 1

Checkpoint 1 Feedback

Checkpoint 2

Checkpoint 2 Feedback

Clone this wiki locally