Name: interpreters-and-you
Owner: Underscore
Description: null
Created: 2018-05-01 16:57:43.0
Updated: 2018-05-24 11:24:09.0
Pushed: 2018-05-21 14:02:53.0
Homepage: null
Size: 54716
Language: Scala
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Slides, code samples, and notes on building programs with the interpreter pattern in Scala.
Copyright 2018 Dave Gurnell.
Text, diagrams, and slides licensed CC-BY-SA 4.0. Code samples licensed Apache 2.0
The /slides
directory contains the slides used in my presentation at Scala Days 2018.
The /code
directory contains different sample interpreters, implemented in reified and Church encoded styles.
The /text
directory contains a short guide to writing interpreters in Scala. This is currently a work-in-progress that I hope to flesh out to cover the same content as the talk.
Install Docker and use go.sh
to boot an instance with most of the right dependencies:
$ cd text
$ ./go.sh
Use yarn
to install the remaining dependencies:
er$ npm intall -g yarn
er$ yarn
Finally use sbt
to build the guide. Choose one of the following commands:
er$ sbt pdf
er$ sbt html
er$ sbt epub
er$ sbt all