Re: Tutorial question (Jack Crenshaw)

"Louis P. Santillan" <slshmeat@SDF.LONESTAR.ORG>
22 Dec 2002 10:39:03 -0500

          From comp.compilers

Related articles
Tutorial question (Jack Crenshaw) (Fis}{) (2002-12-19)
Re: Tutorial question (Jack Crenshaw) slshmeat@SDF.LONESTAR.ORG (Louis P. Santillan) (2002-12-22)
Re: Tutorial question (Jack Crenshaw) (Huub Pistoor) (2002-12-22)
Re: Tutorial question (Jack Crenshaw) (Marco van de Voort) (2002-12-22)
Re: Tutorial question (Jack Crenshaw) (2002-12-24)
Re: Tutorial question (Jack Crenshaw) (Fis}{) (2003-01-07)
Re: Tutorial question (Jack Crenshaw) (2003-01-12)
| List of all articles for this month |

From: "Louis P. Santillan" <slshmeat@SDF.LONESTAR.ORG>
Newsgroups: comp.compilers
Date: 22 Dec 2002 10:39:03 -0500
Organization: Posted via Supernews,
References: 02-12-088
Keywords: courses
Posted-Date: 22 Dec 2002 10:39:03 EST

On 19 Dec 2002, Fis}{ wrote:
> I would like to know if there is any interest in further tutorials
> based on the ones that Jack Crenshaw wrote. Maybe this is old history
> and technique has evolved, I don't know.

I also translated Jack Crenshaw's tutorials to JavaScript with x86 code
generation. I was able to translate through tutorial 3 before I had to
take care of midterms. I'm using an extended version of the C-based
JavaScript Intrepreter that is included in the Mozilla Project (the
SpiderMonkey JavaScript Engine <>).
I added some necessary "C-style" file IO methods to the interpreter and a
couple other utility methods that I found useful. Currently, I have my
version of the JS Interpreter building on MacOSX, Linux, and an older
version of SpiderMonkey building on DOS though I am sure one version or
the other will build on Win32 with either CygWin or MinGW. Everything I
added has an ANSI/POSIX C implementation.

Getting back to the point...I stopped my translations because I wished to
implement Jack's use of Pascal's set comparison in a JS module.
Personally, I always missed Pascal's set comparison when I began learning
other languages like C, C++, Java. Being able to write

if( c in [ '', TAB ] ) {...}

always seemed pretty cool to me. Far cleaner and easier to read than a
long switch-case statement. Really, I would like to see an updated
version of Jack Crenshaw's tutorials and I might be interested spending
some time on this. Personally, I would like to see them written in either
C with heavy use of modern data structures (lists and trees derived from
struct's) or Java. A JavaScript implementation wouldn't be so bad either,
IMO. I think some consolidation of concepts and techniques would also be
in order. If you need some help, I'd be willing to read over your work
and offer my opinions and suggestions. Contact me off ng.

SDF Public Access UNIX System -

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.