Tweak the parser

So that the basic half parsing (determine if command string is erroneous
before it is even executed) function is there.