MParser: working version with support for basic grammar