Skip to content

This project is a Java-based application that integrates a Swing-based code editor with an integrated compiler. This project is designed to provide developers with a comprehensive tool for writing, editing, and compiling programs.

Notifications You must be signed in to change notification settings

angelmtzr/java-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-compiler

This project is a Java-based application that integrates a Swing-based code editor with an integrated compiler. This project is designed to provide developers with a comprehensive tool for writing, editing, and compiling programs.

Features

  • Swing Code Editor: A graphical user interface for editing source code.
  • Lexical Analysis: Tokenizes source code into meaningful tokens.
  • Syntax Parsing: Parses source code to ensure correct syntax.
  • Semantic Analysis: Performs semantic analysis to catch errors and ensure adherence to language rules.

Getting Started

Prerequisites

  • Java Development Kit (JDK) 21 or later installed on your machine.
  • IntelliJ IDEA for working with the project.
  • Maven installed on your machine.

Importing the Project into IntelliJ IDEA

  1. Clone the repository:
    git clone https://github.com/your-username/mylang-compiler.git
  2. Open IntelliJ IDEA and select "File" -> "Open" and choose the project directory.
  3. Set up the project SDK to use JDK 21 or later:
    • Navigate to "File" -> "Project Structure".
    • Under "Project", set the "Project SDK" to JDK 21 or later.

Running the Code Editor

  1. Open the Main class in IntelliJ IDEA.
  2. Locate the main method and run the program.
  3. The code editor should open, allowing you to create or open source files.

Contributing

If you'd like to contribute to the development of the java-compiler, please follow our Contribution Guidelines.

About

This project is a Java-based application that integrates a Swing-based code editor with an integrated compiler. This project is designed to provide developers with a comprehensive tool for writing, editing, and compiling programs.

Resources

Stars

Watchers

Forks

Languages