Lightweight Modular Staging (LMS) is a framework for runtime code generation and compiled DSLs.
-
Install the SBT build tool:
If you are using OS X and Homebrew, run
brew install sbt
.For other platforms, follow the instructions on the SBT website.
-
Install LMS:
git clone https://github.com/TiarkRompf/virtualization-lms-core.git lms-core
cd lms-core; sbt publish-local; cd ..
- Clone this repo and run the tests:
git clone https://github.com/scala-lms/tutorials.git lms-tutorials
cd lms-tutorials
sbt test
- The src/test/scala/lms/tutorial directory contains the source files from which the tutorial website is generated. The website generation is handled in the main website repository.