Project Prometheus - Full of Spirit

| No Comments | No TrackBacks
I have been working on the basic setup of the lisp interpreter for a while now, and I am starting to realize that there are so many things I forgot about writing compilers, that I need to get the good old tiger book out again.

cover100.jpg


When I was studying, we used Flex and Bison to setup up lexer and parser. This time around, I decided to use spirit which is part of the boost libraries. Admittedly, in the beginning this choice has given me quite a few headaches. I thought I had C++ pretty well worked out, but the template magic that is used here is just incredible and somewhat mind-boggling in the beginning. 

However, as I am stubborn sod, I finally got it to work, and the final solution for my grammar, I have ended up with so far do have a nice conciseness as well as very nice simplicity to it. Not only that, but no external tools  like Flex and Bison are reqiured; everything is C++ driven.


No TrackBacks

TrackBack URL: http://www.lai.as/cgi-bin/mt/mt-tb.cgi/10

Leave a comment

About this Entry

This page contains a single entry by gorm published on July 5, 2009 10:38 PM.

Project Prometheus - Definitions & Requirements was the previous entry in this blog.

Live coding with lisp is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

  • Games
OpenID accepted here Learn more about OpenID
Powered by Movable Type 5.01