The Artima Developer Community
Sponsored Link

Heron-Centric: Ruminations of a Language Designer
On Implementing an Interpreter
by Christopher Diggins
April 7, 2007
Summary
Would you like to know how to write an interpreter? Many programmers have asked me the question, so I wrote a short article explaining how the Cat interpreter works in detail.

Advertisement

Many programmers would like to know how to implement an interpreter, so I've written an article ( http://code.google.com/p/cat-language/wiki/HowTheInterpreterWorks ) explaining step-by-step how the Cat interpreter works, using psedo-code and links to the public domain C# source files. The grammar parsing and abstract syntax tree (AST) generation classes were designed to be pluggable into any application, and is also public domain.

Cat is a functional stack-based programming language implemented in C#. While the Cat interpreter itself is released under the MIT license, all of the source code files are public domain. This means you can use them as-is in any project without obligation.

Talk Back!

Have an opinion? Be the first to post a comment about this weblog entry.

RSS Feed

If you'd like to be notified whenever Christopher Diggins adds a new entry to his weblog, subscribe to his RSS feed.

About the Blogger

Christopher Diggins is a software developer and freelance writer. Christopher loves programming, but is eternally frustrated by the shortcomings of modern programming languages. As would any reasonable person in his shoes, he decided to quit his day job to write his own ( www.heron-language.com ). Christopher is the co-author of the C++ Cookbook from O'Reilly. Christopher can be reached through his home page at www.cdiggins.com.

This weblog entry is Copyright © 2007 Christopher Diggins. All rights reserved.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2014 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us