[Json] Fwd: JSON Content Rules

Daniel P <danielaparker@gmail.com> Wed, 24 January 2018 17:51 UTC

Return-Path: <danielaparker@gmail.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3B16C1270A3 for <json@ietfa.amsl.com>; Wed, 24 Jan 2018 09:51:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lO41K7scJz-f for <json@ietfa.amsl.com>; Wed, 24 Jan 2018 09:51:05 -0800 (PST)
Received: from mail-ot0-x232.google.com (mail-ot0-x232.google.com [IPv6:2607:f8b0:4003:c0f::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4694E12706D for <json@ietf.org>; Wed, 24 Jan 2018 09:51:05 -0800 (PST)
Received: by mail-ot0-x232.google.com with SMTP id d9so4316722oth.6 for <json@ietf.org>; Wed, 24 Jan 2018 09:51:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=8sAAS2biPR2Lbr6u8Q6t33205BPO7c8HxzQ9OwR5Qxs=; b=V6KLnte0MsX9vNbOaToqtVGOsmigt6VoJfHYVSiRcR5lvM3zET+5uQqHk6o4uYHD1Q 2vg9eHQfsgARz8YwTvKpbdwSHOHSinZWsz1a+HQvnXCJfpdqvfsSHjJ7RB6/xZcf245/ jOvDPidvRm2WaXI08+OCq+IYCcMwE6DxcoYC9SJaTjbSudlGGlnbpeXQ4PG4QuhBioba HZ+t/U8V+OR/FEVHZTcdaDbON+pcR3sEwtvvnEaZ91x4Hb+wam+3sAbMmb1BMNV+CEhM cj10eT9+VvoeBrwweoLpEJAnlojANra/cg4iCJ/0kJVHX85sYR3uZMQX0tjDsrpIjqmZ WTaQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=8sAAS2biPR2Lbr6u8Q6t33205BPO7c8HxzQ9OwR5Qxs=; b=kpBqByOvumGEWW93C+vpsUVfZ3zp8JTGvCPky+vA/7tbF8jteBQdQh2zVUYu47T7rq j51noSNfj1rWLap/oBygF3ZGyDwZERRjr2TmRGu0aZ/QztkWr0uDcYNIp83YJqqGxyJf SLasD5MMWxNjA1SQwPgwTcvQkPqhv9oYzOU0h2DlA3sADoxmUknK9i1F50PuQWgMPSBi yeZ9CcPSYtmYgtBJmkvRPC8wIDFlzjsayXXTMtUt2e7ky/yoKeB711h3xJqzIWtk8TwA YYs9in1NuONjXnVxa1LQZTPxhyEfAE3ANbfZVSO62jmc8RudyLAROTV7f6VfQ9uTDjXe 7Ncg==
X-Gm-Message-State: AKwxytdJ+A4LsfE9tbbWapugNjH4DS+v8S9+eUMbw2FsYsxMdqwDOAIH paQQrLjcZs2izEjn/jBXaPR/zlZkw9qIvitsLOM=
X-Google-Smtp-Source: AH8x225ZR2v1a0SF/oqvRgPmhyduvVw+pLhqiTtU6ZrV1cvJI/Bi/be++07sR0tfJw1yiYlFKe5kNBtYPYegdbnQPDg=
X-Received: by 10.157.89.203 with SMTP id u11mr10474894otg.319.1516816264138; Wed, 24 Jan 2018 09:51:04 -0800 (PST)
MIME-Version: 1.0
Received: by 10.157.27.139 with HTTP; Wed, 24 Jan 2018 09:51:03 -0800 (PST)
In-Reply-To: <CA+mwktL7zfs0BLjcgjwOBk9my75A958sJc_vzMTdfLp39Xe_rA@mail.gmail.com>
References: <CA+mwktJU4xVHxRzgd=dcCKvUv3Om3qeBEhqTaW2sniLQ95+QDA@mail.gmail.com> <a36fc644-d3be-201e-b044-ed371fe7e52b@codalogic.com> <CA+mwktJ-YZBGExPeCTxCcwo6F1Ln5ZaDajRMOnm=RimUxnFqnQ@mail.gmail.com> <dbca1021-72ed-8c5f-7849-33f12bc420eb@codalogic.com> <CA+mwktL7zfs0BLjcgjwOBk9my75A958sJc_vzMTdfLp39Xe_rA@mail.gmail.com>
From: Daniel P <danielaparker@gmail.com>
Date: Wed, 24 Jan 2018 12:51:03 -0500
Message-ID: <CA+mwktJo9pDou1Uk-E_qGTkp4z3Sy0zUy7iGzov14m2BJUTMUQ@mail.gmail.com>
To: JSON WG <json@ietf.org>
Content-Type: multipart/alternative; boundary="f4030435be949d15780563894e12"
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/_IRguZt8D3mBCziCZxM2yyewwts>
Subject: [Json] Fwd: JSON Content Rules
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Jan 2018 17:51:07 -0000

On Wed, Jan 24, 2018 at 11:09 AM, Pete Cordell <petejson@codalogic.com>
 wrote:

> JCR works in terms of rules ... JCR doesn't do macro substitution.

Of course, but the issue is whether the grammar needs to distinguish
between name rule specifications and
value rule specifications. I don't think that it does, and I don't think
that that provides any meaningful benefit to
the user, compared to the loss in simplicity of the syntax. That's just my
opinion, of course, but I would be
interested to see what others on the list think.

> My background is C++.

Mine too, but if you want a C++ inspired solution, you might want to study
the C++ rules for template method disambiguation :-)

Daniel
https://github.com/danielaparker/jsoncons