-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR proposes a `FreeJavaBuilder` interface that allows users to construct the FreeJava in Java source code. ## Free Java FreeJava is the AST of Java source code, which can be compiled/interpreted to different targets, such as bytecode, source code, or itself. ## FreeJavaBuilder `FreeJavaBuilder` is an interface that allows users to construct a FreeJava in builder form. Those methods are just like the constructor of FreeJava, but they will be interpreted immediately. ## Goal `FreeJavaBuilder` can be used to construct FreeJava, then we can perform optimization, and translate to another target. ## TODO - [x] Complete FreeJavaBuilder - [x] Interpret to source code - [ ] Interpret to bytecode - [ ] Interpret to free java and optimization ## Note This PR is supposed to run on JDK 24 which version with stable Classfile API.
- Loading branch information
Showing
70 changed files
with
3,173 additions
and
1,698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
jit-compiler/src/main/java/org/aya/compiler/AbstractExprializer.java
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
jit-compiler/src/main/java/org/aya/compiler/AbstractSerializer.java
This file was deleted.
Oops, something went wrong.
71 changes: 0 additions & 71 deletions
71
jit-compiler/src/main/java/org/aya/compiler/AyaSerializer.java
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
jit-compiler/src/main/java/org/aya/compiler/ClassSerializer.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.