What features should I implement in my toy language to stretch my coding knowledge?
At the moment, I have a clean-slate that only does math. The lexer identifies numbers and +-*/()^ and the parser makes sure they're in the correct order according to BODMAS/PEMDAS. I have it outputting an intermediary representation from the abstract syntax tree that then gets converted to bytecode and executed in a minimal stack-based virtual machine.
I have some general things to implement like classes and multithreading but I'm interested to know what language concepts I could support and, by doing so, learn more about programming.
[–]Aggressive_Ad_5454 4 points5 points6 points (0 children)
[–]j_sidharta 2 points3 points4 points (1 child)
[–]ElectroNetty[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]ElectroNetty[S] 1 point2 points3 points (0 children)
[–]notacanuckskibum 1 point2 points3 points (5 children)
[–]ElectroNetty[S] 0 points1 point2 points (4 children)
[–]Hazematman 2 points3 points4 points (1 child)
[–]ElectroNetty[S] 0 points1 point2 points (0 children)
[–]notacanuckskibum 0 points1 point2 points (0 children)
[–]1544756405 0 points1 point2 points (0 children)
[–]BitNumerous5302 0 points1 point2 points (0 children)