User:ArceusInator/Legatum

From Legacy Roblox Wiki
Revision as of 20:38, 16 May 2011 by >ArceusInator
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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( ... )