r/Compilers • • May 31 '26

Is My lang readable?

You know how you can look at a language like Python and still understand what’s going on even if you don’t really know it?The more I look at my lang, the more I feel like the syntax is kind of horrendous. Take a look at some of the .pile files https://github.com/NoTimeDev/pile let me know what you think, it’s stack based so it doesn’t really help the syntax look any better, lol.

1 Upvotes

16 comments sorted by

View all comments

Show parent comment

6

u/Silly-Freak May 31 '26

I don't know why your comment warrants a downvote, Wikipedia literally lists several stack languages that use RPN and you answer the question that was asked.

That said, I don't think reverse polish notation leads to readable code. Java bytecode for example uses it; it's efficient for execution, but you don't write that by hand for a reason.

Is there a reason you want users to think about your language as stack oriented? If not, it could be an implementation detail, like with Java, and you expose a more traditional syntax.