mirror of
https://github.com/notwa/lips
synced 2025-03-09 19:32:49 -07:00
pedanticism
This commit is contained in:
parent
792bb63996
commit
03eb1b9ed5
3 changed files with 4 additions and 8 deletions
|
@ -12,12 +12,7 @@ Even this README is incomplete.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Install the lips directory to somewhere Lua's `package.path` can find it.
|
`local lips = require "lips.init"`
|
||||||
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.
|
|
||||||
|
|
||||||
You can then use it as such:
|
You can then use it as such:
|
||||||
[example.lua][elua] — [example.asm][easm]
|
[example.lua][elua] — [example.asm][easm]
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
package.path = package.path..";?/init.lua"
|
local lips = require "lips.init"
|
||||||
local lips = require "lips"
|
|
||||||
local err = lips('example.asm')
|
local err = lips('example.asm')
|
||||||
if err then
|
if err then
|
||||||
print(err)
|
print(err)
|
||||||
|
|
2
init.lua
Normal file
2
init.lua
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
local path = string.gsub(..., "%.init$", "").."."
|
||||||
|
return require(path.."lips.init")
|
Loading…
Add table
Reference in a new issue