John Lam 1997 — 2026

Getting Started with the DLR: ToyScript

House

At the Compiler DevLab that we hosted a couple of weeks ago, we threw together a quick starter kit for folks interested in building languages on top of the DLR. You can grab a copy of ToyScript here.

The DLR experiences presentation that I gave at the DevLab is probably the best source of docs (outside of the IronPython 2.0 Alpha sources) for folks interested in building a compiler using the DLR.

Update: fixed the link to the DLR Experiences talk.

6 archived reader comments

Josh Charles (2007-06-05)

Wow! Downloaded it and taking a look around - this looks great! I’ve had trouble understanding compiler source code before, but after a few minutes looking around, it was making sense!

Thanks for posting!

Mike Moore (2007-06-05)

Looks great!

Also, you are linking to Jim’s “Zen of the DLR” file instead of your presentation.

Clinton Begin (2007-06-09)

Sweet, can’t wait for LOLCODE .NET (see http://lolcode.com)

Nick Johnson (2007-06-14)

Why wait? (http://www.lolcode.net/)

I wrote it before I found out about the DLR, though, so it’s just plain CLR stuff. I took a look at the DLR and didn’t find enough information to work from, but hopefully this provides what I need. Once the language has solidified a little more, I may look at converting the compiler to use the DLR. Depending on how ‘dynamic’ the language ends up, of course.

Lars (2007-06-20)

This is a great intro to DLR. Is there any information, how to extend this to simple classes with functions ?

Lars

荒井省三のBlog (2007/07/21)

<strong>[DLR]ASTネタというか独自の言語実装を考える方に</strong>

DLRにおける抽象構文木(AST)の解析について というエントリに対して、 興味深いトラックバック をNyaRuRuさんからいただきました。NyaRuRuさんのエントリでは、独自の言語プロバイダを実装してDLRのASTを調べるというものです。…