repo stringclasses 302
values | file_path stringlengths 18 241 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 76 697k | tokens int64 10 271k |
|---|---|---|---|---|---|
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/deepfreeze.luau | luau | .luau | --!strict
--!native
--Deepfreeze: Freezes table and all child tables, prevents writes & improves read speeds when in tight loops
local function Deepfreeze<T>( t: T ): T
if type( t ) ~= "table" then
return t
end
local tab: {[any]: any} = t :: any
for _, v in tab do
-- Prevents cyclic tables from looping infinite... | 138 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/init.luau | luau | .luau | --[[
Penumbra: Shader module builder [Roblox]
This module allows you to build shader modules in Roblox Studio.
This works by inlining 'template/prepend.luau' and 'template/append.luau',
with your own provided shader modulein the middle.
If a shader module isn't provided, then 'template/shader.luau' module will... | 589 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/eotf/lrgb_true.luau | luau | .luau | --!strict
--!native
-- lRGB - Piecewise function
-- Separate shader function for legacy purposes.
-- Pixel shader: sRGB -> lRGB color space transform
-- Input is assumed to already be bound 0-1 sRGB
local sRGB_Sub: vector = vector.one * 0.055
local vector_zero = vector.zero
local vector_one = vector.one
ret... | 264 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/eotf/srgb_fast.luau | luau | .luau | --!strict
--!native
-- sRGB - Fast Approximation
local v_1: vector = vector.one * 1
local v_0_625: vector = vector.one * 0.625
local Reciprocal: vector = vector.one / 4.8
return function( iTime: number, In: {vector}, Out: {vector} )
for c = 1, #In do
Out[c] =
( v_1 - In[c] ) * ( In[c] / ( In[c] + Reciprocal )... | 153 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/eotf/srgb_fastest.luau | luau | .luau | --!strict
--!native
-- sRGB - Fastest Approximation - Highly inaccurate, performance tradeoff not really worth it
local v_1: vector = vector.one
local v_0_225: vector = vector.one * 0.225
return function( iTime: number, In: {vector}, Out: {vector} )
for c = 1, #In do
Out[c] = ( In[c] * ( In[c] * .225 + v_1 ) ) / ( ... | 125 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/eotf/srgb_pow.luau | luau | .luau | --!strict
--!native
-- sRGB Pow approximation
local vector_zero: vector = vector.zero
local vector_one: vector = vector.one
return function( iTime: number, In: {vector}, Out: {vector} )
for c: number, RGB: vector in In do
Out[c] = vector.create(RGB.x^.4545,RGB.y^.4545,RGB.z^.4545)
end
end
| 94 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/eotf/srgb_tanh.luau | luau | .luau | --!strict
--!native
-- sRGB Tanh approximation
local vector_zero: vector = vector.zero
return function( iTime: number, In: {vector}, Out: {vector} )
for c: number, RGB: vector in In do
Out[c] = vector.create(math.tanh(RGB.x),math.tanh(RGB.y),math.tanh(RGB.z))
end
end
| 88 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/eotf/srgb_true.luau | luau | .luau | --!strict
--!native
-- sRGB - Piecewise function
-- Separate shader function for legacy purposes.
-- Pixel shader: Linear -> sRGB color space transform
-- Input is assumed to already be bound 0-1 linear RGB
-- Bypass (number) -> (vector) broadcast performance hit
local sRGB_Sub: vector = vector.one * 0.055
local vec... | 308 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/tone/acesfilm.luau | luau | .luau | --!strict
--!native
-- Tonemapper: AcesFilm [Source: https://www.shadertoy.com/view/W3lfRN]
local v_1: vector = vector.one * 1
local v_0: vector = vector.zero
local v_0_625: vector = vector.one * 0.625
local v_0_003: vector = vector.one * 0.003
local v_0_59: vector = vector.one * 0.59
local v_0_14: vector = vec... | 255 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/tone/agx.luau | luau | .luau | --!strict
--!native
-- Tonemapper: AgX [Source: https://www.shadertoy.com/view/dtyfRw]
local Settings = require( "../../../Settings" )
local MinEV: number = -10 -- Tonemapper min. exposure
local MaxEV: number = 7.5 -- Tonemapper max. exposure
local To_AgX = {
vector.create(.842479062253094,.0423282422610123,.0423756... | 887 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/tone/crt.luau | luau | .luau | --!strict
--!native
-- Penumbra: Fragment Shader - CRT [Source: Crazyblox]
type f64=number; type vec=vector
local S, Textures = require( "../../../Settings" ), require( "../../../Textures" )
local vec = vector.create;local vec_1, vec_0_5, vec_0 = vec(1,1,1), vec(.5,.5,.5), vec(0,0);local iResolution:vec =vec(S.Display_... | 1,526 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/tone/linear.luau | luau | .luau | --!strict
--!native
local vector_zero: vector = vector.zero
local vector_one: vector = vector.one
return function( iTime: number, In: {vector}, Out: {vector} )
for c = 1, #In do
Out[c] = vector.clamp( In[c], vector_zero, vector_one )
end
end
| 78 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/old_incompatible/tone/reinhard.luau | luau | .luau | --!strict
--!native
-- Tonemapper: Reinhard RGB
local Burn: vector = vector.one
return function( iTime: number, In: {vector}, Out: {vector} )
for c: number = 1, #In do
Out[c] = In[c] / ( Burn + In[c] )
end
end
| 77 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/template/filter/append.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
local iRes0:vec = iRes-vec(1,1)
local iRes0_div:vec=iRes0+vec(0,0,1)
local tStart0:vec = vec(0,S.Actor_Res.y*(S.Actor_RenderNum-1))
local tRes1:vec = S.Actor_Res
local tRes0:vec = S.Actor_Res-vec(1,1)
local tEnd0:vec = tStart0+tRes0
local IL_Start:f64 = tStart0.y % 2
-- Interlace data & ... | 969 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/template/filter/prepend.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
type f64 = number; type vec = vector
local S = require( `../../../../` )()
local Textures = require( `../../../textures` )
local vec = vector.create
local vec_1, vec_0_5, vec_0 = vec( 1, 1, 1 ), vec( .5, .5, .5 ), vec( 0, 0 )
local iRes:vec = vec( S.Display_Res.x, S.Display_Res.y )
local ... | 2,520 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/template/filter/shader.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
local iChannel0: Textures.Texture = Textures.Load.Base( {}, "rustymetal" )
local texture = Sampler_Nearest -- Sampler_Nearest_IL, Sampler_Linear, Sampler_BoxBlur, Sampler_Unsharp
local function main( fragColor:vec, fragCoord:vec, iTime:f64 ):vec
-- Gradient - Sourced from [https://www.s... | 242 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/template/frag/append.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
local iRes0:vec = iRes-vec(1,1)
local iRes0_div:vec =iRes0+vec(0,0,1)
local tStart0:vec = vec(0,S.Actor_Res.y*(S.Actor_RenderNum-1))
local tRes1:vec = S.Actor_Res
local tRes0:vec = S.Actor_Res-vec(1,1)
local tEnd0:vec = tStart0+tRes0
local IL_Start:f64 = tStart0.y % 2
-- Interlace data &... | 953 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/builder/template/frag/prepend.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
type f64 = number; type vec = vector
local S = require( `../../../../` )()
local Textures = require( `../../../textures` )
local vec = vector.create
local vec_1, vec_0_5, vec_0 = vec( 1, 1, 1 ), vec( .5, .5, .5 ), vec( 0, 0 )
local iRes:vec = vec( S.Display_Res.x, S.Display_Res.y )
local ... | 1,438 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/init.luau | luau | .luau | --!strict
--!native
--[[ Requires ]]
local Settings = require(`../`)()
local Deepfreeze = require( `./deepfreeze` )
local VM = require( `../../plugin/process` )
local Task = require( `../../plugin/task` )
local Textures = require( `./textures` )
-- Types/Export
local Types = require( "@self/types" )
export type ... | 1,325 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/profile.luau | luau | .luau | --!strict
--!native
return { "frag/cave", "filter/blur_box", "filter/unsharp_gaussian" }
| 29 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/filter/blur_box.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
DoInterlace = false
local function Sampler_BoxBlur(t: Textures.Texture, UV: vector): vector
local tW:number, tH:number = t.Width, t.Height
UV = (UV * vector.create(tW,tH) + vector.create(.5,.5) ) // 1
local x0:number = UV.x % tW * u32B -- Wrap U to texture width
local y0:number = ... | 362 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/filter/unsharp_gaussian.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Gaussian Unsharp Mask 3x3 Kernel
local function Sampler_Unsharp(t: Textures.Texture, UV: vector): vector
local b = t.Buffer
local tW:number, tH:number = t.Width, t.Height
UV = (UV * vector.create(tW,tH) + vector.create(.5,.5) ) // 1
-- X1Y1
local x:number = UV.x % tW * u32B -- ... | 885 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/blackhole.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
local iChannel0: Textures.Texture = Textures.Load.Base( {}, "rustymetal" )
local texture = Sampler_Nearest -- Sampler_Nearest_IL, Sampler_Linear, Sampler_BoxBlur, Sampler_Unsharp
local PI: f64 = math.pi
local ro: vec = vec(0.0, 2.0, 14.0)
local lookAt: vec = vec(0.0, 0.0, 0.0)
local fwd:... | 2,618 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/cardgame.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Card Game [Source: https://www.shadertoy.com/view/XXtBRr]
local texture = Sampler_Nearest -- Sampler_Nearest_IL, Sampler_Linear
local SPIN_ROTATION:f64 = -2.0;
local SPIN_SPEED:f64 = 7.0;
local SPIN_EASE:f64 = 1.0;
local SPIN_AMOUNT:f64 = 0.25;
local OFFSET:... | 934 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/cloudytunnel.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Fragment Shader - Cloudy Tunnel [Source: https://www.shadertoy.com/view/llSfRK]
--// origo and lookat points
local o:vec
local t:vec
local oSquareTotal:f64
local sampleCount:f64 = 2
local W:f64 = 4.0
local T:f64 = 0.05
local texture = Sampler_Nearest_IL
-- Values
local iChannel0: Tex... | 1,202 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/creation.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Creation [Source: https://www.shadertoy.com/view/XsXXDn]
local iChannel0: Textures.Texture = Textures.Load.Base( {}, "abstract3" )
local texture = Sampler_Linear
local reinhardBurn:vec = vector.one * .225
local c = {0,0,0}
local function main( fragColor:vec,... | 358 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/distortion.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Distortion
local texture = Sampler_Linear
local blob1:vec = vec(127.1,311.7,0)
local blob2:vec = vec(269.5,183.3,0)
local blob3:vec = vec(419.2,317.9,0)
local function main( fragColor:vec, fragCoord:vec, iTime:f64 ):vec
local vec_noPreCalc:vec = vec(.5,.5)*... | 601 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/fractalpyramid.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Fractal Pyramid [Source: https://www.shadertoy.com/view/tsXBzS]
--[[ SHADER ]]--
local reinhardBurn:vec = vector.one * .225
local up_vector:vec = vec(0, 1, 0)
local const_ro:vec = vec(0, 0, -50)
local ro_xz:vec = vec(const_ro.x, const_ro.z)
local iTime_cos:f... | 859 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/fragments.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Fragments [Source: https://www.shadertoy.com/view/3cScWy]
local fEnd:f64 = 6
local iTime_z: vec
local r_xxy:vec = vec(iRes.x, iRes.y, iRes.y);
local mul_vec2:vec = vec(1, 1, 0);
local nums:vec = vec(6,1,2);
local function main( O:vec, I:vec, t:f64 ):vec
--... | 531 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/gyroid.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - tm gyroid 2 [Source: https://www.shadertoy.com/view/tXtyW8]
local reinhardBurn:vec = vector.one * .225
local FAR = 30.
local PI = 3.1415
local function vcos(v: vec) return vector.create(math.cos(v.x), math.cos(v.y), math.cos(v.z)) end
local function vsin(v:... | 1,717 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/hillside.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Mini: Hillside [Source: https://www.shadertoy.com/view/3fySDD]
local function main( fragColor:vec, fragCoord:vec, iTime:f64 ):vec
local p:vec = (fragCoord*2.-iRes)/iRes.y
--//Quick noise pattern
local n:f64 = (dot(fragCoord, vec(sin(fragCoord.y),sin(fragC... | 355 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/introduction.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Shader Art Coding Introduction [Source: https://www.shadertoy.com/view/mtyGWy]
local e:f64 = 2.71828183
local a:vec,b:vec,c:vec,d:vec = vec(.5,.5,.5),vec(.5,.5,.5),vec(1,1,1),vec(.263,.416,.557)
local function palette( t:f64 ):vec
local tau_ctd:vec = 6.2831... | 379 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/mandelbrot_pattern.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Mandelbrot Pattern Decoration [Source: https://www.shadertoy.com/view/ttscWn]
-- VARIABLES
local AA:f64 = 2
local AA0:f64 = AA - 1
local AA2_Reciprocal:f64 = 1 / (AA*AA)
local iter:f64 = 128
local fog:vec = vec_0
-- preprocessables
local ttm:f64, c:f64, s:f6... | 1,658 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/mandelbrot_standard.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Mandelbrot
local texture = Sampler_Linear
local function main( fragColor:vec, fragCoord:vec, iTime:f64 ):vec
local uv:vec = (vec(fragCoord.x/iRes.x,fragCoord.y/iRes.y)-vec(.5,.5))*2.
uv *= vec(iRes.x/iRes.y,1.)
local c:vec = uv * 0.8 + vec(-.5,0.) + vec( ... | 260 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/mosaic.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Mini: Mosaic [Source: https://www.shadertoy.com/view/W33GRX]
local texture = Sampler_Linear
local function main( fragColor:vec, fragCoord:vec, iTime:f64 ):vec
--//Resolution for scaling
local r:vec = iRes
--//Centered and scaled to fit vertically [-3, +3]... | 327 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/neuron.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Neuron
local vec_up = vec(0, 1, 0)
local ro, lookAt, fwd, right, up = vec(0,0,0), vec(0,0,0), vec(0,0,1), vec(1,0,0), vec(0,1,0)
local a = 2.51
local b_coeff = vec(0.0762, 0.0762, 0.0762)
local c_val = 2.43
local d_coeff = vec(0.59, 0.59, 0.59)
local e_coeff... | 2,829 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/nova.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Mini: Nova [Source: https://www.shadertoy.com/view/WfGSRD]
local function main( fragColor:vec, fragCoord:vec, iTime:f64 ):vec
--//Horizontally centered and scaled coordinates
local p:vec = (fragCoord*2.-(iRes.x*vec(1,1)))/iRes.y
--//Distance to circle edg... | 248 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/rocaille.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Rocaille [Source: https://www.shadertoy.com/view/WXyczK]
local resLen:f64
local function main( O:vec, I:vec, iTime:f64 ):vec
--// Vector for scaling and turbulence
local v:vec = iRes;
--// Centered and scaled coordinates
local p:vec = (I+I-v)/v.y/.3;
-... | 423 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/squircle.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Mini: Squircle [Source: https://www.shadertoy.com/view/WcGXRD]
local function main( fragColor:vec, fragCoord:vec, iTime:f64 ):vec
--//Centered and scale to fit vertically
local p:vec = (fragCoord*2.-iRes)/iRes.y
--//Distance to squircle (squared-radius of... | 307 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/squircle2.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Mini: Squircle 2 [Source: https://www.shadertoy.com/view/WfySDD]
local function mat2(v:vec,a:f64,b:f64,c:f64,d:f64):vec return vec(a*v.x+b*v.y,c*v.x+d*v.y)end
local function main( fragColor:vec, fragCoord:vec, iTime:f64 ):vec
--//Centered and scale to fit v... | 516 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shader_src/frag/tracedtunnel.luau | luau | .luau | --!nocheck
--!nolint
--/INLINE
-- Penumbra: Fragment Shader - Traced Tunnel [Source: https://www.shadertoy.com/view/tdjfDR]
local iChannel0: Textures.Texture = Textures.Load.Base( {{Name="Squared"},{Name="VFlip"},{Name="GaussianBlur"}}, "abstract3" )
local iChannel1: Textures.Texture = Textures.Load.Base( {{Name="Squar... | 2,872 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/shaders/multi.luau | luau | .luau | --!nocheck
--!nolint
-- Multi-shader wrapper module
-- Calls multiple different modules based on os.clock()
-- Shaders
local ShaderList = {
require( "./frag/cardgame" ),
require( "./frag/cave" ),
require( "./frag/cloudytunnel" ),
require( "./frag/rocaille" ),
require( "./frag/fractalpyramid" ),
require( "./frag... | 191 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/pipeline/types.luau | luau | .luau | -- Pipeline : Types --
local Textures = require(`../textures`)
export type Shader = {
-- Shader needs its own write buffer due to temporal accumulation.
read FB_Slice_Write: buffer,
read Run: ShaderModule
}
export type ShaderModule = (
T: number,
Sync_FB_Slice_Read: buffer,
FB_Slice_Write: buffer, --Out: buffer... | 164 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/png/ChunkTypes.luau | luau | .luau | local Types = require("./Types")
export type IHDR = {
width: number,
height: number,
bitDepth: number,
colorType: number,
interlaced: boolean,
}
export type PLTE = {
colors: { Types.Color },
}
export type tRNS = {
gray: number,
red: number,
green: number,
blue: number,
}
return {}
| 82 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/png/HuffmanTable.luau | luau | .luau | --!strict
--!native
local function new(lengths: { number })
local blCount = {}
local maxBits = 0
for _, len in lengths do
if len > 0 then
blCount[len] = (blCount[len] or 0) + 1
if len > maxBits then
maxBits = len
end
end
end
local thisCode = 1
local nextCode = {}
for bits = 1, maxBits do
thi... | 253 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/png/Types.luau | luau | .luau | export type PNG = {
Width: number,
Height: number,
Pixels: buffer,
--ReadPixel: (x: number, y: number) -> Color,
}
export type Chunk = {
type: string,
offset: number,
length: number,
}
export type Color = {
r: number,
g: number,
b: number,
a: number,
}
return {}
| 80 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/png/chunks/IHDR.luau | luau | .luau | --!strict
--!native
local ChunkTypes = require("../ChunkTypes")
local Types = require("../Types")
local COLOR_TYPE_BIT_DEPTH = {
[0] = { 1, 2, 4, 8, 16 },
[2] = { 8, 16 },
[3] = { 1, 2, 4, 8 },
[4] = { 8, 16 },
[6] = { 8, 16 },
}
local function read(buf: buffer, chunk: Types.Chunk): ChunkTypes.IHDR
assert(chun... | 415 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/png/chunks/PLTE.luau | luau | .luau | --!strict
--!native
local ChunkTypes = require("../ChunkTypes")
local Types = require("../Types")
local function read(buf: buffer, chunk: Types.Chunk, header: ChunkTypes.IHDR): ChunkTypes.PLTE
assert(chunk.length % 3 == 0, "malformed PLTE chunk")
local count = chunk.length / 3
assert(count > 0, "no entries in PLT... | 223 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/png/chunks/init.luau | luau | .luau | --!strict
--!native
return {
IHDR = require("@self/IHDR"),
PLTE = require("@self/PLTE"),
tRNS = require("@self/tRNS"),
}
| 42 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/png/chunks/tRNS.luau | luau | .luau | --!strict
--!native
local ChunkTypes = require("../ChunkTypes")
local Types = require("../Types")
local function readU16(buf: buffer, offset: number, depth: number)
return bit32.extract(
bit32.bor(bit32.lshift(buffer.readu8(buf, offset), 8), buffer.readu8(buf, offset + 1)),
0,
depth
)
end
local function read... | 396 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/png/crc32.luau | luau | .luau | --!strict
--!native
-- stylua: ignore
local lookup = {
0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3,
0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91,
0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, 0x1ADAD47D, 0x6DDDE4E... | 2,335 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/png/inflate.luau | luau | .luau | --!strict
--!native
local HuffmanTable = require("./HuffmanTable")
-- stylua: ignore
local LIT_LEN = {
3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,
35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258,
}
-- stylua: ignore
local LIT_EXTRA = {
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2,
2, 3, 3,... | 1,948 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/textures/assets/16x16_test.luau | luau | .luau | --!strict
--!native
local B64 = "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIElEQVQokWP4z8Dw//9/BuJJ0lRDwKgNozYMBRv+MwAA53OAjjUvXLcAAAAASUVORK5CYII="
return buffer.fromstring(B64)
| 109 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/textures/assets/cubemaps/flatday/flatday.luau | luau | .luau | --!strict
--!native
local B64 = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAFDmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9... | 1,718 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/textures/assets/cubemaps/zero/zero.luau | luau | .luau | --!strict
--!native
local B64 = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAFDmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9... | 1,728 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/textures/assets/font_codepage437.luau | luau | .luau | --!strict
--!native
local B64 = "iVBORw0KGgoAAAANSUhEUgAACQAAAAAOCAIAAAD1rrSwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAPBklEQVR4nO1dW5IjsarUOXHX6EV6lefDcStoHslD1MMe8qOjuiRQCiFAsnvmP+tH8X6/1fev16tdajB4Gj6ePH47GAwGA4r3+51NDZNQBoPBP4XjPKjGvQmJgxSoO43zYNAS5Xj+PKg/F7Hq8UzNCwxeaGIj7q8jUFgbq6ywNqOaeWsKe2lcafmLpZ7gvYDGxWMVDKsCaKBSwW4YkyA... | 3,755 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/textures/init.luau | luau | .luau | --!strict
--!native
--[[
Penumbra: textures.luau
This module handles loading and processing a texture via any
of the given load parameters by the calling module.
Assets are stored via textures/assets, additional ones can be
added by providing PNG files as base64-encoded strings so that
no filesystem dependen... | 4,127 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/lib/textures/types.luau | luau | .luau | -- Types : Textures --
-- Represents what constitutes as a texture.
export type Texture = {
[number]: vector,
read Buffer: buffer,
read Dimensions: vector,
read Width: number,
read Height: number,
read Width0: number,
read Height0: number,
read FD: vector,
read Mult: vector | number
}
-- A super... | 164 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/license/base64.luau | luau | .luau | --[[
MIT License
Copyright (c) 2025 daily3014
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | 223 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/license/penumbra.luau | luau | .luau | --[[
The MIT License (MIT)
Copyright (c) 2026 Crazyblox
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, p... | 226 |
Crazyblox/penumbra | Crazyblox-penumbra-f730e0d/license/png.luau | luau | .luau | --[[
The MIT License (MIT)
Copyright (c) 2024 sircfenner
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 227 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/basics.luau | luau | .luau | local PyLua = require("../src/PyLua")
-- Create a Python runtime
local python = PyLua.new()
-- Execute multi-line Python code (statements)
python:execute([[
x = 10
y = 32
print("sum:", x + y)
]])
-- Evaluate a Python expression and get the result in Luau
local value = python:eval("1 + 2 * 3")
print("eval result:", ... | 134 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/builtins.luau | luau | .luau | local PyLua = require("../src/PyLua")
local python = PyLua.new()
python:execute([[
print("PyLua Version:", __pylua_version__)
string = "Hello, PyLua!"
print("len of string:", len(string))
print("type of 123:", type(123))
if string[0] == "H":
print("First character is H")
if isinstance(123, int):
print("123 is a... | 120 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/bytes_and_strings.luau | luau | .luau | local PyLua = require("../src/PyLua")
local python = PyLua.new()
python:execute([[
s = "hello"
b = b"hello"
print("str:", s)
print("bytes:", b)
print("len(bytes):", len(b))
print("b[1] (first byte):", b[0])
print("concat bytes:", b + b" world")
]])
| 82 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/classes.luau | luau | .luau | local PyLua = require("../src/PyLua")
local python = PyLua.new()
python:execute([[
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def greet(self):
return f"Hello, my name is {self.name} and I am {self.age} years old."
person = Person("Alice", 30)
print(p... | 315 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/collections.luau | luau | .luau | local PyLua = require("../src/PyLua")
local python = PyLua.new()
python:execute([[
# Lists, tuples, dicts, sets
nums = [1, 2, 3]
pair = ("a", 42)
conf = {"host": "localhost", "port": 8080}
letters = {"a", "b", "c"}
# Unpacking into new dict
conf2 = {**conf, "debug": True}
print("nums:", nums)
print("pair:", pair)
p... | 252 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/control_flow.luau | luau | .luau | local PyLua = require("../src/PyLua")
local python = PyLua.new()
python:execute([[
x = 7
if x < 5:
print("small")
elif x < 10:
print("medium")
else:
print("large")
# chained comparisons combine checks without repeating the middle operand
value = 8
if 5 < value < 10:
print("value is between 5 and 10")... | 442 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/exceptions.luau | luau | .luau | local PyLua = require("../src/PyLua")
local python = PyLua.new()
python:execute([[
def divide(a, b):
return a / b
try:
print("divide(10, 2) =", divide(10, 2))
print("divide(5, 0) =", divide(5, 0))
except ZeroDivisionError as e:
print("Error:", e)
try:
array = [1, 2, 3]
print("Accessing array... | 262 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/functions.luau | luau | .luau | local PyLua = require("../src/PyLua")
local python = PyLua.new()
python:execute([[
def add(a, b):
return a + b
def greet(name):
return "Hello, " + name
print("add(2, 3) =", add(2, 3))
print(greet("World"))
# Simple function with one default argument
def greet(name, greeting="Hello"):
print(greeting + ",... | 363 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/hello_world.luau | luau | .luau | local PyLua = require("../src/PyLua")
local python = PyLua.new()
python:execute([[
print("Hello world from python!")
]])
| 31 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/imports/lune.luau | luau | .luau | local PyLua = require("../../src/PyLua")
local FileSystem = require("../../src/Packages/FileSystem/Lune")
-- Create a Python runtime
local python = PyLua.new({
fileSystem = FileSystem,
searchPath = {"examples/imports/libs"},
enableFilesystem = true,
})
python:execute([[
import my_lib
my_lib.pretty_print(... | 83 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/imports/lute.luau | luau | .luau | local PyLua = require("../../src/PyLua")
local FileSystem = require("../../src/Packages/FileSystem/Lute")
-- Create a Python runtime
local python = PyLua.new({
fileSystem = FileSystem,
searchPath = {"examples/imports/libs"},
enableFilesystem = true,
})
python:execute([[
import my_lib
my_lib.pretty_print(... | 83 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/imports/virtual.luau | luau | .luau | local PyLua = require("../../src/PyLua")
local FileSystem = require("../../src/Packages/FileSystem/Virtual")
-- 1. Define a native module (Luau table)
local myMathModule = {
add = function(a:number, b:number) return a + b end,
PI = 3.14159
}
-- 2. Define a virtual filesystem (mocking real files)
local files =... | 245 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/examples/interop_minimal.luau | luau | .luau | local PyLua = require("../src/PyLua")
local python = PyLua.new()
-- Minimal interop: expose a Luau value/function via globals
local globals = python:globals()
-- Expose a simple Luau function that multiplies numbers
globals.lua_mul = function(a: number, b: number): number
return a * b
end
python:execute([[
prin... | 119 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/Packages/FileSystem/Lute.luau | luau | .luau | --!strict
-- Lute FileSystem Implementation
-- https://lute.luau.org/reference/lute/fs.html
local fs = require("@lute/fs")
local LuteFS = {}
function LuteFS.readFile(path: string): string?
if fs.exists(path) and fs.type(path) == "file" then
return fs.readfiletostring(path)
end
return nil
end
function LuteFS.ex... | 133 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/Packages/FileSystem/Virtual.luau | luau | .luau | --!strict
-- Virtual FileSystem (Memory-based)
local VirtualFS = {}
function VirtualFS.new(files: { [string]: string })
return {
readFile = function(path: string): string?
return files[path]
end,
exists = function(path: string): boolean
-- Check exact match
if files[path] then
return true
end
... | 249 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/ast/nodes.luau | luau | .luau | local Nodes = {}
-- Operator types
export type UnaryOpType = "Invert" | "Not" | "UAdd" | "USub"
export type BinOpType =
"Add"
| "Sub"
| "Mult"
| "MatMult"
| "Div"
| "Mod"
| "Pow"
| "LShift"
| "RShift"
| "BitOr"
| "BitXor"
| "BitAnd"
| "FloorDiv"
export type CmpOp = "Eq" | "NotEq" | "Lt" | "LtE" | "Gt" | "... | 2,525 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/ast/visitor.luau | luau | .luau | local Visitor = {}
local nodes = require("./nodes")
type ASTNode = nodes.ASTNode
type AnyNode = nodes.AnyNode
type AnyStmt = nodes.AnyStmt
type AnyExpr = nodes.AnyExpr
-- Base visitor class for AST traversal
export type Visitor = {
visit: (self: Visitor, node: ASTNode) -> any,
generic_visit: (self: Visitor, node: A... | 2,471 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/bytecode/instructions.luau | luau | .luau | local Instructions = {}
local opcodes = require("./opcodes")
type Opcode = opcodes.Opcode
-- Bytecode instruction
export type Instruction = {
opcode: Opcode,
arg: number?, -- Optional numeric argument (index / delta / small int)
lineno: number?, -- Source line for debug / traceback
}
-- Create an instruction; val... | 363 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/compiler/expressions.luau | luau | .luau | local nodes = require("../ast/nodes")
local opcodes = require("../bytecode/opcodes")
local State = require("./state")
type CompilerState = State.CompilerState
type ExprContext = nodes.ExprContext
type ListComp = nodes.ListComp
type BinOpType = nodes.BinOpType
type CmpOp = nodes.CmpOp
local function deepCopy(value: an... | 4,473 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/compiler/init.luau | luau | .luau | local State = require("@self/state")
local expressionsFactory = require("@self/expressions")
local statementsFactory = require("@self/statements")
export type CodeObject = State.CodeObject
local Compiler = {}
local compileStmtImpl: ((State.CompilerState, any) -> ())? = nil
local function compileStmt(st: State.Compi... | 455 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/compiler/state.luau | luau | .luau | local instructions = require("../bytecode/instructions")
local opcodes = require("../bytecode/opcodes")
type Instruction = instructions.Instruction
type Opcode = opcodes.Opcode
export type CodeObject = {
constants: { any },
names: { string },
varnames: { string },
bytecode: { Instruction },
firstlineno: number?,... | 851 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/compiler/statements.luau | luau | .luau | local State = require("./state")
type CompilerState = State.CompilerState
type StatementDeps = {
compileExpr: (CompilerState, any) -> (),
compileAssignmentTarget: (CompilerState, any) -> (),
compileLoadTarget: (CompilerState, any) -> (),
compileStoreTarget: (CompilerState, any) -> (),
resolveBinOpOpcode: (any) -... | 4,148 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/interop/bridge.luau | luau | .luau | local Bridge = {}
local Base = require("../objects/base")
local Collections = require("../objects/collections")
type PyObject = Base.PyObject
type PyType = Base.PyType
type VisitedPy = { [PyObject]: any }
type VisitedLuau = { [any]: PyObject }
type HashEntry = { key: PyObject, value: PyObject }
type LuauFunctionRe... | 3,596 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/objects/builtins.luau | luau | .luau | local Builtins = {}
local base = require("./base")
type PyObject = base.PyObject
-- Forward references to type registration already performed in base bootstrap
-- None
export type PyNone = PyObject & { __type: "NoneType", __value: nil }
function Builtins.None(): PyNone
return base.newNone() :: PyNone
end
-- Boolea... | 2,597 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/objects/collections.luau | luau | .luau | local Collections = {}
local base = require("./base")
local builtins = require("./builtins")
type PyObject = base.PyObject
type PyType = base.PyType
export type PyList = PyObject & { __type: "list", __value: { PyObject } }
export type PyTuple = PyObject & { __type: "tuple", __value: { PyObject } }
export type PyDict ... | 4,658 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/objects/module.luau | luau | .luau | local Base = require("./base")
local Module = {}
-- Register the module type
local moduleType = Base.registerType("module", {
bases = { Base.getTypeObject("object") },
})
function Module.new(name: string, doc: string?): Base.PyObject
local dict = {
["__name__"] = Base.newPyObject("str", name),
["__doc__"] = if... | 185 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/errors.luau | luau | .luau | local errors = {}
export type Location = { line: number, column: number }
local function fmtLocation(loc: Location?): string
if not loc then
return "<unknown>"
end
return string.format("line %d, column %d", loc.line, loc.column)
end
function errors.expected(expected: string, got: string?, loc: Location?)
retur... | 214 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/expressions/binary.luau | luau | .luau | local tokens = require("../../tokens")
local nodes = require("../../ast/nodes")
local precedenceModule = require("../precedence")
export type Token = tokens.Token
export type Expr = nodes.Expr
export type CmpOp = nodes.CmpOp
export type BinaryDeps = {
precedence: typeof(precedenceModule),
parsePrimary: (state: any)... | 1,985 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/expressions/fstring.luau | luau | .luau | local tokens = require("../../tokens")
local nodes = require("../../ast/nodes")
export type Token = tokens.Token
export type Expr = nodes.Expr
export type FStringDeps = {
lexer: any,
wrapCall: (funcName: string, argList: { Expr }, baseNode: Expr, token: Token) -> Expr,
foldConcat: (parts: { Expr }, token: Token) -... | 2,400 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/expressions/init.luau | luau | .luau | -- This module handles expression parsing
local tokens = require("../tokens")
local nodes = require("../ast/nodes")
local precedence = require("./precedence")
local postfix = require("./postfix")
local lexer = require("../lexer")
local utils = require("@self/utils")
local fstringFactory = require("@self/fstring")
l... | 412 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/expressions/lambda.luau | luau | .luau | local tokens = require("../../tokens")
local nodes = require("../../ast/nodes")
export type Token = tokens.Token
export type Expr = nodes.Expr
export type Arguments = nodes.Arguments
local MAX_LAMBDA_NESTING = 64
export type LambdaDeps = {
precedence: any,
postfix: any,
parseBinaryExpression: (state: any, minPrec... | 726 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/expressions/primary.luau | luau | .luau | local tokens = require("../../tokens")
local nodes = require("../../ast/nodes")
local postfix = require("../postfix")
export type Token = tokens.Token
export type Expr = nodes.Expr
export type PrimaryDeps = {
postfix: typeof(postfix),
prefixContains: (prefix: string?, flag: string) -> boolean,
makeStringConstant: ... | 3,035 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/expressions/utils.luau | luau | .luau | local tokens = require("../../tokens")
local nodes = require("../../ast/nodes")
export type Token = tokens.Token
export type Expr = nodes.Expr
export type Arguments = nodes.Arguments
local function prefixContains(prefix: string?, flag: string): boolean
if not prefix then
return false
end
return string.find(prefi... | 854 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/init.luau | luau | .luau | local tokens = require("./tokens")
local nodes = require("./ast/nodes")
local errors = require("@self/errors")
local expressions = require("@self/expressions")
local statements = require("@self/statements")
export type Token = tokens.Token
export type Module = nodes.Module
export type Expr = nodes.Expr
export type Stm... | 691 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/postfix.luau | luau | .luau | local tokens = require("../tokens")
local nodes = require("../ast/nodes")
export type Token = tokens.Token
export type Expr = nodes.Expr
local postfix = {}
-- Forward-declared expression parser injected to avoid cycles
export type ExpressionParser = (state: any) -> Expr
-- Parse function call arguments and keywords... | 774 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/precedence.luau | luau | .luau | local precedence = {}
-- Precedence levels (lower number = lower precedence)
precedence.LEVELS = {
LAMBDA = 0,
OR = 1,
AND = 2,
NOT = 3, -- unary not
IN = 4,
NOT_IN = 4,
IS = 4,
IS_NOT = 4,
LESS = 4,
LESSEQUAL = 4,
GREATER = 4,
GREATEREQUAL = 4,
EQEQUAL = 4,
NOTEQUAL = 4,
VBAR = 5, -- bitwise or
CIRCUM... | 400 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/parser/statements.luau | luau | .luau | local nodes = require("../ast/nodes")
local precedence = require("./precedence")
local expressions = require("./expressions")
export type Expr = nodes.Expr
export type Stmt = nodes.Stmt
local statements = {}
-- Helper to recursively parse assignment targets (including nested tuples)
local function parseForTarget(sta... | 4,541 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/vm/interpreter/blocks.luau | luau | .luau | local FrameModule = require("../frame")
local Stack = require("../stack")
local Base = require("../../objects/base")
local Blocks = {}
export type Frame = FrameModule.Frame
export type Block = FrameModule.Block
local function truncateToBlock(frame: Frame, block: Block)
local target = block.stackSize
local current ... | 865 |
OMouta/PyLua | OMouta-PyLua-e6fed0e/src/PyLua/vm/interpreter/call_function.luau | luau | .luau | local FrameModule = require("../frame")
local Functions = require("../../objects/functions")
local Instructions = require("../../bytecode/instructions")
local Base = require("../../objects/base")
local State = require("./state")
local Generator = require("./generator")
local CallFunction = {}
type CallOptions = {
lo... | 1,595 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.