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 18e45ec05c zclsyntax: scanner support of string templates
This requires some extra state-keeping because we allow templates to be
nested inside templates. This takes us outside of the world of regular
languages, but we accept that here because it makes things easier to
deal with down the line in the parser.

The methodology is to keep track of how many braces are open at a given
time and then, when a nested template interpolation begins, record the
current brace level. Then, when a closing brace is encountered, if its
nesting level is at the top of the stack then we pop off the stack and
return to "main" parsing mode.

Ragel's existing idea of calling and returning from machines is important
here too. As this currently stands this is not actually needed, but once
heredocs are in play we will have two possible places to return to at
the end of an interpolation sequence, so the state return stack maintained
by Ragel will determine whether to return to string mode or heredoc mode.
2017-05-28 15:33:01 -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: scanner support of string templates 2017-05-28 15:33:01 -07:00
zcled Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
zclparse Relocate into the "zclconf" github account 2017-05-27 17:33:09 -07:00
.travis.yml Travis-CI test configuration 2017-05-25 08:15:49 -07:00
LICENSE LICENSE 2017-05-13 08:51:32 -07:00