You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The key is I'd need to reference back to Erlang's line and col or indexed [startOf, endOf] information and save it as part of the Mozilla AST data structure to be used in a thrid-party web application. Basically some kind of a source map between erlang to js generated.
Basically the scenario is that I need to be able to execute the code on the web and notify the user that at line 5 of Erlang code, they made an error. I wonder if there is any way you can preserve the range info. It would need to be a JS range: Erlang range map or just directly translating the Erlang AST to Mozilla JS AST before encoding it to JS.
The key is I'd need to reference back to Erlang's line and col or indexed [startOf, endOf] information and save it as part of the Mozilla AST data structure to be used in a thrid-party web application. Basically some kind of a source map between erlang to js generated.
It was originally why i was checking on the Luuvscript: http://luvv.ie/toolchain.html
Basically the scenario is that I need to be able to execute the code on the web and notify the user that at line 5 of Erlang code, they made an error. I wonder if there is any way you can preserve the
range
info. It would need to be a JS range: Erlang range map or just directly translating the Erlang AST to Mozilla JS AST before encoding it to JS.An example of JS AST here: http://esprima.org/demo/parse.html#
The text was updated successfully, but these errors were encountered: