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.
-
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.
-
If you want to dive deeper into LMS internals, you may want to browse the core LMS sources.