Hilbish/lua.go

21 lines
253 B
Go
Raw Normal View History

2021-03-19 23:03:11 +00:00
package main
import (
"github.com/yuin/gopher-lua"
)
func hshprompt(L *lua.LState) int {
prompt = L.ToString(1)
return 0
}
2021-03-21 21:19:51 +00:00
func hshalias(L *lua.LState) int {
alias := L.ToString(1)
source := L.ToString(2)
aliases[alias] = source
return 1
}