pedanticism

This commit is contained in:
Connor Olding 2016-04-28 15:46:47 -07:00
parent 792bb63996
commit 03eb1b9ed5
3 changed files with 4 additions and 8 deletions

View File

@ -12,12 +12,7 @@ Even this README is incomplete.
## Usage
Install the lips directory to somewhere Lua's `package.path` can find it.
If you're using it locally, you'll either need to write something like:
```
package.path = package.path..";?/init.lua"
```
or `require "lips.init"` directly.
`local lips = require "lips.init"`
You can then use it as such:
[example.lua][elua] — [example.asm][easm]

View File

@ -1,5 +1,4 @@
package.path = package.path..";?/init.lua"
local lips = require "lips"
local lips = require "lips.init"
local err = lips('example.asm')
if err then
print(err)

2
init.lua Normal file
View File

@ -0,0 +1,2 @@
local path = string.gsub(..., "%.init$", "").."."
return require(path.."lips.init")