about summary refs log tree commit diff stats
path: root/port.lua
diff options
context:
space:
mode:
Diffstat (limited to 'port.lua')
-rw-r--r--port.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/port.lua b/port.lua new file mode 100644 index 0000000..c5763df --- /dev/null +++ b/port.lua
@@ -0,0 +1,20 @@
1--- lam.port
2
3local port = {}
4table.unpack = table.unpack or unpack
5
6function port.Input (file)
7 return {
8 file = file,
9 line = "",
10 }
11end
12
13port.tokenizer = "%s*(,@|[('`,)]|)"
14
15function port.Input:tokens () -- iterator
16
17end
18
19---
20return port