Backus–Naur form

The Backus–Naur form (BNF) is a metasyntax used to express context-free grammars...

BNF FOR SOQL http://wiki.apexdevnet.com/index.php/BNF_FOR_SOQL

Salesforce