OCaml: Add a README with a configuration grammar
This commit is contained in:
parent
d43a13da95
commit
df3a9e9a68
1 changed files with 17 additions and 0 deletions
17
ocaml/README.md
Normal file
17
ocaml/README.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
## Configuration parser
|
||||
|
||||
Grammar:
|
||||
|
||||
assignment = { space }, key, { space }, equal, { space }, value, "\n"
|
||||
space = " " | "\t"
|
||||
key = letter, { letter | digit | "_" }
|
||||
equal = "="
|
||||
valuable = ( letter | digit | "_" | "-" | "~" | "/" ), { valuable }
|
||||
value = valuable, { " " | valuable }
|
||||
|
||||
Written using the ISO 14977 EBNF Notation <https://www.cl.cam.ac.uk/~mgk25/iso-14977.pdf>. In this grammar, `digit` implies `decimal digit`.
|
||||
|
||||
See also:
|
||||
- Comparison of BNF notations: <https://www.cs.man.ac.uk/~pjj/bnf/ebnf.html>
|
||||
- W3C ABNF Notation: <https://www.w3.org/Notation.html>
|
||||
- IETF RFC 5234 ABNF Notation (replaces 4234, 2234): <https://www.rfc-editor.org/rfc/rfc5234>
|
||||
Loading…
Add table
Add a link
Reference in a new issue