I’m looking for a high level overview of how one goes from an AST to working code via the DLR, does anyone have (a link for) something like that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is a good 3 part tutorial about building a basic language from the parsing to the actual tree construction to the dlr mapping.
http://www.bitwisemag.com/2/DLR-Build-Your-Own-Language
All the current DLR specs and documents are located here:
http://dlr.codeplex.com/wikipage?title=Docs%20and%20specs&referringTitle=Documentation
This tutorial is the one that I used to learn the DLR:
http://www.dotnetguru.org/us/dlrus/DLR2.htm
It builds a custom version of javascript on the DLR.
And if all else fails you can look here:
http://myjscript.codeplex.com/sourcecontrol/changeset/view/8678?projectName=MyJScript#109043
to see the actual parser implementation, though I would probably recommend using Antlr as your parser. That’s what I use, though I’ve got a fair bit of Antlr experience:)