Software /
code /
prosody
Comparison
tools/erlparse.lua @ 7819:ad709ee7d3d8
tools/erlparse: Remove use of deprecated module() function
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 09 Jan 2017 10:17:09 +0100 |
parent | 5776:bd0ff8ae98a8 |
comparison
equal
deleted
inserted
replaced
7818:54669df178c2 | 7819:ad709ee7d3d8 |
---|---|
187 if not x and peek() then error("Invalid char: "..peek()); end | 187 if not x and peek() then error("Invalid char: "..peek()); end |
188 return x; | 188 return x; |
189 end; | 189 end; |
190 end | 190 end |
191 | 191 |
192 module "erlparse" | 192 local _M = {}; |
193 | 193 |
194 function parseFile(file) | 194 function _M.parseFile(file) |
195 return readFile(file); | 195 return readFile(file); |
196 end | 196 end |
197 | 197 |
198 return _M; | 198 return _M; |