fix replasing

This commit is contained in:
Aleksey Chichenkov 2019-01-30 16:59:42 +03:00
parent 653db60651
commit a596a9a200
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ var post_process_lexer = function (_string) {
_string = _string.replace(/\*\((.*?)\);/gm, "this._string[($1)];"); // замена разыменовываний
_string = _string.replace(/\*(.* ?);/gm, "this._string[$1];"); // замена разыменовываний
_string = _string.replace(/\*(.* ?)\)/gm, "this._string[$1])"); // замена разыменовываний
_string = _string.replace(/^yy(\d*?):/gm, "case $1:"); // replace goto marker onto case
_string = _string.replace(/\) goto yy(\d*?);/gm, ") { id = $1; break; }"); // replace goto inside if