User loginNavigation |
archivesDesigning an alternative to s-expressions for language extensibilityWhile designing my own programming language, I experimented a lot with syntax, but I quickly determined that there are three things I really wanted:
This was an incremental process that I barely documented as I went through it, but in the end I think I came up with something interesting, a kind of syntax that I call o-expressions. I have thought about it a good deal post hoc so that I could explain and justify my findings and I am at a point where I would appreciate some external feedback and criticism. I wrote two blog posts about it: First, this post describes Liso, a translation of my syntax to s-expressions. It contains many examples, so you can get an intuitive grasp of it. It demonstrates a concrete use as syntactic sugar for Lisp-like languages and I implemented it as a Racket #lang, so you can try it out if you want (source). My second post is more theoretical. In it I build o-expressions from scratch using principles that I believe are essential to language extensibility. I plan to keep working on the syntax and port it to other languages, so feedback would be very welcome :) |
Browse archivesActive forum topics |
Recent comments
22 weeks 3 days ago
22 weeks 3 days ago
22 weeks 3 days ago
44 weeks 5 days ago
48 weeks 6 days ago
50 weeks 4 days ago
50 weeks 4 days ago
1 year 1 week ago
1 year 5 weeks ago
1 year 5 weeks ago