The PyGgy spec file is used to specify grammars for a parsing engine. PyGgy files are made up of a number of rules. There are two types of rules in the spec file: precedence rules and production rules.