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
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
Is there a way to parse RNG source directly from a string? It appears that convertRNGToPattern only accepts a URL. (I am trying to use salve from the browser where I already have a string that has been fetched).
The text was updated successfully, but these errors were encountered:
It's been over 2 years since I've worked on this code so it is not fresh in my memory. I'd expect you to be able to use a data: URL . See this documentation:
Thanks for the reply! I just tried that, but it doesn't work in the browser. I suspect it's because of the use of the fs module...Was there any ever work to get salve to run in the browser?
And specifically the grammarFromSource function which is not exported. It does take a string of the RNG as input. I don't think we're exporting it, but you could write a function that works in the same way. Or use the parse function that I link to above if it does what you want. This code still uses fs but there is no reason that fs has to be used.
Otherwise, you might want to paste example code in your issue. I'm not sure I understand exactly the problem.
and I am getting an error salve__WEBPACK_IMPORTED_MODULE_3___default() is undefined which I am guessing comes from not being able to transpile the fs module.
The parse function looks like what I need! It doesn't seem to be on the default export. Is it exported somewhere else?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there a way to parse RNG source directly from a string? It appears that
convertRNGToPattern
only accepts a URL. (I am trying to usesalve
from the browser where I already have a string that has been fetched).The text was updated successfully, but these errors were encountered: