Re:Tiny stack-based language implementation (61 sloc, Python)
by WalterGR on Sunday November 07, 2021 @10:24AM
(#29140174)
The only examples are in the source.
[ Parent
| on HN ]
Re:Tiny stack-based language implementation (61 sloc, Python)
by richard_shelton on Sunday November 07, 2021 @10:30AM
(#29140234)
If you are familiar with Forth, Postscript, or Joy you should have no problems with programming in Fortik :)
Still, the idea of Fortik is to encourage students to learn how simple interpreters work and to extend the language.
Re:Tiny stack-based language implementation (61 sloc, Python)
by WalterGR on Sunday November 07, 2021 @10:47AM
(#29140386)
Is the first assignment to reverse-engineer the language spec from the interpreter?
Re:Tiny stack-based language implementation (61 sloc, Python)
by richard_shelton on Sunday November 07, 2021 @11:12AM
(#29140636)
Basically, yes, so I tried to make a simple implementation as possible. And I'm taking into account that students are already familiar with postfix notation and stack data structure. Of course, I use additional sources (like the popular Crafting Interpreters book) in the teaching process.