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
Can you please add a short subsection under Usage (in the top-level documentation README.md) for usage within a browser? The README explains how to install it via
<script src="pegjs-coffee-plugin.js"></script>
but then there are no subsequent instructions in the usage section for using it (in a browser).
As far as I've been able to figure out, loading the .js file sets the global variable PEGjsCoffeePlugin, so that I can use it in PEG.js by adding the following option to the PEG.buildParser call:
plugins: [PEGjsCoffeePlugin]
But the README does not mention the name "PEGjsCoffeePlugin", so this was not easy to figure out.
thanks, -Neal
The text was updated successfully, but these errors were encountered:
Can you please add a short subsection under Usage (in the top-level documentation README.md) for usage within a browser? The README explains how to install it via
but then there are no subsequent instructions in the usage section for using it (in a browser).
As far as I've been able to figure out, loading the .js file sets the global variable PEGjsCoffeePlugin, so that I can use it in PEG.js by adding the following option to the PEG.buildParser call:
But the README does not mention the name "PEGjsCoffeePlugin", so this was not easy to figure out.
thanks, -Neal
The text was updated successfully, but these errors were encountered: