summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/basic_mode.lua6
-rw-r--r--examples/simple_dispatcher.lua6
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/basic_mode.lua b/examples/basic_mode.lua
new file mode 100644
index 0000000..04c16df
--- /dev/null
+++ b/examples/basic_mode.lua
@@ -0,0 +1,6 @@
+return {
+ ["%w+%s*\n"] = function(match)
+ command_queue:enqueue(string.match(match , "(%w+)%s*"))
+ end,
+ [".*\n"] = function(match) end
+}
diff --git a/examples/simple_dispatcher.lua b/examples/simple_dispatcher.lua
deleted file mode 100644
index 4c935fe..0000000
--- a/examples/simple_dispatcher.lua
+++ /dev/null
@@ -1,6 +0,0 @@
-return {
- ["%w+%s*\n"] = function(match)
- local cmd = string.match("(%w+)%s*", match)
- command_queue:enqueue_command(cmd)
- end
-}