Re: [NTLK] Feasibility of getting away from NTK

From: Daniel Parnell (daniel_at_automagic-software.com)
Date: Fri May 21 2004 - 14:59:02 PDT


G'day All,

        writing a compiler is a little different to writing a scripting
language.
Having written a couple of both in the past, I can say that using the
lex/yacc combination is really doing things the hard way.
There are more modern tools available that make the process a lot more
enjoyable.
I would recommend taking a look at SableCC (http://www.sablecc.org/) as
it does a lot of the grunt work for you, allowing you to concentrate on
writing your compiler (or interpreter).

I've been toying with the idea of making a NewtonScript compiler for a
while now myself, but unfortunately at the moment I have no time to
actually work on one :(

Daniel

On 21/05/2004, at 11:43 PM, Zachery Bir wrote:

> On May 21, 2004, at 7:15 AM, Scot McSweeney-Roberts wrote:
>
>> I found on flipcode.com at http://www.flipcode.com/tutorials.shtml a
>> tutorial on implementing a scripting language, and while it's
>> orientated
>> towards games developers looking to add a scripting engine to thier
>> games, it does introduce the basics of writing a compiler for a
>> bytecode
>> interpreted language (lex/flex, yacc/bison etc)
>
> Scot,
>
> That's great! Thanks. I'll be soaking it all up.
>
> Zac
>
> --
> This is the NewtonTalk list - http://www.newtontalk.net/ for all
> inquiries
> Official Newton FAQ: http://www.chuma.org/newton/faq/
> WikiWikiNewt for all kinds of articles:
> http://tools.unna.org/wikiwikinewt/
>
>

-- 
This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries
Official Newton FAQ: http://www.chuma.org/newton/faq/
WikiWikiNewt for all kinds of articles: http://tools.unna.org/wikiwikinewt/


This archive was generated by hypermail 2.1.5 : Fri May 21 2004 - 16:00:01 PDT