this post was submitted on 24 Feb 2026
585 points (97.7% liked)

Programmer Humor

30090 readers
2524 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] KindaABigDyl@programming.dev 9 points 4 days ago* (last edited 4 days ago)

Here is the grammar:

<json> ::=              <value> | <fn-def> <json>
<value> ::=             <object> | <array> | <string> | <number> | <bool>
                        | <fn-def> | <fn-app>
                        | "null"
<object> ::=            "{" [ <member> { "," <member> } ] "}"
<member> ::=            <string> ":" <value>
<string> ::=            "\"" { <char> } "\""
<char> ::=              (ASCII other than "\"", "\\", 0-31, 127-159)
                        | (Unicode other than ASCII)
                        | ( "\\" (
                            "\"" | "\\" | "/" | "b" | "f" | "n" | "r" | "t"
                            | "u" <hex> <hex> <hex> <hex>
                        )
<hex> ::=               /A-Fa-f0-9/
<array> ::=             "[" [ <value> { "," <value> } ] "]"
<number> ::=            <integer> [ <fraction> ] [ <exponent> ]
<integer> ::=           "0" | /[1-9]+/ | "-" <integer>
<fractional> ::=        "." /[0-9]+/
<exponent> ::=          ("E" | "e") [ "-" | "+" ] /[0-9]+/
<bool> ::=              "true" | "false"
<fn-def> ::=            "(" <ident> { <ident> }
                            ("->" <value> | ":" <string> <string>) ")"
<ident> ::=             <startc> { <identc> }
<startc> ::=            /A-Za-z_/ or non-ASCII Unicode
<identc> ::=            <startc> | /[0-9-]/
<fn-app> ::=            "(" <ident> { <value> } ")"
<var> ::=               "$" <ident>