Closed Kalekdan closed 5 years ago
This is complete apart from gradle task. Need to create a separate task that does not affect the main build task. Compilation task must:
@Kalekdan Good work. It should be able to go into the same build file. Take a look at how the gradle idea
task works
This is working now. Mani can be compiled with gradle buildCompiler. Any .mni scripts in the resources directory will be included into a jar which can be run independently and will run the Máni code.
I'm not sure what the line with jar
on line 45 does but I found some examples online and it seems to work for this. If you can enlighten me then please do 😂
@Kalekdan please update the branch to follow the new structure if possible.
@crazywolf132 I've updated so that the code for compiler is now at src/com/mani/compiler/ManiCompiler.java
. Is this appropriate or should it be more like src/com/mani/lang/compiler/ManiCompiler.java
First option sounds fine
Are we ready to merge?
Are we ready to merge?
Yes
Well done!
Name: Compiler About: Mani can now "compile" code into a runnable jar
Is your PR related to a feature request or Bug report? If applicable, please list feature request number or bug report ID.
Describe your PR A clear and concise description of what your pull request is changing or adding.
Describe intended use A clear and concise description of the intended use of the feature. Along with example code.
Additional comments Add any additional comments or screenshots here.