-
Clone the repository:
git clone https://github.com/fakubwoy/C-Compiler.git
-
Change directory into the project:
cd C-Compiler
-
Install the dependencies:
npm install cd server npm install cd ..
-
Start the development server:
npm run dev
- Create comprehensive code documentation
- Add usage examples and installation steps
- Preprocessing
- Tokenization
- Add support for more data types
- Handle additional print/output statements
-
Parse Tree Generation
-
Rule Assignments:
- Ensure every statement ends with
;
- Enclose the code inside
int main()
- Validate variable declarations follow:
type name = value
(wherevalue
can be an expression) - Define and implement additional syntax rules
- Ensure every statement ends with
-
Parse Tree Validation:
- Enforce rule compliance during parsing
- Stop compilation and display an error on rule violation
- Perform semantic checks
- Generate symbol table
- Generate Three-Address Code (TAC)
- Optimize TAC
- Generate x86 Assembly code
- Compile ASM to executable (
.exe
)
- Build chatbot framework
- Choose an appropriate NLP/AI model
- Integrate model into the chatbot for interaction
- Test for natural responses and error handling