underscoreio/interpreters-and-you

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Interpreters and You

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

Content

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.

Building the Guide

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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.