Pur
- 🧾 Pur (esolang)
Pur is a minimalist, chaotic esolang created in 2025. It is defined by its strict syntactic rules and playful, food-themed version names. Pur is designed to be expressive, Turing complete, and intentionally cursed. 🍝 Syntax Rules
Pur has a few sacred rules:
No spaces
No commas
No closing parentheses
All code is written using open parentheses and raw identifiers
Keywords are lowercase and tightly packed
Example:
``` vardef(counter(0 frvr( if=(counter(10(brk vardef(counter(1 end( end( ```
This is a counting machine. As an esolang, I of course made a truth-machine:
``` into(inp if=(inp(0(flag prt(0 exit( end( if=(inp(1(flag frvr( prt(1 end( end( ```
🧠 Core Constructs Keyword Purpose
``` vardef( Define or update a variable rvar( Read a variable func( Define a function rfunc( Call a function if=( Conditional (equals) if!=( Conditional (not equals) frvr( Infinite loop brk( Break out of loop exit( Terminate program prt( Print to output end( Equivalent to }. For ending functions, if statements, etc. quit( Equivalent to exit(, but with argument 1 being message for exit and argument 2 being exit code, like quit(G'bye!(0 ```
- 🎓 Turing Completeness
Pur is Turing complete. A working Turing machine simulator has been written in Pur that flips bits on a tape and halts when it reaches a blank cell. This proves Pur can simulate arbitrary computation.
- 🍬 Version History
Pur versions are named after food, inspired by Android’s dessert codenames. Version Codename 1.5 Pancit Canton 1.51 Noodles 1.6 Pandesal 1.7 Beefburger 1.8 Sweet Potato Fries 1.9 Pumpkin Spice Pie 2.0 Alphaghetti (planned)
- Sample Programs
🧪 Sample Program: Hello World ``` prt(Hello, World! ```
or
``` func(worldofpain prt(Hello, World! end( rfunc(worldofpain ```
🧪 Sample Program: Turing Machine (simplified) ``` vardef(ptr(0 vardef(cell0(1 vardef(cell1(0 vardef(cell2(1 frvr( if=(ptr(0(p0 if=(p0(True( if=(cell0(1(flip if=(flip(True( vardef(cell0(0 end( vardef(ptr(1 brk( end( exit( end( ```
🧃 Philosophy
Pur is designed to be:
Minimalist: Only essential/cool constructs
Chaotic: Syntax rules force creative expression
Expressive: Capable of real computation
Fun: With food-themed versions and cursed logic
Pur is licensed in there is no license. You heard me right! No license!