Skip to main content

Vulpin Banner

Vulpin is a tiny, single character command scripting language that runs on top of C!
It was designed to let you write the smallest possible program's.



installation Installation

  • Go to Vulpin Website

  • Then tab to the Download button on novbar

  • and Download and Install the version of Vulpin that you want!

Quick Start Quick Start

  1. Create a .vul file. Like hello.vul:
    G "Hello World!"
    
  2. Run it:
    vulpin hello.vul
    

[!TIP] You can remove spaces in your app! dont worry about it! Because if you do that you can build your smallest program like this:

G"Hello World"


basic syntax Basic Syntax

name="Armin"
G"Hello"           # Prints with newline
P"Loading..."      # Prints without newline
G 5 + 3            # Prints 8
Gname            # Prints value of variable name

output Output

Hello
Loading...8
Armin

input Input

K user "Your name: "
G"Hi, " + user

# Typed input (invalid  default value)
K age"Age: "I        # Integer (default 0)
K price"Price: "F    # Float (default 0.0)
K letter"Guess: "L   # Single letter (default "")

Kinput"K can write like this! :)"

Type characters for K:

Char Type Default if invalid
I Integer 0
F Float 0.0
N Number (int/float) 0
L Single letter ""
W Word (letters only) ""
E Lowercase only ""
U Uppercase only ""
A Letters + spaces ""
P Alphanumeric + spaces ""

vars Variables

x=10               # Direct assignment
name="Vul"

A"x"+5             # x = x + 5
S"name""Vul""VUL"  # Replace in string
D"y"               # Delete variable

String shortcuts:

Shortcut Method Example ($msg.S)
.U upper() "hello".U"HELLO"
.L lower() "HELLO".L"hello"
.S strip() " hi ".S"hi"
.T title() "hi there".T"Hi There"
.C capitalize() "hello".C"Hello"

delay Delay

D1          # wait 1 second
D0.5        # wait 0.5 seconds
D delay    # wait the value of variable

modules Imports

You can Import C or Vulpin Modules with using U.

U"os"
G os.getcwd()
os.system("echo Hello")

U"math"
G math.sqrt(16)

control flow Control Flow

if else If / Else

score=85
? score >= 90
    G"A"
:
? score >= 80
    G"B"
:
    G"C"
;
;

jump Conditional Jump

x=5
? x > 3 J skip
G"Not printed"
L skip
G"Printed"

while While Loop

i=0
@ i < 5
    G i
    i=i+1
&

infinite loop Infinite Loop

@1
    G"Running forever..."
&

for range For‑Range Loop

O i 0 5            # 0,1,2,3,4
    G i # or Gi
&

O x 10 0 -2        # 10,8,6,4,2
    G x # or Gx
&

switch case Switch / Case

fruit="apple"
W fruit
V"banana"
G"yellow"
V"apple"
G"red or green"
N
G"unknown"
Z

lables and jumps Labels & Jumps

J end
G"Skipped"
L end
G"Done"

Functions Functions

F add(a, b)
    R a + b
~

G add(3, 4)       # 7

F greet(name)
    G"Hello " + name
~

greet("World")

error handling Error Handling

T
    x=10
    y=0
    G x/y        # division by zero!
C"err"
    G"Error: " + err
Y
G"Continues..."

output Output

Error: division by zero
Continues...

complete examples Complete Examples

hello world Hello World

G"Hello World"

guess Guessing Game

U"random"
secret=random.randint(1,10)
tries=0
L guess
K"num""Guess (1-10): ""I"
tries=tries+1
? num=secret
    G"Correct! Tries: "+tries
    Q
:? num<secret G"Higher"
: G"Lower"
;
;
J guess

factory Factorial

F factorial(n)
    ? n<=1
        R 1
    ;
    R n*factorial($n-1)
~

G factorial(5)   # 120

information Checking vul version

To check the version of Vul you are running:

vulpin version

Output:

Vul 0.8

build Build your apps!

vulpin build

fix Troubleshooting

Let's fix your problems!

  • Python Type Hint Syntax Error: this is known error in new Vulpin version like you can see it at most in version 0.5 but thats easy to fix!

sotn Some of the notes

  • Spaces are optional after commands. G"Hi" and G "Hi" both work.
  • The dot operator (like os.name) works correctly in the latest release. If you encounter issues, use the --debug flag to see detailed parser output.

licence License

MIT LICENCE. CHECK OUT LICENCE. ICONS ARE UNDER LICENCE TOO.


party popper

Happy coding with Vulpin!

Sponsers:

FluxCast

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vulpin-0.9.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vulpin-0.9-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file vulpin-0.9.tar.gz.

File metadata

  • Download URL: vulpin-0.9.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for vulpin-0.9.tar.gz
Algorithm Hash digest
SHA256 5fe363b9e4179a1d3d18822a11c474b491d966710f0eff7899d32e9b88ae3190
MD5 f7600a76cf0189fa22bec1688a264b59
BLAKE2b-256 6924b087b05c1657a7c068ea73cbc10246054206a30a34189eed093b0d0d46e6

See more details on using hashes here.

File details

Details for the file vulpin-0.9-py3-none-any.whl.

File metadata

  • Download URL: vulpin-0.9-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for vulpin-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 75b6a68ca6a3d034d18ff4ebd2831489d3e4ac1fd74a10a0de04f70600ce49da
MD5 0bb33751e0db1c75ec9d08bf892fa653
BLAKE2b-256 5afe3f50c67acfcef9192c0fe2f1468c73dc2e24f32c3a3a4b66391a3bb6a880

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9 This release

2 files

0.8

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page