This is a repository for CD LAB of KTU 2019 scheme in 7th Semester for Department of CSE.
There are 3 different folders.
-
C folder contains the code of programs that are to be written in C
- DFA: Deterministic Finite Automaton implementation
- Epsilon Closure: Epsilon closure computation for NFA
- Lexical Analyser using C: Lexical analyzer implementation
- First and Follow: Computation of First and Follow sets in syntax analysis
- Intermediate Code Generation: Generation of intermediate code from source code
- Recursive Descent Parser: Implementation of a recursive descent parser
- Shift Reducer: Implementation of a shift-reduce parser
- Backend of a Compiler: Backend operations of a compiler
-
Lex folder contains the code of programs that are to be written in lex
- Lexical Analyser: Lexical analyzer implementation using Lex
- Odd or Even: Program to check if a number is odd or even
- Replacement of string: Program to replace occurrences of a string
- Vowels and Consonants Count: Program to count vowels and consonants in a string
- No. of Words, Lines and Characters: Program to count words, lines, and characters in a text
-
Yacc folder contains the code of programs that are to be written in YACC (and lex included)
- Arithmetic Validation: Program to validate arithmetic expressions
- Identifier Validation: Program to validate identifiers