A web tool to explore the ASTs generated by various parsers.
*
before the name.leadingComments
and trailingComments
properties to typescript nodes (f9332529bd3bff5272f07e29ba3d8cb1aecea425).Transformers can now return a source map as well, which allows us to highlight the corresponding code in the output editor (#79):
Big thanks to @RReverser again!
registerMethods
method can now be used in astexplorer. It doesn't throw errors about duplicate custom methods on rerun anymore (#80).Most other commits focused on
Thanks to the tremendous efforts of @RReverser, we now have support for different languages! (#62, #63, #65)
In addition, adding new parsers and transformers is now even easier. See the updated README and the source.
acorn-jsx
plugin support by (also @RReverser)I thought it might make sense to tag releases to keep better track of new features.
$node
. This makes it easier to inspect and play with an AST node.$node
in the console and run the method there.forEachProperty
of the parser is called, via which the parser can tell the rendered which keys and values to render for the given node. This also allows the parser to add custom properties without having to traverse the whole AST upfront.Overall these changes should make it easier to add new parsers, even if the structure of the resulting AST isn't well known.