Best way to convert this Ruby code to Elixir?

Thanks for pointing that out. I found the post you’re referring to. One aspect I wasn’t aware of… @rvirding mentions that leex/yecc is faster since it doesn’t need to evaluate all of my regex patterns one-at-a-time. This is desireable to me, since the Ruby version could slow down when lexing/parsing large files. I think I’ll spend some time diving into this more deeply. Thanks!