User:ArceusInator/Legatum: Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator No edit summary |
>ArceusInator ... |
||
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</font> | ||
notes: | ==notes:== | ||
<font color=#00BB00> | <font color=#00BB00>//note | ||
/* | /* | ||
long note | long note | ||
*/</font> | */</font> | ||
magic: | ==magic:== | ||
<font color= | <font color=#BBBB00>:, =, +, -, *, ×, /, ÷, %, +=, +:, -=, -:, *=, *:, ×=, ×:, /=, /:, ÷=, ÷:, %=, %:, ++, --, ==, ::, ~=, !=, ~:, !:, ¬=, ¬:, >, <, >=, >:, <=, <:, !, ¬, &&, &, ||, |, &&=, &&:, &=, &:, ||=, ||:, |=, |:, ^, ±, +-, ^=, ^:, ?, <<, >>, <<=, >>=, @, @=, #, [, ], {, }, ;, ,, .</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=#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> //> 9</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> //> 9</font> | |||
function print(...) | ==strings:== | ||
<font color=#FF5555>"String" 'String'</font> <font color=#770000>[==[String]==]</font> | |||
end | |||
==global:== | |||
<font color=#5500BB>assert</font>( Value v=false, Value message="assertion failed!" ) | |||
<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>( ... ) |
Revision as of 15:56, 16 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:
:, =, +, -, *, ×, /, ÷, %, +=, +:, -=, -:, *=, *:, ×=, ×:, /=, /:, ÷=, ÷:, %=, %:, ++, --, ==, ::, ~=, !=, ~:, !:, ¬=, ¬:, >, <, >=, >:, <=, <:, !, ¬, &&, &, ||, |, &&=, &&:, &=, &:, ||=, ||:, |=, |:, ^, ±, +-, ^=, ^:, ?, <<, >>, <<=, >>=, @, @=, #, [, ], {, }, ;, ,, .
:, =, 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 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 //> 9
x equals 5 x equals x modulo 4 print x //> 9
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( ... )