A popular method way of defining grammatical rules of a language or data type is to use a graphical method called Syntax Diagrams