define tokens and grammar