about summary refs log tree commit diff stats
path: root/lua/allwords.lua
diff options
context:
space:
mode:
authorCase Duckworth2015-03-26 19:46:45 -0700
committerCase Duckworth2015-03-26 19:46:45 -0700
commitc654151582a77a0b459e3f55b687e43a32d4b67d (patch)
tree6d5d5d2b5f5650b494318e66cef6135b32c0cc72 /lua/allwords.lua
parentFlatten directory structure (diff)
downloadautocento-c654151582a77a0b459e3f55b687e43a32d4b67d.tar.gz
autocento-c654151582a77a0b459e3f55b687e43a32d4b67d.zip
Add HAPAX LEGOMENA support & flatten structure
The list of hapax legomena for this project is available at /hapax.html.

In addition, the directory structure has been further flattened.
All assets (javascript, lua, images, fonts) are in /trunk/.

One other thing was to update the makefile.
It compiles hapax.txt from rivers.
Diffstat (limited to 'lua/allwords.lua')
-rw-r--r--lua/allwords.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/lua/allwords.lua b/lua/allwords.lua deleted file mode 100644 index b87f08a..0000000 --- a/lua/allwords.lua +++ /dev/null
@@ -1,17 +0,0 @@
1function allwords ()
2 local line = io.read()
3 local pos = 1
4 return function ()
5 while line do
6 local s, e = string.find(line, "%w+", pos)
7 if s then
8 pos = e + 1
9 return string.sub(line, s, e)
10 else
11 line = io.read()
12 pos = 1
13 end
14 end
15 return nil
16 end
17end