apt-get install default-jdk-headless ant
For OSX, using Homebrew (install a JDK separately):
brew install coreutils ant
The latest release can be downloaded here.
To clone from GitHub instead, see below.
Testing with tutorials
Here is an example session, running the hello world tutorial grammar:
silver$ cd tutorials/hello silver/tutorials/hello$ ./silver-compile -- SNIPPED -- silver/tutorials/hello$ java -jar hello.jar Hello, World!
If you have any issues, first try the frequently asked question page to see if there are any questions like yours.
Installing the ‘silver’ script
Note that this assumes you have a ~/bin. In most distributions, if you
don’t have a ~/bin, all you have to do is
mkdir ~/bin, and the
default shell scripts will notice it and add it to your
time your shell is started.
At this point, Silver should be all set. You can test it with: (leaving off from above)
silver$ cd tutorials silver/tutorials$ silver hello -- SNIPPED -- silver/tutorials$ java -jar hello.jar Hello World!
Note that this differs from previously by using the ‘
~/bin instead of the local
silver-compile script, and it is
only in the
tutorials directory, not in
Using the latest development version
Instead of downloading a relase, Silver can be checked out directly from GitHub instead.
Git and wget. For Ubuntu users:
apt-get install default-jdk ant git wget
# Again, install Java separately. brew install coreutils ant git wget
Checking out Silver
Wherever you wish to checkout the repository, do this:
$ git clone https://github.com/melt-umn/silver.git $ cd silver silver$ ./update
And then proceed with the instructions above (e.g. testing with tutorials, installing
To update the a version cloned from GitHub, run:
This will pull the latest changes, and update your working copy. It will also download the latest jars (which may be necessary! Silver is written in Silver, so there can be bootstrapping issues) and clear out any generated files, which may now be stale with the new version.