Skip to content

elixirscript/elixir-estree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elixir-ESTree

Defines structs that represent the JavaScript AST nodes from the ESTree spec.

ESTree Spec

Also includes a JavaScript AST to JavaScript code generator.

alias ESTree.Tools.Builder
alias ESTree.Tools.Generator

ast = Builder.array_expression([
  Builder.literal(1),
  Builder.identifier(:a)
])

Generator.generate(ast)
#"[1, a]"

About

The ESTree Nodes and JavaScript AST to JavaScript Code Generator in Elixir

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 8

Languages