r/ProgrammingLanguages • u/BetterEquipment7084 • Apr 23 '26
Lutra | stack based toy language just started
Hi
I wanted to learn OCaml, but I don't really got that much time, so I thought, why don't I write a small stack based language for myself
I also got up a verse in latin so it didn't take many minutes after I got basics working to just do it all in latin
I also try to see if I can manage to use it for some of my needs for checking for my other tasks and actually make a usable tool.
https://codeberg.org/trondelag/lutra
So does someone one have some tips for how to go on, important bits to implement or make
I have if, if else, do/for, while, variables/functions, some basic stack manipulation and basic math so far
All with latin ocean themed names
I ask now for any and all criticism or feedback or tip
Only dependency is ocaml
--the other project--
View all comments
Show parent comment
1
u/BetterEquipment7084 Apr 24 '26
Thanks, it is just a toy project, so it makes me not think of anything but having fun here
Stack based like this is also really fun to work with, I did make a lisp before once, and a small lisp in lisp too, but this is a lot more fun
Is there some good way for the translations, or should I just keep with Google translate, it works so may just use it