An open API service indexing awesome lists of open source software.

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

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)
```