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
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
keywords:
keywords:
<font color=#0000FF>
<font color=#0000FF>and, by, count, decrease, divide, else, elseif, end, equals, exponentiate, factorial, 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>
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>
 
notes:
<font color=#00BB00>
//note


==notes:==
<font color=#00BB00>//note
  /*
  /*
  long note
  long note
  */</font>
  */</font>


magic:
==magic:==
<font color="gold">
<font color=#BBBB00>:, =, +, -, *, ×, /, ÷, %, +=, +:, -=, -:, *=, *:, ×=, ×:, /=, /:, ÷=, ÷:, %=, %:, ++, --, ==, ::, ~=, !=, ~:, !:, ¬=, ¬:, >, <, >=, >:, <=, <:, !, ¬, &&, &, ||, |, &&=, &&:, &=, &:, ||=, ||:, |=, |:, ^, ±, +-, ^=, ^:, ?, <<, >>, <<=, >>=, @, @=, #, [, ], {, }, ;, ,, .</font>
:, =, +, -, *, ×, /, ÷, %, +=, +:, -=, -:, *=, *:, ×=, ×:, /=, /:, ÷=, ÷:, %=, %:, ++, --, ==, ::, ~=, !=, ~:, !:, ¬=, ¬:, >, <, >=, >:, <=, <:, !, ¬, &&, &, ||, |, &&=, &&:, &=, &:, ||=, ||:, |=, |:, ^, ±, +-, ^=, ^:, ?, <<, >>, <<=, >>=, @, @=, #, [, ], {, }, ;, ,, .
 
</font>
===:, =, equals===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 5</font>
 
x<font color=#BBBB00>=</font><font color=#5555FF>7</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 7</font>
 
x<font color=#0000FF> equals </font><font color=#5555FF>9</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 9</font>
 
 
===+, plus===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>:</font> x<font color=#BBBB00>+</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 9</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
x<font color=#0000ff> equals </font>x<font color=#0000FF> plus </font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 9</font>
 
===-, minus===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>:</font> x<font color=#BBBB00>-</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 1</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
x<font color=#0000ff> equals </font>x<font color=#0000FF> minus </font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 1</font>
 
===*, ×, times===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>:</font> x<font color=#BBBB00>*</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 20</font>
 
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>:</font> x<font color=#BBBB00>×</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 20</font>
 
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>:</font> x<font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 20</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
x<font color=#0000ff> equals </font>x<font color=#0000FF> times </font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 20</font>
 
===/, ÷, over===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>:</font> x<font color=#BBBB00>/</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 1.25</font>
 
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>:</font> x<font color=#BBBB00>÷</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 1.25</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
x<font color=#0000ff> equals </font>x<font color=#0000FF> over </font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 1.25</font>
 
===%, modulo===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>:</font> x<font color=#BBBB00>%</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 1</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
x<font color=#0000ff> equals </font>x<font color=#0000FF> modulo </font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 1</font>
 
===^, tothepowerof===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>:</font> x<font color=#BBBB00>^</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 625</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
x<font color=#0000ff> equals </font>x<font color=#0000FF> tothepowerof </font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 625</font>
 
===+=, +:, increase by===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>+=</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 9</font>
 
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>+:</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 9</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
<font color=#0000ff>increase </font>x<font color=#0000FF> by </font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 9</font>
 
===*=, *:, ×=, ×:, multiply by===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>*=</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 20</font>
 
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>×:</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 20</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
<font color=#0000ff>multiply </font>x<font color=#0000FF> by </font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 20</font>
 
===%=, %:, modulate by===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>%=</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 1.25</font>
 
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>%:</font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 1.25</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
<font color=#0000ff>modulate </font>x<font color=#0000FF> by </font><font color=#5555FF>4</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 1.25</font>
 
===++, increase===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>++</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 6</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
<font color=#0000ff>increase </font>x
<font color=#5500BB>print</font> x <font color=#555555> //> 6</font>
 
===--, decrease===
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
x<font color=#BBBB00>--</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 4</font>
 
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
<font color=#0000ff>decrease </font>x
<font color=#5500BB>print</font> x <font color=#555555> //> 4</font>


built-in st00fs:
===^=, ^:, explonentiate by===
<pre>
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
function assert(v, message)
x<font color=#BBBB00>^:</font><font color=#5555FF>4</font>
  if not v then
