This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Peaks on Mapbox</title> | |
<script src='https://api.mapbox.com/mapbox-gl-js/v0.45.0/mapbox-gl.js'></script> | |
<script src='https://api.mapbox.com/mapbox.js/plugins/turf/v2.0.2/turf.min.js'></script> | |
<script src='./lib.js'></script> | |
<link href='https://api.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require rackunit) | |
;; Syntax for combining concatenative combinators | |
;; Isolates the key 'compositional' semantics of concatenative languages | |
(define (cat f g) | |
(lambda xs | |
(call-with-values | |
(lambda () (call-with-values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Actions (Action, tryDoAction, actions, defaultAction) where | |
import System.Exit | |
import Data.List | |
import Data.Maybe | |
import Syntax | |
import Parser | |
import Eval |