The Backus-Naur Form (BNF) is a common way to define a grammar.