<font color=#5500BB>print</font> x <font color=#555555> //> 625</font>
      error(script .. ":" .. line .. ":" .. stack .. ":" .. message,0)
  end
end


function collectgarbage(opt, arg)
x<font color=#0000ff> equals </font><font color=#5555FF>5</font>
  error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(collectgarbage) .. " collectgarbage: Not Implemented",0)
<font color=#0000ff>exponentiate </font>x<font color=#0000FF> by </font><font color=#5555FF>4</font>
end
<font color=#5500BB>print</font> x <font color=#555555> //> 625</font>


function dofile(filename)
===!, factorial===
  error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(dofile) .. " dofile: Not Implemented",0)
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
end
x<font color=#BBBB00>:</font>x<font color=#BBBB00>!</font>
<font color=#5500BB>print</font> x <font color=#555555> //> 120</font>


function error(message, level)
x<font color=#BBBB00>:</font><font color=#5555FF>5</font>
  if level == 0 then
x<font color=#BBBB00>:</font> x<font color=#0000ff> factorial</font>
      error(message,0)
<font color=#5500BB>print</font> x <font color=#555555> //> 120</font>
  end
  error(script .. ":" .. line .. ":" .. stack .. ":" .. message,0)
end


_G = {}
=== ==, ::, isequalto ===
shared = {}
x<font color=#bbbb00>:</font><font color=#0000ff>false</font>
<font color=#5500bb>print</font> x <font color=#bbbb00>==</font> <font color=#0000ff>true</font><font color=#555555> //> false</font>


function gcinfo()
x<font color=#bbbb00>:</font><font color=#0000ff>false</font>
  error(script .. ":" .. line .. ":" .. stack .. ":" .. tostring(gcinfo) .. " gcinfo: Not Implemented",0)
<font color=#5500bb>print</font> x <font color=#0000ff>isequalto true</font><font color=#555555> //> false</font>
end


function getfenv(f)
==strings:==
  return core:Get_FromValue(f).meta.env
<font color=#FF5555>"String" 'String'</font> <font color=#770000>[==[String]==]</font>
end


function getmetatable(obj)
==global:==
  return core:Get_FromValue(obj).metatable.__metatable or core:Get_FromValue(obj).metatable
<font color=#5500BB>assert</font>( Value v=false, Value message="assertion failed!" )
end
<font color=#5500BB>collectgarbage</font>( String opt="", Value arg=0 )
<font color=#5500BB>dofile</font>( String filename="" )
<font color=#5500BB>error</font>( String message="Error!", Integer level=1 )
<font color=#5500BB>getfenv</font>( Function f=(function()end) )
<font color=#5500BB>getmetatable</font>( Table obj={} )
<font color=#5500BB>ipairs</font>( Table t={} )
<font color=#5500BB>loadfile</font>( String filename="" )
<font color=#5500BB>loadstring</font>( String s="" )
<font color=#5500BB>newproxy</font>( Value boolOrProxy=false )
<font color=#5500BB>next</font>( Table t={}, Integer index=0 )
<font color=#5500BB>pairs</font>( Table t={} )
<font color=#5500BB>pcall</font>( Function f=function()end, ... )
<font color=#5500BB>print</font>( ... )
<font color=#5500BB>rawequal</font>( Value v1=nil, Value v2=nil )
<font color=#5500BB>rawget</font>( Table t={}, Integer index=0 )
<font color=#5500BB>rawset</font>( Table t={}, Integer index=0, Value v=nil )
<font color=#5500BB>select</font>( Integer index="#", ... )
<font color=#5500BB>setfenv</font>( Function f=function()end, Table t={} )
<font color=#5500BB>setmetatable</font>( Table t={}, Table m={} )
<font color=#5500BB>tonumber</font>( Value v=false )
<font color=#5500BB>tostring</font>( Value v=false )
<font color=#5500BB>type</font>( Value v=nil )
<font color=#5500BB>unpack</font>( Table t={}, Integer i=0, Integer j=#t )
<font color=#5500BB>_VERSION</font> = 0.1 ALPHA
<font color=#5500BB>xpcall</font>( Function f=function()end, function e=function()end )
<font color=#5500BB>coroutine</font> = coroutine library
<font color=#BB00FF>coroutine.create</font>( Function f=function()end )
<font color=#BB00FF>coroutine.resume</font>( Coroutine c=nil, ... )
<font color=#BB00FF>coroutine.running</font>()
<font color=#BB00FF>coroutine.status</font>( Coroutine c=nil )
<font color=#BB00FF>coroutine.wrap</font>( Function f=function()end )
<font color=#BB00FF>coroutine.yield</font>( ... )

