Hypnotic Syntax
Keywords like Focus, Relax, induce, observe or deepFocus bring hypnotic metaphors directly into your code.
Modern scripting with hypnotic syntax and a solid Rust foundation
# Clone repository
git clone https://github.com/Kink-Development-Group/hyp-runtime.git
cd hyp-runtime
# Build HypnoScript CLI in release mode
cargo build -p hypnoscript-cli --release
# Optionally install globally (binary is called hypnoscript)
cargo install --path hypnoscript-cli
Pre-built artifacts (Windows, macOS, Linux) can also be found in the release/ folder and under GitHub Releases.
Focus {
entrance {
observe "Welcome to HypnoScript!";
}
induce name: string = "Developer";
observe "Hello, " + name + "!";
induce numbers: number[] = [1, 2, 3, 4, 5];
induce sum: number = ArraySum(numbers);
observe "Sum: " + ToString(sum);
if (sum lookAtTheWatch 10) deepFocus {
observe "The memory is now becoming more intense.";
}
}
hypnoscript exec my_script.hyp
# Interactive debug mode with breakpoints
hypnoscript exec my_script.hyp --debug --breakpoints 10,25
HypnoScript combines the elegance of modern programming languages with a unique, hypnotically inspired syntax. The Rust implementation provides you with:
youAreFeelingVerySleepy (==) or underMyControl (&&)..hyp examples and regression tests in the repository demonstrate real language features.HypnoScript is open source and available under the MIT License.