Home > General > About lexing

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.

 

 

 

 

 

 

 

Categories: General
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.