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
`this is an ES6 string which has double-quoted jison var ref like this: "${@var}"`
in the above situation, with the quotes inside the template string, around the jison variable reference, such a variable doesn't get expanded.
The problem existed in the jison grammar spec itself, but a quick hack at least has that one circumvented for the time being:
var js_var = @var; // this DOES get expanded!
...`this is an ES6 string which has double-quoted jison var ref like this: "${js_var}"`
// ^^^ the above string template delivers as expected and doesn't barf a hairball when executed.
(See bnf.y for an example of this)
This needs to be fixed; we'll need the new tweaked recast library for real for this, as we've just hit the limit of regex replace power. ;-)
The text was updated successfully, but these errors were encountered:
in the above situation, with the quotes inside the template string, around the jison variable reference, such a variable doesn't get expanded.
The problem existed in the jison grammar spec itself, but a quick hack at least has that one circumvented for the time being:
(See bnf.y for an example of this)
This needs to be fixed; we'll need the new tweaked
recast
library for real for this, as we've just hit the limit of regex replace power. ;-)The text was updated successfully, but these errors were encountered: