diff options
Diffstat (limited to 'port.lua')
-rw-r--r-- | port.lua | 20 |
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 | |||
3 | local port = {} | ||
4 | table.unpack = table.unpack or unpack | ||
5 | |||
6 | function port.Input (file) | ||
7 | return { | ||
8 | file = file, | ||
9 | line = "", | ||
10 | } | ||
11 | end | ||
12 | |||
13 | port.tokenizer = "%s*(,@|[('`,)]|)" | ||
14 | |||
15 | function port.Input:tokens () -- iterator | ||
16 | |||
17 | end | ||
18 | |||
19 | --- | ||
20 | return port | ||