Current section
Files
Jump to
Current section
Files
README.md
## Elixir-ESTree [](http://hexdocs.pm/estree/) [](https://hex.pm/packages/estree)
Defines structs that represent the JavaScript AST nodes from the ESTree spec.
[ESTree Spec](https://github.com/estree/estree)
Also includes a JavaScript AST to JavaScript code generator.
```elixir
alias ESTree.Tools.Builder
alias ESTree.Tools.Generator
ast = Builder.array_expression([
Builder.literal(1),
Builder.identifier(:a)
])
Generator.generate(ast)
#"[1, a]"
```