about summary refs log tree commit diff stats
path: root/horizon
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-10-24 10:39:26 -0700
committerKartik K. Agaram <vc@akkartik.com>2014-10-24 10:39:26 -0700
commitd245bbb6b2caeded06f0e7800b8f976cf6b0def1 (patch)
treefb3c759ae930ef198d8ec3d7e36075eb247b52dc /horizon
parentfb80da830652d2bc5adade3d5a7b30b0f79fcf97 (diff)
downloadmu-d245bbb6b2caeded06f0e7800b8f976cf6b0def1.tar.gz
154 - current stretch goal is to parse the horizon file
Diffstat (limited to 'horizon')
-rw-r--r--horizon19
1 files changed, 19 insertions, 0 deletions
diff --git a/horizon b/horizon
new file mode 100644
index 00000000..b384e30d
--- /dev/null
+++ b/horizon
@@ -0,0 +1,19 @@
+; At its core, an editor is a 2D array of characters and a cursor.
+
+given [
+  editor 5 5
+]
+
+Cursor should be at (0 0)
+
+now [
+  type "abc"
+]
+
+Cursor should be at (0 3)
+"abc" should be at (0 0)
+Trace should contain [
+  typed "a"
+  typed "b"
+  typed "c"
+]