Found in 1 comment on Hacker News
If you want to create a complete language (or just understand what would go into such a process), I cannot recommend this book highly enough:

http://www.amazon.com/Language-Construction-Kit-Mark-Rosenfe...

See also his website:

http://zompist.com/kit.html

Fresh book recommendations delivered straight to your inbox every Thursday.