journal.stuffwithstuff.com » Blog Archive » Extending Syntax from Within a Language
A big goal with my little language Magpie is to do as much as possible at the library level and keep the core language small. I’ve been toiling for the past few weeks and I finally moved a huge chunk of Magpie over to the library side: all infix operators are now defined and implemented in Magpie. As far as the core language is concerned, it doesn’t even have operators.
Not only can you now define your own infix operators, including specifying precedence and associativity, but other large chunks of Magpie syntax are now defined at the library level.
Wonderful, simply wonderful. I encourage you to read the whole article and I encourage myself to try Magpie soon...