tags:

views:

813

answers:

5

I'm interested in studying how an interpreter works, and LOLCODE makes me laugh, so: What's the best OpenSource LOLCODE interpeter? Bonus points for providing a decent REPL.

+3  A: 

Depends on your favorite/"best-to-understand" language - for example, here's a Java and a Perl open source interpreter.

schnaader
+2  A: 

While maybe not the "best" one, I think it's pretty cool that someone from DLR team actually created a LOLCode interpreter based on the DLR, with full access to the .NET Framework.

OregonGhost
+1  A: 

Certainly without a definition of "best", there's little way to answer this question with any certainty. I'm writing an LOLCODE interpreter (http://pgfoundry.org/projects/pllolcode/) to support LOLCODE as a language for writing stored procedures in the PostgreSQL database. (Why, you ask? Because I wanted to learn how.) This interpreter is written in C, and uses Bison and Flex for parsing. These seem to be "best" choices in this case because that's what PostgreSQL itself uses. If you're more familiar with, say, Perl, the Perl-based interpreter is probably better.

+1  A: 

I know it's not an interpreter, but I've used the Lolcode.net implementation, and it worked rather well for me. It follows the specifications relatively well, except for a few things (like arrays).

Also, I got it to run in Linux using Mono, if Linux compatibility is important to you.

DLH
+2  A: 

My favorite implementation is LOLPython

So, great plus if you're a python fan. :)

And if you wanted to make changes to what's already defined, it's pretty simple. :D

townsean