Creating TokenGrammarSlots for keywords, regularExpressions and characters.