Adds grammar rules and supports basic parsing.