Functions that define grammar rules for the parser.