User loginNavigation |
Designing 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 :) By Olivier Breuleux at 2014-01-31 22:51 | LtU Forum | previous forum topic | next forum topic | other blogs | 12902 reads
|
Browse archives
Active forum topics |
Recent comments
27 weeks 1 day ago
27 weeks 2 days ago
27 weeks 2 days ago
49 weeks 3 days ago
1 year 1 week ago
1 year 3 weeks ago
1 year 3 weeks ago
1 year 5 weeks ago
1 year 10 weeks ago
1 year 10 weeks ago