Skip to content

Instantly share code, notes, and snippets.

View Frityet's full-sized avatar
😁
I LOVE LUA! ❤️

Frityet

😁
I LOVE LUA! ❤️
View GitHub Profile
@Frityet
Frityet / fsm.tl
Created August 14, 2026 21:38
FSM.tl
-- fsm.tl
------------------------------------------------------------
-- Common state interface
------------------------------------------------------------
local interface State
tag: string
end
This file has been truncated, but you can view the full file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:llvm:clang:22.1.8:ast-dump-json-schema",
"title": "Clang 22.1.8 JSON AST dump",
"description": "Schema for one JSON object emitted by Clang 22.1.8's JSON AST dumper (-Xclang -ast-dump=json or equivalent frontend APIs). The format is version-pinned because upstream explicitly provides no stability guarantee between major Clang releases.",
"$comment": "Derived from clang/lib/AST/JSONNodeDumper.cpp, clang/include/clang/AST/JSONNodeDumper.h, ASTNodeTraverser.h and the Decl/Stmt/Type/Comment node tables at llvmorg-22.1.8. JSON Schema cannot detect duplicate object member names in the byte stream; see README.",
"$ref": "#/$defs/astObject",
"$defs": {
"pointer": {
"type": "string",
local threading = require("threading")
local floor, sqrt = math.floor, math.sqrt
local insert, concat = table.insert, table.concat
local RESET = string.char(27) .. "[0m"
local CLEAR_LINE = string.char(27) .. "[2K"
local SHADES = " .'`^\",:;Il!i><~+_-?][}{1)(|\\/tfjrxnuvczXYUJCLQ0OZmwqpdbkhao*#MW&8%B@$"
local PRESETS = {
#import <AsyncRT/Application/UI/Surface/Web/Web.h>
#pragma clang assume_nonnull begin
@namespace(AsyncWebUIExampleJSON)
+ (OFString *)stateWithCounter: (unsigned long long)counter
message: (OFString *)message
source: (OFString *)source;
+ (OFString *)echoWithPayloadJSON: (OFString *nillable)payloadJSON
#ifndef ASYNCRT_BUILD_H
#define ASYNCRT_BUILD_H
#import <ObjFW/ObjFW.h>
#pragma clang assume_nonnull begin
@class Build;
@class BuildBase;
#import <stdio.h>
#import "AsyncRuntime.h"
#pragma clang assume_nonnull begin
@namespace(Utilities)
+ (Promise *)delayForSeconds: (OFTimeInterval)seconds onScheduler: (AsyncScheduler *)scheduler;
@end
#import "jsobjc.h"
#import "dom.generated.h"
#include <emscripten/emscripten.h>
EM_JS(void, install_demo_interop, (), {
class BaseGreeter {
constructor(name) {
this.name = name;
}
#include <stdio.h>
#include <stdint.h>
#import <ObjFW/ObjFW.h>
int
main(void)
{
void *pool = objc_autoreleasePoolPush();
OFMemoryStream *stream;
#include <type_traits>
#define $return using result =
#define $apply using apply =
template<class A, class B>
constexpr auto equals = std::is_same_v<A, B>;
template<typename T>
using call = typename T::result;
#include <cstdio>
#include <string_view>
#include <string>
#include <memory>
#include <unordered_map>
#include <typeindex>
#include <variant>
#include <optional>
#include <functional>
#include <type_traits>