about summary refs log tree commit diff stats
path: root/port.lua
diff options
context:
space:
mode:
authorCase Duckworth2024-03-04 21:01:27 -0600
committerCase Duckworth2024-03-04 21:01:27 -0600
commitbbaff0e0c204c2fab216f6501dc8c11b4425b4bc (patch)
treeb2a06edc7b1c8e6f86839bff8c16e06297080674 /port.lua
parentAdd copying (diff)
downloadlam-bbaff0e0c204c2fab216f6501dc8c11b4425b4bc.tar.gz
lam-bbaff0e0c204c2fab216f6501dc8c11b4425b4bc.zip
Ugghhhh totally not working first-try
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