The "writer parser" is a parser that produces a writer AST rather than a zclsyntax AST. This can be used to produce a writer AST from existing source in order to modify it before writing it out again. It's implemented with the somewhat-unintuitive approach of running the main zclsyntax parser and then mapping the source ranges it finds back onto the token sequence to pull out the raw tokens for each object. This allows us to avoid maintaining two parsers but also keeps all of this raw-token-wrangling complexity out of the main parser.
Description
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
Languages
Go
83.7%
Ragel
10.2%
reStructuredText
4.4%
Ruby
0.5%
Python
0.3%
Other
0.8%