├── .gitignore ├── Project-1 ├── .gitignore ├── Project Report.pdf ├── README.md ├── lexer.l ├── symboltable.h ├── testcases │ ├── test-case-1.c │ ├── test-case-2.c │ ├── test-case-3.c │ ├── test-case-4.c │ └── test-case-5.c └── tokens.h ├── Project-2 ├── .gitignore ├── README.md ├── compile ├── lexl.l ├── parser.y ├── symboltable.h └── testcases │ ├── test-case-1.c │ ├── test-case-2.c │ ├── test-case-3.c │ ├── test-case-4.c │ ├── test-case-5.c │ └── test-case-6.c ├── Project-3 ├── README.md ├── compile ├── lexer.l ├── parser.y ├── symboltable.h ├── test.c └── testcases │ ├── test-case-1.c │ ├── test-case-2.c │ ├── test-case-3.c │ ├── test-case-4.c │ ├── test-case-5.c │ └── testcases ├── Project-4 ├── ICG.code ├── README.md ├── compile ├── icg ├── lexer.l ├── parser.y ├── symboltable.h ├── test-func.c └── test.c └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | -------------------------------------------------------------------------------- /Project-1/.gitignore: -------------------------------------------------------------------------------- 1 | a.out 2 | lex.yy.c 3 | -------------------------------------------------------------------------------- /Project-1/Project Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-1/Project Report.pdf -------------------------------------------------------------------------------- /Project-1/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-1/README.md -------------------------------------------------------------------------------- /Project-1/lexer.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-1/lexer.l -------------------------------------------------------------------------------- /Project-1/symboltable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-1/symboltable.h -------------------------------------------------------------------------------- /Project-1/testcases/test-case-1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-1/testcases/test-case-1.c -------------------------------------------------------------------------------- /Project-1/testcases/test-case-2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-1/testcases/test-case-2.c -------------------------------------------------------------------------------- /Project-1/testcases/test-case-3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-1/testcases/test-case-3.c -------------------------------------------------------------------------------- /Project-1/testcases/test-case-4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-1/testcases/test-case-4.c -------------------------------------------------------------------------------- /Project-1/testcases/test-case-5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-1/testcases/test-case-5.c -------------------------------------------------------------------------------- /Project-1/tokens.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-1/tokens.h -------------------------------------------------------------------------------- /Project-2/.gitignore: -------------------------------------------------------------------------------- 1 | y.* 2 | lex.yy.c 3 | -------------------------------------------------------------------------------- /Project-2/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/README.md -------------------------------------------------------------------------------- /Project-2/compile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/compile -------------------------------------------------------------------------------- /Project-2/lexl.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/lexl.l -------------------------------------------------------------------------------- /Project-2/parser.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/parser.y -------------------------------------------------------------------------------- /Project-2/symboltable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/symboltable.h -------------------------------------------------------------------------------- /Project-2/testcases/test-case-1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/testcases/test-case-1.c -------------------------------------------------------------------------------- /Project-2/testcases/test-case-2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/testcases/test-case-2.c -------------------------------------------------------------------------------- /Project-2/testcases/test-case-3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/testcases/test-case-3.c -------------------------------------------------------------------------------- /Project-2/testcases/test-case-4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/testcases/test-case-4.c -------------------------------------------------------------------------------- /Project-2/testcases/test-case-5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/testcases/test-case-5.c -------------------------------------------------------------------------------- /Project-2/testcases/test-case-6.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-2/testcases/test-case-6.c -------------------------------------------------------------------------------- /Project-3/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/README.md -------------------------------------------------------------------------------- /Project-3/compile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/compile -------------------------------------------------------------------------------- /Project-3/lexer.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/lexer.l -------------------------------------------------------------------------------- /Project-3/parser.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/parser.y -------------------------------------------------------------------------------- /Project-3/symboltable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/symboltable.h -------------------------------------------------------------------------------- /Project-3/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/test.c -------------------------------------------------------------------------------- /Project-3/testcases/test-case-1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/testcases/test-case-1.c -------------------------------------------------------------------------------- /Project-3/testcases/test-case-2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/testcases/test-case-2.c -------------------------------------------------------------------------------- /Project-3/testcases/test-case-3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/testcases/test-case-3.c -------------------------------------------------------------------------------- /Project-3/testcases/test-case-4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/testcases/test-case-4.c -------------------------------------------------------------------------------- /Project-3/testcases/test-case-5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/testcases/test-case-5.c -------------------------------------------------------------------------------- /Project-3/testcases/testcases: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-3/testcases/testcases -------------------------------------------------------------------------------- /Project-4/ICG.code: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-4/ICG.code -------------------------------------------------------------------------------- /Project-4/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-4/README.md -------------------------------------------------------------------------------- /Project-4/compile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-4/compile -------------------------------------------------------------------------------- /Project-4/icg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-4/icg -------------------------------------------------------------------------------- /Project-4/lexer.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-4/lexer.l -------------------------------------------------------------------------------- /Project-4/parser.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-4/parser.y -------------------------------------------------------------------------------- /Project-4/symboltable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-4/symboltable.h -------------------------------------------------------------------------------- /Project-4/test-func.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-4/test-func.c -------------------------------------------------------------------------------- /Project-4/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/Project-4/test.c -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kaushiksk/mini-c-compiler/HEAD/README.md --------------------------------------------------------------------------------