grammar = pyparsing.Combine(Literal('from') + Literal(':') + Word(pyparsing
    .alphas))
grammar.parseString('from : mary')
grammar.parseString('from:mary')
How to disallow spaces in between literals in pyparsing?