Sunday, 11 December 2011

Metaprogramming: parsing with active patterns

The F#.NET Journal just published an article about metaprogramming:

"Metaprogramming is the art of writing programs that manipulate other programs and includes writing compilers and interpreters as well as more exotic tools such as theorem provers. This article walks through the construction of a mini ML interpreter and, in particular, uses a novel approach to parsing based upon F# active patterns. This allows us to write a lexer and parser for a toy functional language in under 100 lines of vanilla F# code..."

To read this article and more, subscribe to The F#.NET Journal today!

No comments: