fkling / astexplorer

A web tool to explore the ASTs generated by various parsers.
https://astexplorer.net/
MIT License
6.05k stars 711 forks source link

feat: add support for mathjs AST #654

Closed mattvague closed 2 years ago

mattvague commented 2 years ago

Adds support for ASTs generated by http://mathjs.org

fkling commented 2 years ago

Nice! It doesn't look like the AST contains positioning information, so it can't be corrolated with the source code. It would be nice if this supported or enabled eventually.

mattvague commented 2 years ago

@fkling Sweet, thanks! I've started on a PR adding positional information to the AST here but will need some help from the lib author. Will create a new PR here to add support once that's done