-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS Nile compiler missing NileParser #2
Comments
Actually it works in Firefox, just fails in Chrome... |
Yeah, that sounds familiar. I think it has something to do with the way the nile-grammer.ojs file is dynamically loaded. Like some browsers will block the load because of different policies on local file reading or something. I'm not currently in a position to fix this, maybe early next year. The whole JS-based Nile compiler/runtime stuff needs a rewrite anyway, since the Nile language has evolved quite a bit since I last worked on the JS stuff. |
I found what causes this. Chrome blocks AJAX request for To get over it, you need to get compiler page from local HTTP server. If you have Python installed you can start server like this:
The compiler will be available on Nonetheless, the compiler is not very simple to work with. For example, then you made a syntax error in your code, there will be no error showed, just running it will do nothing. |
Trying to get the Nile browser compiler in compiler/js/nile-compiler.html to work, I get a browser error :
ReferenceError: NileParser is not defined
Not sure if something's missing or the parser js file wasn't generated.
The text was updated successfully, but these errors were encountered: