Which (I recently learned) is what Forth does. I’ve heard it described as “the only grammar in Forth are the blank characters” :).
Comment on "Growing a Language" by Guy Steele (1998) [53min]
Zyansheep@programming.dev 1 year ago
The logical conclusion of this is to let the syntax and parser of the language itself be modified by users in a modular fashion :D
Crul@lemm.ee 1 year ago
troyunrau@lemmy.ca 1 year ago
So python then. On the first order level, there’s operator overriding and duck typing, which achieves this highly modular syntax. But deeper down, there’s the ast module that lets you rewrite your own interpreter at runtime and other wacky shit.