a simple scala parser based on parsec