added more stuff to docs

This commit is contained in:
Evil Factory
2021-09-15 14:27:58 -03:00
parent d44d03fd9e
commit b0ed126891
6 changed files with 368 additions and 12 deletions

27
docs/CSharpUtils.lua Normal file
View File

@@ -0,0 +1,27 @@
local class = ""
local generatedDocs = ""
local function addline(line)
generatedDocs = generatedDocs .. line .. "\n"
end
for line, _ in io.lines("input.txt") do
local words = {}
for word in line:gmatch("%w+") do table.insert(words, word) end
if words[1] == "Float" then words[1] = "number" end
if words[1] == "Bool" then words[1] = "bool" end
if words[1] == "String" then words[1] = "string" end
addline("---")
addline("-- " .. words[2] .. ", returns a " .. words[1] .. ".")
addline("-- @realm shared")
addline("-- @" .. words[1] .. " " .. words[2])
addline("")
Character = {}
end
print(generatedDocs)