A simple LR-Parser implementation in Scala