I made a programming language called Zen, wanted to share some examples (opens in new tab)  ⚙️Compiler Design

Hey, I've been working on this for a while now and finally feel okay sharing some code examples. Zen is a statically typed language that compiles to native binaries through LLVM. Still a work in progress but the core stuff works. One thing I'm kind of proud of is reactive variables. It's a first class feature where a variable automatically recomputes when something it depends on changes: int cartItems = 3 int pricePerItem = 50 reactive int total = cartItems * pricePerItem screen(`Total: $${to...

Read the original article
Sign in to keep reading the full article.

Cited by 1 article

dev.to··DEV

Keyboard Shortcuts

Navigation

Next / previous item
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help