add src-space/* and clear src files

This commit is contained in:
2025-05-12 05:18:28 +09:00
parent 2f2e0759fd
commit 9e38b7ca63
13 changed files with 90 additions and 73 deletions

View File

@@ -6,8 +6,10 @@ TARGET = main.lua
BUILD_DIR = ../../build
OUTPUT = lua.luac
build:
${CC} -o ${BUILD_DIR}/lua.luac ${SRC_DIR}/${TARGET}
${CC} -o ${BUILD_DIR}/$(OUTPUT) ${SRC_DIR}/${TARGET}
run: build
lua ${BUILD_DIR}/lua.luac
lua ${BUILD_DIR}/$(OUTPUT)

View File

@@ -1,11 +0,0 @@
local function fib(n)
if n == 0 or n == 1 then
return n
else
return fib(n - 1) + fib(n - 2)
end
end
local n = io.read("*n")
print(fib(n))