Remove literals in parser rules

Try to remove literals from parser rules to avoid problems
with ANTLR. But there are still some remain.