tags : Context Free Grammar (CFG)
What?
- Backus-Naur-Form
- Format/Notation for Context Free Grammar (CFG)
Format
- variables: Words in- <..>. Eg.- <statement>
- terminals: Multi-character strings, boldface/underline. Eg. while or WHILE. Eg- ;in Programming Languages.
- ::=: Used in place of- ->when defining- production
- |: or. Shorthand for a list of productions with the same left side.- Eg. S -> 0S1andS -> 01can be written asS -> 0S1 | 01
 
- Eg. 
- ...: “one or more” 
- []: Make things optional
- {}: Make a group of sequences
