Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Rather than prose, the syntax for a machine-parsed data format is often defined as a formal grammar, using BNF or similar notation: https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_Form

For example, this is how CSS syntax is defined: http://www.w3.org/TR/CSS2/grammar.html

or JSON: http://json.org/

or HTTP: https://www.ietf.org/rfc/rfc2616.txt



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: