rascal icon indicating copy to clipboard operation
rascal copied to clipboard

About build tool

Open cyw3 opened this issue 4 years ago • 1 comments

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?

cyw3 avatar Aug 30 '21 04:08 cyw3

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/

jurgenvinju avatar Aug 31 '21 07:08 jurgenvinju