fork of https://github.com/hashicorp/hcl because issue : https://github.com/hashicorp/hcl/issues/290 these code permit use of "nested" field decoding which is just composite struct
Go to file
Martin Atkins 59a1343216 zclsyntax: allow numeric "attributes" inside attr-only splats
Terraform interprets HIL variables in such a way that it allows numeric
attribute names which then get interpreted as numeric indices into a
list. This is used to work around the fact that the splat expressions
don't work for the index operator.

zcl has "full splats" that _do_ support the index operator, but to allow
old Terraform configs to be processed by zcl we'll accept this special
case within attribute-only-splats only.

For the moment this is a special exception made by this specific
implementation of zcl rather than part of the spec, since it's
specifically a pragmatic Terraform migration strategy, but it might get
upgraded to full spec status later if we end up needing to support it
in other host languages.

This requires the scanner to be a little more picky about the ending
of numeric literals, so that they won't absorb the trailing period after
the number in foo.*.baz.1.baz . This is okay because the spec doesn't
allow trailing periods anyway, and this is not actually a change in
final behavior because the parser was already catching this situation
and rejecting it at a later point.
2017-06-24 09:39:16 -07:00
cmd/zclfmt cmd/zclfmt: skip formatting a file only if it has errors 2017-06-24 09:13:48 -07:00
gozcl Update cty references to its new home in the zclconf github account 2017-05-27 17:35:44 -07:00
zcl zclsyntax: allow numeric "attributes" inside attr-only splats 2017-06-24 09:39:16 -07:00
zcldec zclsyntax: require newlines after block items 2017-06-09 08:19:47 -07:00
zcled Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
zclparse zclparse: keep ParseZCL results in the files registry 2017-06-04 09:02:41 -07:00
zclwrite zclsyntax: permit dashes in identifiers 2017-06-24 09:12:24 -07:00
.travis.sh build: capture code coverage stats during Travis-CI run 2017-06-02 08:27:20 -07:00
.travis.yml build: stop running Travis-CI test run on Go 1.7.x 2017-06-02 08:27:20 -07:00
LICENSE LICENSE 2017-05-13 08:51:32 -07:00