https://gist.github.com/noaccessl/76efe3edf15507c4f1652975d3a8befb
print( (1) '<<' (0) ) -- 1
print( (1) '<<' (1) ) -- 2
print( (1) '<<' (2) ) -- 4
local flags = (2) '|' (4, 8, 256, 512)
if ( flags '&' (512) ~= 0 ) then
print( 'flag 512 is set' )
end