Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Suppress a bogus array bound warning for clang and glibc | Ting-Wei Lan | 2016-01-02 | 1 | -0/+8 |
| | |||||
* | Drop any_error from state and add asm_output to state | Ting-Wei Lan | 2015-12-30 | 1 | -4/+3 |
| | |||||
* | Add the code-generation phase | kugwa | 2015-12-30 | 1 | -0/+9 |
| | |||||
* | Check and write computed types for expressions and arrays | Ting-Wei Lan | 2015-12-09 | 1 | -0/+5 |
| | |||||
* | Use stdin if the source file name is a single dash | Ting-Wei Lan | 2015-12-07 | 1 | -1/+2 |
| | |||||
* | Allow dumping symbol table via an environment variable | Ting-Wei Lan | 2015-12-07 | 1 | -1/+14 |
| | |||||
* | We are going to do semantic analysis | Ting-Wei Lan | 2015-12-06 | 1 | -0/+9 |
| | |||||
* | Disable AST dumping by default | Ting-Wei Lan | 2015-12-06 | 1 | -1/+3 |
| | | | | This feature is still available through defining environment variable. | ||||
* | Drop all non-namespaced symbols | Ting-Wei Lan | 2015-12-03 | 1 | -7/+9 |
| | | | | | | | | | | | | | | 1. All data types and macros in headers, global variables and functions that have external linkage are namespaced. The only two files that allow non-namespaced symbols are main.c and common.h. common.h should not be included by any other headers. 2. Coding style is fixed when possible. 3. Drop unused variables or struct members. 4. 'name' macro is renamed to 'prog_name' to prevent conflicts with ast.h. 5. %union includes a CON_Type (now CcmmcValueConst) instead of a pointer to it. This prevents an unnecessary malloc. 6. Fix buffer overflow in draw.c. draw.c should not modify the input AST while generating the graph. | ||||
* | Drop line_number and prog global variables | Ting-Wei Lan | 2015-12-02 | 1 | -7/+12 |
| | | | | | All important states should be stored in the local struct allocated in main function. | ||||
* | Make the scanner and the parser reentrant and reduce non-namespaced symbols | Ting-Wei Lan | 2015-12-01 | 1 | -5/+26 |
| | |||||
* | Use strerror_r to make error messages more useful | Ting-Wei Lan | 2015-11-30 | 1 | -3/+18 |
| | | | | | This commit adds a new file, common.h, which contains private macros and static functions to make the code cleaner. | ||||
* | Include our headers before including system headers | Ting-Wei Lan | 2015-11-30 | 1 | -2/+3 |
| | |||||
* | Enable POSIX extensions | Ting-Wei Lan | 2015-11-13 | 1 | -0/+4 |
| | |||||
* | Fix the build with --enable-compile-warnings=error | Ting-Wei Lan | 2015-11-13 | 1 | -2/+0 |
| | | | | | | 1. Add missing 'const' keyword for string literals. 2. Add missing 'static' keyword for internal functions. 3. Add missing default cases for switch statements. | ||||
* | Add declaration of printGV() in main.c | kugwa | 2015-11-12 | 1 | -0/+2 |
| | |||||
* | main() prints the parse tree | kugwa | 2015-11-12 | 1 | -0/+2 |
| | |||||
* | Merge TA's codes to ours | kugwa | 2015-11-11 | 1 | -22/+14 |
| | | | | | | Delete tmp funtion used in HW2. Move AST functions into ast.c. CONST_INT, CONST_FLOAT, and CONST_STRING all return CONST. | ||||
* | Move all source files to the new src directory | Ting-Wei Lan | 2015-11-09 | 1 | -0/+31 |