• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making an interpreter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making an interpreter


  • Subject: Re: Making an interpreter
  • From: Dan Sugalski <email@hidden>
  • Date: Sat, 7 Jun 2003 00:45:36 -0400

At 5:12 PM +0200 6/6/03, Daniele M. wrote:
hello, i would to make an interpreter for a "new scripting language"
of mine. Unfortunatly i don't know more about this topic
(parse/translate and code interpreting) so i'm searching for books/pdf
and other docs. Anyon can help me?
Is there around the net some example? book?

For interpreters? There's nothing like this, so far as I know. What you're probably best off with is some of the general-purpose compiler texts, then either hand-roll an interpreter or find an interpreter to suit your needs.

I'd recommend "Structure and Interpretation of Computer Programs" or "Modern Compiler Design". The former is rightly considered a classic but is very Scheme-based. The latter is much more geared towards more familiar procedural and OO languages.

For an interpreter, I'd go grab an existing one. The JVM is well-supported, albeit somewhat poorly suited for non-Java languages. There's Guile, which is an embeddable Scheme interpreter, so if you have your parser generate scheme (which isn't that tough), it's a good choice. You might also want to take a look at Parrot (http://parrotcode.org), which is a more general-purpose interpreter. (Two caveats with Parrot--it isn't done, and I'm doing the design, so I'm somewhat biased)

Alternately, you might want to consider just using an existing interpreter. Perl, Ruby, Guile, Lua, and Python are all available, and I think Fink has an INTERCAL interpreter if that's more your style. :)
--
Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
email@hidden have teddy bears and even
teddy bears get drunk
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Making an interpreter (From: "Daniele M." <email@hidden>)

  • Prev by Date: Re: Unjustified CPU load with a simple Document .app
  • Next by Date: Re: Comments & Documentation (was Re: semantics of init)
  • Previous by thread: Making an interpreter
  • Next by thread: Re: Making an interpreter
  • Index(es):
    • Date
    • Thread