Latest Tweets:

Lexing et tu

I’ve been playing around with the external term format of ErlangĀ in Ruby and I figured it would be handy to be able to compile the terms from strings into the corresponding binary representation.

My google-fu is weak and I couldn’t find any lexers that would let me declaratively specify rules, so I decided to roll my own: