https://github.com/wolfadex/ulv-lang
A fun toy language inspired by Forsp
https://github.com/wolfadex/ulv-lang
Last synced: 8 months ago
JSON representation
A fun toy language inspired by Forsp
- Host: GitHub
- URL: https://github.com/wolfadex/ulv-lang
- Owner: wolfadex
- Created: 2025-08-08T21:06:59.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-08T22:01:53.000Z (10 months ago)
- Last Synced: 2025-08-09T00:11:32.143Z (10 months ago)
- Language: Elm
- Size: 52.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ulv Lang 🐺
Some examples
```ulv
# a comment
55 # an integer
3.14159 # a float
"some words" # a string
2 3 + # math, that equals 5
23 :age # a variable
(1 2 3) # a quote of 3 values
^age # push the value of `age` to the stack, in this case `23`
@Ok # A tag. Essentially a word that doesn't do anything but can be used for denoting info
# e.g.
1 2 compare # puts @LT on the stack
# how about some built-ins!
force # pop a quote and execute it
stack # duplicates the stack, onto the stack
print # pops and prints the top value
+ - * / # your basic math operators
(1 2 3) (1 +) map # (2 3 4)
(1 2 3) 0 (+) fold # (6)
(1 2 3) reverse # (3 2 1)
```