This project is a compiler implementation that includes both frontend and backend components. The frontend provides a user interface for inputting code and displaying the Corrected Code, while the backend handles the compilation and execution of the code.
- Code Input: Enter your code in the provided editor.
- Compilation: The backend compiles the code and returns the corrected code.
- Error Handling: Displays compilation errors and lexer outputs.
- Responsive UI: User-friendly interface with interactive elements.
Follow these steps to set up and run the project locally.
Make sure you have the following installed:
-
Clone the repository:
git clone <repository-url> cd CompilerProject
-
Set up the backend:
cd backend npm install npm start
-
Set up the frontend: Open another terminal and navigate to the frontend directory:
cd frontend npm install npm install axios npm run dev
- Open your browser and navigate to
http://localhost:3000
. - Enter your code in the editor and click the "Run" button.
- View the output, errors, and lexer results in the respective sections.
Contributions are welcome! Please fork the repository and submit a pull request.