repo
stringclasses
341 values
file_path
stringlengths
29
173
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.66M
tokens
int64
2
598k
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/client/uciConsole/uciConsole.story.luau
luau
.luau
--!strict local Fusion = require(script.Parent.Parent:WaitForChild("Fusion")) local makeUCIConsole = require(script.Parent) return function(parent) local scope = Fusion.scoped({ New = Fusion.New, Hydrate = Fusion.Hydrate, Value = Fusion.Value, Computed = Fusion.Computed, Observer = Fusion.Observer, }) l...
119
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/shared/chess/board.luau
luau
.luau
--!strict local Board = {} local Notation = require(script.Parent:WaitForChild("notation")) -- Only used because the type checker is wrong local unneeded_assert = assert type boardState = { board: buffer, whiteToPlay: boolean, whiteCanCastleKingSide: boolean, whiteCanCastleQueenSide: boolean, blackCanCastleK...
2,291
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/shared/chess/engine/init.luau
luau
.luau
--!strict local WASM = require(script:WaitForChild("wasm")) local Engine = {} local Signal = require(script:WaitForChild("LemonSignal")) local inputSignal = Signal.new() local outputSignal = Signal.new() local function setListener(listener) if listener then WASM.setListener(function(output) outputSignal:Fire(...
622
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/shared/chess/engine/wasm/compiled.luau
luau
.luau
--!optimize 2 local function no_op(num) return num end local bit_lshift = bit32.lshift local bit_rshift = bit32.rshift local bit_arshift = bit32.arshift local bit_and = bit32.band local bit_or = bit32.bor local bit_xor = bit32.bxor local bit_not = bit32.bnot local bit_extract = bit32.extract local bit_replace = bit...
546,800
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/shared/chess/engine/wasm/init.luau
luau
.luau
--!strict local WASM = {} local messageListener: (string) -> ...any? = print local rust rust = require(script:WaitForChild("compiled"))({ env = { func_list = { time = os.clock, print_string = function(pointer, length) messageListener(rust.rt.load.string(rust.memory_list.memory, pointer, length)) end,...
165
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/shared/chess/notation.luau
luau
.luau
--!strict local Notation = {} Notation.FILE_NUMBER_TO_NAME = buffer.fromstring("abcdefgh") Notation.SQUARE_NUMBER_TO_NAME = table.create(63) Notation.SQUARE_NAME_TO_NUMBER = {} for x = 0, 7 do for y = 0, 7 do local name = buffer.readstring(Notation.FILE_NUMBER_TO_NAME, x, 1) .. y + 1 Notation.SQUARE_NUMBER_TO_N...
669
Someon1e/chess_wasynth
Someon1e-chess_wasynth-358279b/src/shared/chess/openings/init.luau
luau
.luau
local data = require(script:WaitForChild("data")) local openings = {} function openings.getFromMoves(moves) return data[moves] end return table.freeze(openings)
37
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/place/ServerScriptService/MainModule.luau
luau
.luau
--[[ TheNexusAvenger Loader for Nexus VR Backpack. --]] --!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") return function() --Copy NexusVRBackpack to ReplicatedStorage if it doesn't exist already. --Client setup is up to Nexus VR Character Model or the game creator. if Replicated...
110
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/place/ServerScriptService/TestLoader.server.luau
luau
.luau
--[[ TheNexusAvenger Loads Nexus VR Backpack on the server for testing. --]] local TOTAL_TEST_TOOLS = 9 local ServerScriptService = game:GetService("ServerScriptService") local StarterPack = game:GetService("StarterPack") local HttpService = game:GetService("HttpService") --Create the test tools. for i = 1, TOTAL...
235
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/place/StarterPlayerScripts/TestLoader.client.luau
luau
.luau
--[[ TheNexusAvenger Loads Nexus VR Backpack on the client for testing. --]] local Workspace = game:GetService("Workspace") local ReplicatedStorage = game:GetService("ReplicatedStorage") local GuiService = game:GetService("GuiService") local RunService = game:GetService("RunService") local UserInputService = game:Get...
542
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/CharacterBackpack.luau
luau
.luau
--Backpack associated with a character. --!strict local PROCESSED_KEYCODES_WHITELIST = { [Enum.KeyCode.ButtonL3] = true, --Left thumbstick. [Enum.KeyCode.ButtonR3] = true, --Right thumbstick. } local VRService = game:GetService("VRService") local Workspace = game:GetService("Workspace") local Players = game:G...
1,438
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/State/Inventory.luau
luau
.luau
--Simple state manager for the tools the player has access to. --!strict local Inventory = {} Inventory.__index = Inventory export type Inventory = { Containers: {Instance}, Tools: {BackpackItem}, Events: {RBXScriptConnection}, ToolsChangedEvent: BindableEvent, ToolsChanged: RBXScriptSignal, } & t...
644
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/UI/Backpack3D.luau
luau
.luau
--Class for the backpack in 3D space. --!strict local UI_PHYSICAL_SCALE = 0.5 local TweenService = game:GetService("TweenService") local ToolGrid = require(script.Parent:WaitForChild("ToolGrid")) local Inventory = require(script.Parent.Parent:WaitForChild("State"):WaitForChild("Inventory")) local Backpack3D = {} Ba...
1,501
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/UI/ToolGrid.luau
luau
.luau
--Hexagon grid for showing tools. --!strict local ToolIcon = require(script.Parent:WaitForChild("ToolIcon")) local ToolGrid = {} ToolGrid.__index = ToolGrid export type ToolGrid = { IconGroups: {{ToolIcon.ToolIcon}}, AdornFrame: Frame, FocusedIcon: ToolIcon.ToolIcon?, } & typeof(setmetatable({}, ToolGrid...
1,190
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/UI/ToolIcon.luau
luau
.luau
--Class for a tool icon. --!strict local ToolIcon = {} ToolIcon.__index = ToolIcon export type ToolIcon = { Focused: boolean, Players: Players, TweenService: TweenService, RelativePositionX: number, RelativePositionY: number, Background: ImageLabel, ToolText: TextLabel, ToolImage: Imag...
1,395
TheNexusAvenger/Nexus-VR-Backpack
TheNexusAvenger-Nexus-VR-Backpack-2f19c89/src/init.luau
luau
.luau
--Main module and API for Nexus VR Backpack. --!strict local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local CharacterBackpack = require(script:WaitForChild("CharacterBackpack")) local NexusVRBackpack = {} NexusVRBackpack.Enabled = true export type NexusVRBa...
883
dig1t/red
dig1t-red-6d81056/examples/rojo/Client/_init.client.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local red = require(ReplicatedStorage.Packages.red) red.subscribe(function(action: red.Action<any>) if action.type == "PLAYER_KILL" then print(`{action.payload} was killed!`) end end) -- "get" will wait for a result local data = red.get({ type = "GET...
100
dig1t/red
dig1t-red-6d81056/examples/rojo/Server/Controllers/PlayerController.luau
luau
.luau
local PlayerController = {} function PlayerController.kill(player: Player): boolean? local character = player.Character :: Model? local humanoid = character and character:FindFirstChildOfClass("Humanoid") :: Humanoid? if humanoid then humanoid.Health = 0 print(player.Name .. " was killed!") return true ...
150
dig1t/red
dig1t-red-6d81056/examples/rojo/Server/Handlers/Loader.luau
luau
.luau
local red = require(game.ReplicatedStorage.Packages.red) return function(bind: red.Bind) bind("GET_DATA", function(_player: Player) print("Getting data...") task.wait(1) return { type = "DATA", payload = { data = "Hello, world!" }, } end) end
72
dig1t/red
dig1t-red-6d81056/examples/rojo/Server/Handlers/PingPong.luau
luau
.luau
local red = require(game.ReplicatedStorage.Packages.red) return function(bind: red.Bind) bind("PING", function(player: Player) red.dispatch(player, { type = "PONG" }) end) end
48
dig1t/red
dig1t-red-6d81056/examples/rojo/Server/Handlers/Player.luau
luau
.luau
local red = require(game.ReplicatedStorage.Packages.red) local PlayerController = require(script.Parent.Parent.Controllers.PlayerController) return function(bind: red.Bind) bind("PLAYER_KILL", function(player: Player) local success = PlayerController.kill(player) if success then red.dispatch(true, { type = "...
124
dig1t/red
dig1t-red-6d81056/examples/rojo/Server/_init.server.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local red = require(ReplicatedStorage.Packages.red) local Loader = require(script.Parent.Handlers.Loader) local PingPong = require(script.Parent.Handlers.PingPong) red.useHandlers({ Loader, PingPong, }) -- Alternatively you can use red.useHandlers(scr...
88
dig1t/red
dig1t-red-6d81056/examples/server-bind/init._server.luau
luau
.luau
--!nocheck local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Util = require(ReplicatedStorage.Packages.Util) local red = require(ReplicatedStorage.Packages.red) red.bind("PLAYER_TELEPORT", function(player, payload) if Util.isAlive(player) then task.wai...
241
dig1t/red
dig1t-red-6d81056/src/Constants.luau
luau
.luau
return { REMOTE_FOLDER_NAME = "redRemotes", STORE_TIMEOUT = 6, -- seconds to wait before rejecting a get() promise }
31
dig1t/red
dig1t-red-6d81056/src/Types.luau
luau
.luau
--!strict export type BindCallback = (Player, ActionPayload<any>) -> () export type Bind = (string, BindCallback) -> () export type ActionPayload<T> = T export type Action<T> = { uid: string?, method: string?, player: Player?, timeout: number?, type: string, payload: ActionPayload<T>, success: boolean?, err:...
104
dig1t/red
dig1t-red-6d81056/src/init.luau
luau
.luau
--!strict local Store = require(script.Store) local Types = require(script.Types) export type ActionPayload<T> = Types.ActionPayload<T> export type Action<T> = Types.Action<T> export type BindCallback = Types.BindCallback export type Bind = Types.Bind export type Handler = Types.Handler return Store
66
dig1t/red
dig1t-red-6d81056/src/redUtil.luau
luau
.luau
--!strict local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local Constants = require(script.Parent.Constants) local Util = {} function Util.getRemotes(): { Client: RemoteEvent, UnreliableClient: UnreliableRemoteEvent } local remotes = RunService:IsClie...
296
wizevaxel/pnguin
wizevaxel-pnguin-065efbd/.lune/build.luau
luau
.luau
local process = require("@lune/process") local INIT_PATH = "src/init.luau" local BUNDLE_PATH = "bin/PNGuin.luau" local RBXM_PATH = "bin/PNGuin.rbxm" local function buildPesde() local result = process.exec("darklua", {"process", INIT_PATH, BUNDLE_PATH}) assert(result.ok, result.stderr) end local function buildRBXM...
145
wizevaxel/pnguin
wizevaxel-pnguin-065efbd/.lune/bump.luau
luau
.luau
local process = require("@lune/process") local fs = require("@lune/fs") local serde = require("@lune/serde") local PESDE_CONFIG_PATH = "pesde.toml" local function writeVersion(version: string) local data = fs.readFile(PESDE_CONFIG_PATH) local config: {version: string} = serde.decode("toml", data) config.version = ...
150
wizevaxel/pnguin
wizevaxel-pnguin-065efbd/src/Decoding/HuffmanTree.luau
luau
.luau
--!strict --!native --!optimize 2 local BitStream = require("../Parsing/BitStream") type BitStream = BitStream.BitStream type HuffmanNode = { [number]: HuffmanNode } & {sym: number?} export type HuffmanTree = { root: HuffmanNode, Read: (self: HuffmanTree, stream: BitStream) -> number } local function Read(self...
606
wizevaxel/pnguin
wizevaxel-pnguin-065efbd/src/Decoding/Parser.luau
luau
.luau
--!strict --!native --!optimize 2 local BitStream = require("../Parsing/BitStream") type BitStream = BitStream.BitStream export type Parser = { _output: buffer, _outputPos: number, _outputChunks: {buffer}, window: buffer, windowPos: number, windowSize: number, stream: BitStream, ToOutput: (self: Parser, v...
1,050
wizevaxel/pnguin
wizevaxel-pnguin-065efbd/src/Decoding/Zlib.luau
luau
.luau
--!strict --!native --!optimize 2 local HuffmanTree = require("../Decoding/HuffmanTree") local Parser = require("../Decoding/Parser") local BitStream = require("../Parsing/BitStream") type BitStream = BitStream.BitStream type HuffmanTree = HuffmanTree.HuffmanTree type Parser = Parser.Parser local lenBase = { 3, 4,...
1,735
wizevaxel/pnguin
wizevaxel-pnguin-065efbd/src/Parsing/BitStream.luau
luau
.luau
--!strict --!native --!optimize 2 export type BitStream = { data: buffer, len: number, pos: number, offset: number, Bits: (self: BitStream, width: number) -> number, UInt: (self: BitStream, width: number) -> number, String: (self: BitStream, length: number) -> string, Align: (self: BitStream) -> () } local r...
430
wizevaxel/pnguin
wizevaxel-pnguin-065efbd/src/Parsing/ByteStream.luau
luau
.luau
--!strict --!native --!optimize 2 export type ByteStream = { data: buffer, len: number, pos: number, UInt: (self: ByteStream, width: number, big: boolean?) -> number, String: (self: ByteStream, length: number) -> string, } local readMap = { [1] = buffer.readu8, [2] = buffer.readu16, [4] = buffer.readu32 } ...
262
wizevaxel/pnguin
wizevaxel-pnguin-065efbd/src/Parsing/ChunkStream.luau
luau
.luau
--!strict --!native --!optimize 2 local Types = require("../Types") local ByteStream = require("../Parsing/ByteStream") type PNGInfo = Types.PNGInfo type ColorType = Types.ColorType type ByteStream = ByteStream.ByteStream export type ChunkStream = { info: PNGInfo, stream: ByteStream, Read: (self: ChunkStream, ch...
993
wizevaxel/pnguin
wizevaxel-pnguin-065efbd/src/Types.luau
luau
.luau
--!strict --!optimize 2 export type PNGInfo = { IDAT: buffer, PLTE: buffer, tRNS: buffer?, width: number, height: number, bitDepth: number, colorType: ColorType, hasAlpha: boolean, channels: number, --[=[ Decodes IDAT chunks into (RGBA) pixel data @within PNGInfo @return buffer -- Pixel data @re...
147
wizevaxel/pnguin
wizevaxel-pnguin-065efbd/src/init.luau
luau
.luau
--!strict --!native --!optimize 2 local Types = require("@self/Types") local ChunkStream = require("@self/Parsing/ChunkStream") local ByteStream = require("@self/Parsing/ByteStream") local Zlib = require("@self/Decoding/Zlib") local Filter = require("@self/Decoding/Filter") type PNGInfo = Types.PNGInfo local PNGuin ...
490
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Builds/Plugin.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local pluginRoot = script:FindFirstAncestor("PluginRoot") local UserInterface = require(pluginRoot.Main.UserInterface) local Plugin = {} -- Public function Plugin.build(plugin: Plugin) if RunService:IsStudio() and RunService:IsEdit() then local unmount =...
101
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Components/Viewers/LegacyViewSelector.luau
luau
.luau
--!strict local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) type AxisProps = { Text: string, Color: Color3, Vector: Vector3, Thickness: UDim, ZIndex: number, } local function Axis(props: AxisProps) local x, y = props.Vector.X, props.Vector.Y local rotat...
756
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Hooks/init.luau
luau
.luau
--!strict return { useConstant = require(script.useConstant), useRefProperty = require(script.useRefProperty), }
25
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Hooks/useConstant.luau
luau
.luau
local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useConstant<T...>(create: () -> T...): T... local ref = React.useRef(nil :: any) if not ref.current then ref.current = { packed = table.pack(create()) } end return table.unpack(ref.current....
84
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Hooks/useRefProperty.luau
luau
.luau
--!strict local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local function useRefProperty<T>(ref: { current: Instance? }, property: string, default: T) local value, setValue = React.useState(default) React.useEffect(function() if not ref.current then se...
156
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Stories/Helpers/CreateStory.luau
luau
.luau
--!strict local pluginRoot = script:FindFirstAncestor("PluginRoot") local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) local React = require(pluginRoot.Packages.React) local function createStory(component: React.FC<any>) return function(target: Frame) local element = React.createElement(component, {}) ...
123
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Stories/Helpers/Stories.storybook.luau
luau
.luau
--!strict local pluginRoot = script:FindFirstAncestor("PluginRoot") local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) local React = require(pluginRoot.Packages.React) return { name = "BetterViewSelector", storyRoots = { script.Parent.Parent }, react = React, reactRoblox = ReactRoblox, }
76
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/Stories/LegacyViewer.story.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") :: RunService local pluginRoot = script:FindFirstAncestor("PluginRoot") local React = require(pluginRoot.Packages.React) local stories = script:FindFirstAncestor("Stories") local CreateStory = require(stories.Helpers.CreateStory) local uiRoot = script:FindF...
357
EgoMoose/better-view-selector
EgoMoose-better-view-selector-7257e06/src/Main/UserInterface/init.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local StudioService = game:GetService("StudioService") :: StudioService local SelectionService = game:GetService("Selection") :: Selection local pluginRoot = script:FindFirstAncestor("PluginRoot") local ReactRoblox = require(pluginRoot.Packages.ReactRoblox) l...
1,034
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/src/roblox-studio-theme.luau
luau
.luau
--!strict --[[ Extracts colors from the current Roblox Studio theme to print as a JSON. Used for inspecting the colors available in the current theme. Run this in Roblox Studio from the command bar, then save the JSON in the output. ]] const HttpService = game:GetService("HttpService") const modifiers = Enum.Stud...
184
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/attribute-function-no-param.luau
luau
.luau
@attr_1 @attr_2 local function a() end local b = @attr_1 @attr_2 function() end c(@attr_1 @attr_2 function() end) @attr_1 local function d() end local e = @attr_1 function() end f(@attr_1 function() end) @attr_1 @attr_2 local function g() end @attr1 local function h() end ---@doc_comment @attr_1 local function i...
111
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/const-declaration.luau
luau
.luau
const x = 5 const MY_CONST = "hello" const y: number = 10 const function foo() return 1 end
31
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-anonymous-functions-1.luau
luau
.luau
local x = function() call(1) end
11
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-anonymous-functions-2.luau
luau
.luau
call(function() foo("bar") end)
10
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-anonymous-functions-3.luau
luau
.luau
local x = function(...) end
6
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-anonymous-functions-4.luau
luau
.luau
local x = function(a, b, ...) end
10
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-assignment-1.luau
luau
.luau
x = 1
4
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-assignment-2.luau
luau
.luau
a, b = 1, true
8
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-assignment-3.luau
luau
.luau
-- Crazy assignment code from AmaranthineCodices a, b, c.d.e[f][g][1], h:i().j[k]:l()[m] = true, false, 1, 4
45
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-assignment-4.luau
luau
.luau
a = 1 b = 2
10
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-assignment-5.luau
luau
.luau
gui.Label.Text = "LOADING DATA" .. ("."):rep(dotCount)
17
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-binops.luau
luau
.luau
a = foo and bar b = foo and bar or baz c = 1 + 2 * 3 - 4 ^ 2 d = a + i < b / 2 + 1 e = 5 + x ^ 2 * 8 f = a < y and y <= z g = -x ^ 2 h = x ^ y ^ z
83
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-body-with-spaces.luau
luau
.luau
do end
3
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-call-1.luau
luau
.luau
call() call(1) call(1, 2)
13
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-call-2.luau
luau
.luau
x.y("a") x:y("b")
10
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-do.luau
luau
.luau
do call() end
5
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-exponents.luau
luau
.luau
local num = 1e5 local num2 = 1e-5 local num3 = 1e+5
27
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-fractional-numbers.luau
luau
.luau
local num = 0.5 local num2 = 0.5e5 local num3 = .5 local num4 = .5e5 local num5 = 1.
42
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-function-declaration-1.luau
luau
.luau
function x() call() end
6
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-function-declaration-2.luau
luau
.luau
function x.y:z() end
7
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-function-shortcuts.luau
luau
.luau
call { x = 1 } call "hello"
11
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-generic-for-loop-1.luau
luau
.luau
for index, value in pairs(list) do call(index, value) end
16
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-generic-for-loop-2.luau
luau
.luau
for index, value in next, list do call(index, value) end
16
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-goto-as-identifier.luau
luau
.luau
-- goto as an identifier is permitted in lua 5.1 self.goto("foo")
19
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-gt-lt.luau
luau
.luau
call(1 < 2) call(1 <= 2) call(2 > 1) call(2 >= 1) call(x >= y)
33
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-if-1.luau
luau
.luau
if x then call() end
7
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-if-2.luau
luau
.luau
if x then foo() else bar() end
12
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-if-3.luau
luau
.luau
if x then foo() elseif y then bar() end
14
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-if-4.luau
luau
.luau
if x then foo() elseif y then bar() else baz() end
19
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-index-1.luau
luau
.luau
local x = a.b.c
6
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-index-2.luau
luau
.luau
local x = call("a").b
8
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-local-assignment-1.luau
luau
.luau
local x
2
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-local-assignment-2.luau
luau
.luau
local x = 1
5
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-local-assignment-3.luau
luau
.luau
local a, b = 1, 2 local c, d = 3, 4 local e, f = 5, 6
32
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-local-assignment-4.luau
luau
.luau
local x, y
4
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-local-assignment-5.luau
luau
.luau
local x = 1 -- Then a comment local y = 1
17
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-local-function-1.luau
luau
.luau
local function x() call(1) end
10
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-local-function-2.luau
luau
.luau
local function foo(a, b) end local function bar(...) end local function baz(a, b, ...) end
24
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-mixed-indented-comments.luau
luau
.luau
-- Indented single line --[[ Indented multi line ]]
18
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-comments-1.luau
luau
.luau
--[[ such comments much lines wow ]]
14
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-comments-2.luau
luau
.luau
--[=[ never have i used these weird equals signs comments but im sure someone does ]=]
21
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-comments-3.luau
luau
.luau
--[=[ --[[ ]=]
5
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-comments-4.luau
luau
.luau
--[=====[ lua be like ]====] still going ]=====]
17
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-comments-5.luau
luau
.luau
--[[ local emotes = { [":thinking:"] = "http://www.roblox.com/asset/?id=643340245", [":bug:"] = "http://www.roblox.com/asset/?id=860037275" } ]]
57
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-comments-6.luau
luau
.luau
local function x(...--[[comment here]]) end
9
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-comments-7.luau
luau
.luau
--[=[ μέλλον ]=] -- some text here
16
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-comments-8.luau
luau
.luau
--[[👨🏾‍💻]] local more_code = here
18
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-comments-9.luau
luau
.luau
--[=[ This description starts one line down, And has a line in the middle, followed by trailing lines. ```lua function test() print("indentation") do print("more indented") end end ``` @class indentation ]=]
60
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-string-1.luau
luau
.luau
local x = [[Full Moon is a lossless Lua parser]]
16
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-string-2.luau
luau
.luau
local x = [=[This is several equal signs]=]
14
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-string-3.luau
luau
.luau
local x = [[ local emotes = { [":thinking:"] = "http://www.roblox.com/asset/?id=643340245", [":bug:"] = "http://www.roblox.com/asset/?id=860037275" } ]]
60
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-string-4.luau
luau
.luau
call([[doge]])
5
ryanlua/roblox-studio-vscode-theme
ryanlua-roblox-studio-vscode-theme-3690651/tests/full-moon-lua-multi-line-string-5.luau
luau
.luau
local emoji = [[🧓🏽]] local more_code = here
17