You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do note that this is a parser I made, and has not been vetted. There are definitely some rough edges (especially around errors in the input), and it currently does not deal well with slices a[from:to:step].
On a side-note, I'm also planning to look at an LSP implementation.
I also added a transformer to the core language to astexplorer. It can be seen here. Pick jsonnet as language, and pick core language in the transformer list. The core language visualization is custom, as is the core language itself. It's fairly true to the core language described in the spec, with the exceptions that I
bind variables (so unique variables have unique identities).
keep import statements.
keep the +: (and similar) operators for object fields.
I'm not sure I've done all the desugaring correctly, so I made this to make it easier to see what the output of the desugaring was. If you feel like, feel free to test it out and report discrepancies.
@Alxandr implemented AST Explorer plugin for Jsonnet. It may be pretty useful for tooling development.
More details in #804.
The text was updated successfully, but these errors were encountered: