aboutsummaryrefslogtreecommitdiff
path: root/samyle/locations.ey
diff options
context:
space:
mode:
Diffstat (limited to 'samyle/locations.ey')
-rw-r--r--samyle/locations.ey24
1 files changed, 24 insertions, 0 deletions
diff --git a/samyle/locations.ey b/samyle/locations.ey
new file mode 100644
index 0000000..503af4e
--- /dev/null
+++ b/samyle/locations.ey
@@ -0,0 +1,24 @@
+<
+ map /names defvd
+
+ <
+ { ==v 0
+ names dom { names * v eq or } each
+ } /has deffd
+ { ==v 0 ==found
+ names dom { _ ==k names * v eq found not and { k 1 =found } rep } each
+ } "#*" deffd
+ > /namesReverse defvd
+
+ <
+ 0 ==byte
+ 0 ==column
+ 0 ==elem
+
+ { =byte } /gotoByte deffd
+ { =column } /gotoColumn deffd
+ { =elem } /gotoElem deffd
+ > /cursor defvd
+> /locations defvd
+
+# vim: syn=elymas