Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Nyx to an interpreted language #4

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

binary-blazer
Copy link
Member

Update Nyx to interpret .nyx files directly instead of compiling them into executables.

  • README.md

    • Update sections to reflect the new behavior of interpreting .nyx files directly.
    • Change "Compiling Nyx Code" to "Running Nyx Code".
    • Update example commands to show interpreting .nyx files.
  • CMakeLists.txt

    • Remove src/code_generator.cpp and src/compiler.cpp from the add_executable command.
  • src/main.cpp

    • Remove code that compiles .nyx files into an executable.
    • Add code to interpret .nyx files directly using the Lexer, Parser, and CodeGenerator classes.
  • src/compiler.cpp and src/compiler.h

    • Delete files as they are no longer needed.

Update Nyx to interpret `.nyx` files directly instead of compiling them into executables.

* **README.md**
  - Update sections to reflect the new behavior of interpreting `.nyx` files directly.
  - Change "Compiling Nyx Code" to "Running Nyx Code".
  - Update example commands to show interpreting `.nyx` files.

* **CMakeLists.txt**
  - Remove `src/code_generator.cpp` and `src/compiler.cpp` from the `add_executable` command.

* **src/main.cpp**
  - Remove code that compiles `.nyx` files into an executable.
  - Add code to interpret `.nyx` files directly using the `Lexer`, `Parser`, and `CodeGenerator` classes.

* **src/compiler.cpp** and **src/compiler.h**
  - Delete files as they are no longer needed.
…nyx` files directly

* **CMakeLists.txt**
  - Remove `src/code_generator.cpp` and `src/compiler.cpp` from the `add_executable` command
  - Add `src/interpreter.cpp` to the `add_executable` command

* **src/main.cpp**
  - Remove code that compiles `.nyx` files into an executable
  - Add code to interpret `.nyx` files directly using the `Lexer`, `Parser`, and `Interpreter` classes

* **src/interpreter.cpp**
  - Implement the `Interpreter` class to execute the AST nodes directly

* **include/interpreter.h**
  - Define the `Interpreter` class and its methods to execute the AST nodes directly
@binary-blazer binary-blazer merged commit 2439d23 into main Dec 20, 2024
3 checks passed
@binary-blazer binary-blazer deleted the binary-blazer/change-nyx-to-interpreted branch December 20, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant