New scripting language
github.com·4d·
Discuss: DEV
📚Interactive Fiction
Preview
Report Post

I'm currently working on a scripting language that aims to "make developers' lives a little sweeter". It's called Amai, it runs on a bytecode VM and is statically typed. Right now, I'm working on it solo. The current version (as of publishing this blog) has variables, if-else statements, basic expressions, and while loops. There's no documentation right now but the average Amai code looks like:

let x = 10; // immutable
var y = 10; // mutable

x += 1; // will error y += 2; // OK

while y > 0 do y -= 1; // while // you can also do blocks while y < 10 do { y += 1; }

// everything is an expression, even blocks // though if you want to make multi-statement bodies, you’ll have to use blocks l…

Similar Posts

Loading similar posts...

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