diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-03-11 04:04:13 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-03-11 04:04:13 -0400 |
commit | e89df8aad15c2d9a86f9a5bc04657fded6494f17 (patch) | |
tree | 7aef9bdc3aca2d7f5f2044de2206f330dd7ebdea /ebnf.md | |
parent | 94263bdaba6e3761eb58d3f6ebf4708d91f2c042 (diff) |
Function call (not working)
Diffstat (limited to 'ebnf.md')
-rw-r--r-- | ebnf.md | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -0,0 +1,30 @@ +# EBNF language description + + + decimal digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ; + decimal literal = decimal digit, {decimal digit}, [".", {decimal digit}]; + + octal digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7"; + octal literal = "0o", octal digit, {octal digit}, [".", {octal digit}]; + + hex digit = decimal digit | "A" | "B" | "C" | "D" | "E" | "F" | "a" | "b" | "c" | "d" | "e" | "f"; + hex literal = "0x", hex digit, {hex digit}, [".", {hex digit}]; + + binary digit = "0" | "1"; + binary literal = "0b", {binary digit}, [".", {binary digit}]; + + numeric literal = binary literal | hex literal | octal literal | decimal literal; + + character = ? any unicode character except "\" ?; + escape sequence = "\", ("u", hex digit, {hex digit} | ? any ascii character except "u" ?); + + character literal = "'" (character | escape sequence) "'"; + + singlet literal = character literal | numeric literal + + string literal = "\"", {character | escape sequence}, "\"" + + literal = singlet literal | string literal + + + |