quick poc scanner implementation in rb.
TODO: tuning, feed token regex, prettier messages and so on.