Ruby-based parser