Sponsored Link •
|
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.
Have an opinion? Be the first to post a comment about this weblog entry.
If you'd like to be notified whenever Christopher Diggins adds a new entry to his weblog, subscribe to his RSS feed.
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. |
Sponsored Links
|