User:ArceusInator/Legatum: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator project I'm working on... |
>ArceusInator No edit summary |
||
Line 1: | Line 1: | ||
keywords: | keywords: | ||
<font color=#0000FF> | <font color=#0000FF> | ||
and, by, count, decrease, divide, else, elseif, end, equals, exponentiate, false, for, function, if, global, in, include, increase, isequalto, isgreaterthan, isgreaterthanorequalto, islessthan, islessthanorequalto, isnotequalto, lshift, minus, multiply, modulate, modulo, nil, not, or, over, plus, plusorminus, ratio, ratio_of, repeat, return, rshift, shiftright, shiftleft, times, tothepowerof, true, until, while | and, by, count, decrease, divide, else, elseif, end, equals, exponentiate, false, for, function, if, global, in, include, increase, isequalto, isgreaterthan, isgreaterthanorequalto, islessthan, islessthanorequalto, isnotequalto, lshift, minus, multiply, modulate, modulo, nil, not, or, over, plus, plusorminus, ratio, ratio_of, repeat, return, rshift, shiftright, shiftleft, times, tothepowerof, true, until, while</font> | ||
</font> | |||
notes: | notes: | ||
<font color=#00BB00> | <font color=#00BB00> | ||
//note | //note | ||
/* | /* | ||
long note | long note | ||
Line 14: | Line 12: | ||
magic: | magic: | ||
<font color="gold"> | <font color="gold"> | ||
:, =, +, -, *, ×, /, ÷, %, +=, +:, -=, -:, *=, *:, ×=, ×:, /=, /:, ÷=, ÷:, %=, %:, ++, --, ==, ::, ~=, !=, ~:, !:, ¬=, ¬:, >, <, >=, >:, <=, <:, !, ¬, &&, &, ||, |, &&=, &&:, &=, &:, ||=, ||:, |=, |:, ^, ±, +-, ^=, ^:, ?, <<, >>, <<=, >>=, @, @=, #, [, ], {, }, ;, ,, . | :, =, +, -, *, ×, /, ÷, %, +=, +:, -=, -:, *=, *:, ×=, ×:, /=, /:, ÷=, ÷:, %=, %:, ++, --, ==, ::, ~=, !=, ~:, !:, ¬=, ¬:, >, <, >=, >:, <=, <:, !, ¬, &&, &, ||, |, &&=, &&:, &=, &:, ||=, ||:, |=, |:, ^, ±, +-, ^=, ^:, ?, <<, >>, <<=, >>=, @, @=, #, [, ], {, }, ;, ,, .</font> | ||
</font> | |||
built-in st00fs: | built-in st00fs: | ||
Line 53: | Line 50: | ||
function getmetatable(obj) | function getmetatable(obj) | ||
return core:Get_FromValue(obj).metatable.__metatable or core:Get_FromValue(obj).metatable | return core:Get_FromValue(obj).metatable.__metatable or core:Get_FromValue(obj).metatable | ||
end | |||
function ipairs(t) | |||
local indexed_pairs = core:Get_FromValue(t):GetIndexedPairs() | |||
return (function(tab,num) return tab[num] end), indexed_pairs, 0 | |||
end | |||
function load(func, chunkname) | |||
error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(load) .. " load: Not Implemented",0) | |||
end | |||
function loadfile(filename) | |||
error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(loadfile) .. " loadfile: Not Implemented",0) | |||
end | |||
function loadstring(s) | |||
runInLegacySafetyEnvironment(tostring(s)) | |||
end | |||
function newproxy(boolorproxy) | |||
error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(newproxy) .. " newproxy: Not Implemented",0) | |||
end | |||
function next(table, index) | |||
return core:Get_FromValue(table):GetNextIndex(index) | |||
end | |||
function pairs(t) | |||
local p = core:Get_FromValue(t):GetPairs() | |||
return (function(tab,num) return tab[num] end), p, 0 | |||
end | |||
function pcall(f,...) | |||
LEGACYMODE(f,...) | |||
end | |||
function print(...) | |||
trueprint(...) | |||
end | end |
Revision as of 16:46, 15 May 2011
keywords:
and, by, count, decrease, divide, else, elseif, end, equals, exponentiate, false, for, function, if, global, in, include, increase, isequalto, isgreaterthan, isgreaterthanorequalto, islessthan, islessthanorequalto, isnotequalto, lshift, minus, multiply, modulate, modulo, nil, not, or, over, plus, plusorminus, ratio, ratio_of, repeat, return, rshift, shiftright, shiftleft, times, tothepowerof, true, until, while
notes:
//note /* long note */
magic:
:, =, +, -, *, ×, /, ÷, %, +=, +:, -=, -:, *=, *:, ×=, ×:, /=, /:, ÷=, ÷:, %=, %:, ++, --, ==, ::, ~=, !=, ~:, !:, ¬=, ¬:, >, <, >=, >:, <=, <:, !, ¬, &&, &, ||, |, &&=, &&:, &=, &:, ||=, ||:, |=, |:, ^, ±, +-, ^=, ^:, ?, <<, >>, <<=, >>=, @, @=, #, [, ], {, }, ;, ,, .
built-in st00fs:
function assert(v, message) if not v then error(script .. ":" .. line .. ":" .. stack .. ":" .. message,0) end end function collectgarbage(opt, arg) error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(collectgarbage) .. " collectgarbage: Not Implemented",0) end function dofile(filename) error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(dofile) .. " dofile: Not Implemented",0) end function error(message, level) if level == 0 then error(message,0) end error(script .. ":" .. line .. ":" .. stack .. ":" .. message,0) end _G = {} shared = {} function gcinfo() error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(gcinfo) .. " gcinfo: Not Implemented",0) end function getfenv(f) return core:Get_FromValue(f).meta.env end function getmetatable(obj) return core:Get_FromValue(obj).metatable.__metatable or core:Get_FromValue(obj).metatable end function ipairs(t) local indexed_pairs = core:Get_FromValue(t):GetIndexedPairs() return (function(tab,num) return tab[num] end), indexed_pairs, 0 end function load(func, chunkname) error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(load) .. " load: Not Implemented",0) end function loadfile(filename) error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(loadfile) .. " loadfile: Not Implemented",0) end function loadstring(s) runInLegacySafetyEnvironment(tostring(s)) end function newproxy(boolorproxy) error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(newproxy) .. " newproxy: Not Implemented",0) end function next(table, index) return core:Get_FromValue(table):GetNextIndex(index) end function pairs(t) local p = core:Get_FromValue(t):GetPairs() return (function(tab,num) return tab[num] end), p, 0 end function pcall(f,...) LEGACYMODE(f,...) end function print(...) trueprint(...) end