cdiggins.com

March 26, 2007

Rewriting Strategies

Filed under: Everything — cdiggins @ 8:42 am

So I’ve been rambling lately about term rewriting, and possibly using a domain specific language (DSL) to express optimizations. Inspired by Prolog I’ve come up with a prototype DSL. A small sample follows:

  inverse(swap, swap)
  inverse(’a add, ‘a sub) 
  $f $g | inverse($f, $g) == id

I have posted an extended example of how this language might look to the concatenative mailing list.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress