• Advertisement
Sign in to follow this  
  • entries
    12
  • comments
    26
  • views
    17447

Chef

Sign in to follow this  

204 views

I've always wanted to try the language that is Chef. It's the perfect example of an esoteric language. It's humorous, it's difficult to program in, and the resulting program looks funny when completed.

Unfortunately, I haven't been able to find an interpreter that I'd want to use. The Perl Module doesn't interest me, since currently I'd rather stab my eyes out with a fork than use Perl for anything bigger than 50 lines. I'm just not a Perl fan. So at the suggestion of benryves, I am writing my own interpreter. Also, at the suggestion of Seriema, I shall be making it pink. You'll see how in a minute. [grin]

I originally didn't know what language to write this interpreter in. There were two options to begin with, C++ and C#. C++ would be useful since it has a nice parsing library, Boost.Spirit. C#, on the other hand, has easy unicode support, I have a nice development environment for it (Visual studio .NET 2003). But at some point in #gamedev, javascript was mentioned, and all the wonderful memories of using javascript came back to me.

Look at the cool things you can do:

function a(b){
b([2]);
}
a(
function(c){ document.title=c; }
);

//or

var d = (function(a,b,c) { return (a+b+c)/[3] })([1],[2],[3]);


[cool]

So I'm writing my interpreter in javascript. It shall be usable via Windows Script Host or via a web page. The web page option shall indeed be Pink as Seriema suggested.

Note: I wouldn't even be considering doing it in javascript if it wasn't for Venkman for Firefox 1.5, a javascript debugger (which ordinarily only supports 0.8-1.0).

Sign in to follow this  


1 Comment


Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement