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
local enummt = { | |
__index = function(table, key) | |
if rawget(table.enums, key) then | |
return key | |
end | |
end | |
} | |
local function Enum(t) | |
local e = { enums = t } |
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
local util = require"moonscript.util" | |
local lpeg = require"lpeg" | |
local debug_grammar = false | |
local data = require"moonscript.data" | |
local types = require"moonscript.types" |
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
local Object | |
do | |
local _base_0 = { | |
__inherited = function(self, child) | |
for k, v in pairs(self.__base) do | |
child.__base[k] = child.__base[k] or v | |
end | |
end | |
} | |
_base_0.__index = _base_0 |
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
--fuzzy.moon | |
matches = | |
["^"]: "%^", | |
["$"]: "%$", | |
["("]: "%(", | |
[")"]: "%)", | |
["%"]: "%%", | |
["."]: "%.", | |
["["]: "%[", | |
["]"]: "%]", |
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
print(("# #"):gsub("#","# # # #\n"):rep(4)) | |
x="# # # #\n"print((x..' '..x):rep(4)) |