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

CoffeeScript support #152

Open usirin opened 7 years ago

usirin commented 7 years ago

Hi,

Thanks for this awesome project. I have a quick question, i've been playing with astexplorer to add coffee-script support and i managed to get both coffee-script and decaffeinate parser working with astexplorer.

There is one thing i am not sure if it's right: I am using wzrd.in (browserify as a service) to load these parsers using scriptjs as I couldn't get them working with webpack via regular import/require.

Before trying to submit a PR, I wanted to ask (1) is coffee-script support considerable for astexplorer (2) is it ok to fetch parser scripts from other resources (3) if not what would be the correct way to implement this? (I tried to add folders under packages folder, but no luck)

fkling commented 7 years ago

1) Of course 😃 . Anything that can create an AST is a valid candidate for astexplorer.

2) I'd rather have them all managed through webpack. What are the issues you were having? Sometimes it needs some additional tweaking of the webpack config to make modules loadable.

usirin commented 7 years ago

@fkling Thanks so much for the answer. I guess it would better for me to first submit the PR and show where I have problems over there. I will submit it today.