About lexing

Earlier I wrote about having issues with regular expressions for lexing and parsing.

Well my suspicions have been confirmed after reading Rob Pike’s take on using regular expressions for this purpose: http://commandcenter.blogspot.com/2011/08/regular-expressions-in-lexing-and.html

 

This doesn’t mean I won’t look further into seeing how to use regex’s for parsing the syntax down the track. But I am more than happy with the performance of just plain old looping over characters.

About Steve
Steve is the developer of Metadrone.