Skip to content

Instantly share code, notes, and snippets.

@david-mcneil
Created February 4, 2012 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save david-mcneil/1739531 to your computer and use it in GitHub Desktop.
Save david-mcneil/1739531 to your computer and use it in GitHub Desktop.
(ns bolo.ops
(:use [bolo.base :only (new-op)]))
;; define the operators for our tank DSL
(new-op main [& commands])
(new-op forward [power])
(new-op backward [power])
(new-op turn-left [power])
(new-op turn-right [power])
(new-op wait [time])
(new-op duration [time & commands])
(new-op block [& commands])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment