rascal
rascal copied to clipboard
About build tool
Is your feature request related to a problem? Please describe. Hello,
- what build tool (such as maven, gradle, etc.) does rascal use to manage the code?
- Does it support Gradle to build code?
- How to package the rascal project into a binary executable file? Such as .jar or .exe.
- Is there a demo project?
Hi
- currently we use the Rascal interpreter and commandline REPL itself to "build" Rascal. It can read .rsc files from jar files or from disk (eclipse projects or VScode projects or simply folders.
- a Rascal project is configured by a RASCAL.MF file, for example: https://github.com/cwi-swat/flybytes/blob/master/META-INF/RASCAL.MF
- you can simply package all your .rsc files in a jar using
jar cvf myJar.jar myFiles - to run a packaged Rascal project your should put the rascal.jar on the classpath:
java -cp rascal.jar:myJar.jar org.rascalmpl.shell.RascalShell myMainModule - there is demo code here: https://docs.rascal-mpl.org/unstable/TutorHome/