TheolZacharopoulos / rascal-shell

The commandline shell for the Rascal meta-programming language

Home Page:http://www.rascal-mpl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run it?

java -Xmx1G -Xss32m -jar rascal.jar

(This will start a console). If you have a Rascal source module File.rsc with this function:

public void main(list[str] args)

You can run it from the comman line by typing:

java -Xmx1G -Xss32m -jar rascal.jar File.rsc arg1 arg2 …

Where to get it?

There are two variants of the fully contained jar file for Rascal Shell:

How to make it yourself?

  • Check out the rascal-shell project
  • Find the RascalShell class and select 'Run As Java Program'
  • Edit the run configuration to use more stack and heap space: -Xss32m -Xmx1000m
  • Select the rascal-shell project and choose "Export ..." from the context menu
  • Select Java->"Runnable JAR file", this starts a wizard
  • Select your newly made run configuration from the top dropdown box
  • Type an export destination, like /Users/jurgenv/Desktop/rascal-0.4.20.jar
  • Select "Extract required libraries into generated JAR"
  • Press "Finish"
  • An error dialog pops up; read the messages and ignore all "class file compiled with compiler warnings", but review the other messages
  • When satisfied, press "Ok", which brings you back to the main wizard.
  • Now press "Cancel", and the jar will still be where you exported it to
  • Test it
  • Deploy

About

The commandline shell for the Rascal meta-programming language

http://www.rascal-mpl.org


Languages

Language:Java 100.0%