Unfinished side project inspared by JavaScript
It's just a stupid interpeter for my poor language
by king_geedorah on 7/29/23, 2:34 AM
Thanks for sharing. I had a good laugh looking through your source and seeing that "kys" killed the interpreter. I threw together a trivial fizzbuzz in it for fun.
n = 1
goto main
#fizzbuzz
if n % 3 == 0 && n % 5 == 0
print "fizzbuzz"
goto increment
if n % 3 == 0
print "fizz"
goto increment
if n % 5 == 0
print "buzz"
goto increment
print n
#increment
n = n + 1
#main
if n <= 100
goto fizzbuzz
kys
by mattbgates on 7/28/23, 11:19 PM
Nice to play around with it. Don't sell yourself short. It ain't easy to write a language, but you did.
by yellowapple on 7/29/23, 6:10 AM
I give it 2 years tops before this ends up in production somewhere.
by boothby on 7/29/23, 1:53 AM
This is fun, thanks for sharing! I'm currently developing a much worse language and I've spent quite a few hours on it. I think that the space of simple languages is very enlightening to explore. If nothing else, returning to a full-featured language after spending days programming in something horrid is a breath of fresh air.
by atahanacar on 7/29/23, 10:28 AM
Did you just machine translate everything on the page or does Turkish syntax work too?