-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
1,385 additions
and
2,912 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1 @@ | ||
---@class down.core.data.cache.Cache | ||
---@field public head any | ||
---@field public tail any | ||
---@field public len integer | ||
---@field public cache table<any, any> | ||
---@field public cap integer | ||
local Cache = {} | ||
|
||
Cache.__index = Cache | ||
|
||
function Cache.newcache() end | ||
|
||
function Cache.new(cap) | ||
local c = { | ||
head = nil, | ||
tail = nil, | ||
len = 0, | ||
cap = cap, | ||
cache = { } | ||
} | ||
return setmetatable({ | ||
__index = c, | ||
}, c) | ||
end | ||
|
||
Cache.__len = function() | ||
return Cache.len | ||
end | ||
|
||
function Cache:set(k, v) | ||
self.cache[k] = v | ||
end | ||
|
||
function Cache.__newindex(self, k, v) | ||
self.set(k, v) | ||
end | ||
|
||
Cache.__tostring = function(self) | ||
local s = "" | ||
for ii, i in ipairs(self.cache) do | ||
s = s .. tostring(ii) .. tostring(i) | ||
end | ||
return s | ||
end | ||
|
||
function Cache:del() end | ||
|
||
function Cache:clear() end | ||
|
||
function Cache:get() end | ||
|
||
return Cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
---@class down.core.data.store.Store | ||
local S = {} | ||
|
||
return S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
---@class down.core.parse.Parse | ||
local P = {} | ||
|
||
|
||
local l = vim.lpeg | ||
|
||
return P |
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.