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.

0 Upvotes

16 comments sorted by

View all comments

Show parent comment

8

u/Proffhackerman May 31 '26

You can very well write a stack-based language without forcing the syntax to be stack-based.

Take a look at how Roslyn (C# and Visual Basic) lowers to CIL, which is a stack-based IR.

https://github.com/dotnet/roslyn

https://en.wikipedia.org/wiki/Common_Intermediate_Language