Latest revision as of 20:38, 16 May 2011

keywords:

and, by, count, decrease, divide, else, elseif, end, equals, exponentiate, factorial, 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:

:, =, +, -, *, ×, /, ÷, %, +=, +:, -=, -:, *=, *:, ×=, ×:, /=, /:, ÷=, ÷:, %=, %:, ++, --, ==, ::, ~=, !=, ~:, !:, ¬=, ¬:, >, <, >=, >:, <=, <:, !, ¬, &&, &, ||, |, &&=, &&:, &=, &:, ||=, ||:, |=, |:, ^, ±, +-, ^=, ^:, ?, <<, >>, <<=, >>=, @, @=, #, [, ], {, }, ;, ,, .

:, =, equals

x:5
print x  //> 5
x=7
print x  //> 7
x equals 9
print x  //> 9


+, plus

x:5
x: x+4
print x  //> 9
x equals 5
x equals x plus 4
print x  //> 9

-, minus

x:5
x: x-4
print x  //> 1
x equals 5
x equals x minus 4
print x  //> 1

*, ×, times

x:5
x: x*4
print x  //> 20
x:5
x: x×4
print x  //> 20
x:5
x: x4
print x  //> 20
x equals 5
x equals x times 4
print x  //> 20

/, ÷, over

x:5
x: x/4
print x  //> 1.25
x:5
x: x÷4
print x  //> 1.25
x equals 5
x equals x over 4
print x  //> 1.25

%, modulo

x:5
x: x%4
print x  //> 1
x equals 5
x equals x modulo 4
print x  //> 1

^, tothepowerof

x:5
x: x^4
print x  //> 625
x equals 5
x equals x tothepowerof 4
print x  //> 625

+=, +:, increase by

x:5
x+=4
print x  //> 9
x:5
x+:4
print x  //> 9
x equals 5
increase x by 4
print x  //> 9

*=, *:, ×=, ×:, multiply by

x:5
x*=4
print x  //> 20
x:5
x×:4
print x  //> 20
x equals 5
multiply x by 4
print x  //> 20

%=, %:, modulate by

x:5
x%=4
print x  //> 1.25
x:5
x%:4
print x  //> 1.25
x equals 5
modulate x by 4
print x  //> 1.25

++, increase

x:5
x++
print x  //> 6
x equals 5
increase x
print x  //> 6

--, decrease

x:5
x--
print x  //> 4
x equals 5
decrease x
print x  //> 4

^=, ^:, explonentiate by

x:5
x^:4
print x  //> 625
x equals 5
exponentiate x by 4
print x  //> 625

!, factorial

x:5
x:x!
print x  //> 120
x:5
x: x factorial
print x  //> 120

==, ::, isequalto

x:false
print x == true //> false
x:false
print x isequalto true //> false

strings:

"String" 'String' [==[String]==]

global:

assert( Value v=false, Value message="assertion failed!" )
collectgarbage( String opt="", Value arg=0 )
dofile( String filename="" )
error( String message="Error!", Integer level=1 )
getfenv( Function f=(function()end) )
getmetatable( Table obj={} )
ipairs( Table t={} )
loadfile( String filename="" )
loadstring( String s="" )
newproxy( Value boolOrProxy=false )
next( Table t={}, Integer index=0 )
pairs( Table t={} )
pcall( Function f=function()end, ... )
print( ... )
rawequal( Value v1=nil, Value v2=nil )
rawget( Table t={}, Integer index=0 )
rawset( Table t={}, Integer index=0, Value v=nil )
select( Integer index="#", ... )
setfenv( Function f=function()end, Table t={} )
setmetatable( Table t={}, Table m={} )
tonumber( Value v=false )
tostring( Value v=false )
type( Value v=nil )
unpack( Table t={}, Integer i=0, Integer j=#t )
_VERSION = 0.1 ALPHA
xpcall( Function f=function()end, function e=function()end )
coroutine = coroutine library
coroutine.create( Function f=function()end )
coroutine.resume( Coroutine c=nil, ... )
coroutine.running()
coroutine.status( Coroutine c=nil )
coroutine.wrap( Function f=function()end )
coroutine.yield( ... )