Author Topic: Crafting Interpreters  (Read 277 times)

Offline TomToad

  • Full Member
  • ***
  • Posts: 120
Crafting Interpreters
« on: September 20, 2017, 10:10:13 AM »
Came across this site http://www.craftinginterpreters.com/.  It is a web page teaching how to make an interpreter.  First part uses Java, and second part uses C++ C.  I haven't read far into it yet, but looks pretty decent.

Edit:  Oops, should've said C, not C++, and the book isn't completed.  Still a lot to learn there, and porting from Java to BlitzMax, Monkey, etc... should be simple enough.
------------------------------------------------
8 rabbits equals 1 rabbyte.

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 660
Re: Crafting Interpreters
« Reply #1 on: September 20, 2017, 10:27:20 AM »
Thanks for sharing  :)
Windows 10, 64-bit, 8Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 750 Ti (2Gb)

Offline Xaron

  • Full Member
  • ***
  • Posts: 226
Re: Crafting Interpreters
« Reply #2 on: September 20, 2017, 12:01:59 PM »
Yeah that's a lovely book. Very well written! Second part uses C by the way and is not written yet. ;)

Offline col

  • Full Member
  • ***
  • Posts: 173
Re: Crafting Interpreters
« Reply #3 on: September 20, 2017, 03:26:39 PM »
Looks like a good introduction.

One of the great things about writing an interpreter and then compiling it is that you can use the interpreter for 'live' static compilation/analysis, similar to what Visual Studio does for example. A pretty cool feature to have in any editor/dev toolkit.

Offline Rooster

  • Sr. Member
  • ****
  • Posts: 319
  • I don't know what this does...
Re: Crafting Interpreters
« Reply #4 on: September 20, 2017, 04:28:36 PM »
I've been wanting to learn more about how stuff worked under the hood, thanks! ;D

Offline sphinx

  • Full Member
  • ***
  • Posts: 182
    • Ancientsoft
Re: Crafting Interpreters
« Reply #5 on: September 20, 2017, 06:54:19 PM »
Nice reading indeed.
Kind regards,
Maher F. Farag
www.ancientsoft.com
www.osakit.com

Offline MikeHart

  • Sr. Member
  • ****
  • Posts: 362
Re: Crafting Interpreters
« Reply #6 on: September 20, 2017, 07:43:27 PM »
I have attached a few documents that I studied during my language phase. :-)


My favorite tool is Coco/R. And there the Pascal version. They say that Coco/R weakness was that you couldn't handle includes/imports in source code you parse. Well I managed it. :-)

Offline sphinx

  • Full Member
  • ***
  • Posts: 182
    • Ancientsoft
Re: Crafting Interpreters
« Reply #7 on: September 20, 2017, 07:45:50 PM »
I have attached a few documents that I studied during my language phase. :-)


My favorite tool is Coco/R. And there the Pascal version. They say that Coco/R weakness was that you couldn't handle includes/imports in source code you parse. Well I managed it. :-)
WOW...that's great!
Thanks Mike and please keep it coming, pleeeeaaaassssseeeeeee :)
Kind regards,
Maher F. Farag
www.ancientsoft.com
www.osakit.com

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 660
Re: Crafting Interpreters
« Reply #8 on: September 20, 2017, 10:00:46 PM »
I always liked Pascal - and indeed C at college :)

I'll take a look at your docs, sounds interesting - thanks...Ah Crenshaw, I've read that - good stuff.
Windows 10, 64-bit, 8Gb RAM, CPU Intel i5, 3.2 GHz, Nvidia GeForce GTX 750 Ti (2Gb)