[apps-discuss] RFC 6570: what is the dot for in section 3?

Francis Galiegue <fgaliegue@gmail.com> Fri, 15 March 2013 13:24 UTC

Return-Path: <fgaliegue@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 232E921F8D42 for <apps-discuss@ietfa.amsl.com>; Fri, 15 Mar 2013 06:24:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P5BUxdDgW6xt for <apps-discuss@ietfa.amsl.com>; Fri, 15 Mar 2013 06:24:05 -0700 (PDT)
Received: from mail-ea0-x22d.google.com (mail-ea0-x22d.google.com [IPv6:2a00:1450:4013:c01::22d]) by ietfa.amsl.com (Postfix) with ESMTP id A56B621F85FC for <apps-discuss@ietf.org>; Fri, 15 Mar 2013 06:24:00 -0700 (PDT)
Received: by mail-ea0-f173.google.com with SMTP id h14so1574393eak.32 for <apps-discuss@ietf.org>; Fri, 15 Mar 2013 06:23:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=rb0Boy962CloqmNiTsIZH4UX/L7INFmXfO76XLpu+dg=; b=eyXehcUrGUX3tLmQAmsl792UyFKAOlgeythztfXJBLPua8qf172FMlRaJffgg7LZmr 6KjprgVkHGqd85/3bf9QPXuNvM0jYqFoNIfV2Ob76bfNFKD7lFUZRnS+L1Hb8iG7BVb7 4zP5SbLh3dSWu1FqliWqs+Sag7VIVJwGRbO9bndLtX+Q5yNmFgPAk7lxqe6kKqN8HzYc H6Z0b/GQS/mlF/eBWqpwhrPrdF0ZTbCoGf/fe+J6E2gMCGVGWnxqICGl0FbpWC4DgpBG eKf1ymeCY9nKveKSj/B0fHB730YlcCLCpJ9PhxvfaLi0Fyc1PUAgLPVlR8FVNLB5Synd 3snQ==
MIME-Version: 1.0
X-Received: by 10.14.209.131 with SMTP id s3mr18136071eeo.26.1363353839733; Fri, 15 Mar 2013 06:23:59 -0700 (PDT)
Received: by 10.14.1.7 with HTTP; Fri, 15 Mar 2013 06:23:59 -0700 (PDT)
Date: Fri, 15 Mar 2013 14:23:59 +0100
Message-ID: <CALcybBA8naUpYfHdQXx7Lv-6-Y8+P+KLmahTjQDNxb2Rvtn3QA@mail.gmail.com>
From: Francis Galiegue <fgaliegue@gmail.com>
To: apps-discuss@ietf.org
Content-Type: text/plain; charset="UTF-8"
Subject: [apps-discuss] RFC 6570: what is the dot for in section 3?
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 15 Mar 2013 13:24:06 -0000

Hello,

The grammar for a variable name reads as such:

     varspec       =  varname [ modifier-level4 ]
     varname       =  varchar *( ["."] varchar )
     varchar       =  ALPHA / DIGIT / "_" / pct-encoded

I fail to see any mention of the dot anywhere else in the document
when it appears in this context and I don't see any example either,
not even in appendix A. And the "varchar" grammar token adds to the
confusion since it seems to indicate the dot has a special role.

If, for example I have a variable foo defined as:

{ "bar": 1, "baz": 2 }

what is "foo.bar"? Does it refer to another variable entirely, or is
it value of key "bar" in associate array "foo"?

--
Francis Galiegue, fgaliegue@gmail.com
JSON Schema in Java: http://json-schema-validator.herokuapp.com