Skip to content

Commit

Permalink
Merge pull request #45 from DiscreteTom/next
Browse files Browse the repository at this point in the history
v0.16.1
  • Loading branch information
DiscreteTom authored Jan 7, 2024
2 parents 41fe9f2 + 352133c commit b1527ae
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## v0.16.1

- Parser
- Fix: `structuredClone` not working in browser. See the details [here](https://stackoverflow.com/questions/77772877/).

## v0.16.0

- Lexer
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Text lexer and parser. Compiler frontend framework.

This can be used to **_fast prototype_** your own programming language compiler/translator frontend, or parse your domain specific language.

Try it online in the [playground](https://dttk.discretetom.com/js-playground?crushed=%28%27dependencieV%27https%253A%252F%252Fcdn.jsdelivr.net%252Fnpm%252FN%25400.16.0%252Fdist%252FN.min.js%27%255D%7EcellVKPZpaZC_LQ%252C%2520ELRH9NOtrue%7Eid%210%29%252CKWrite%2520the%2520PMrClQqLQ.BUer%257BYaI%252F123%252FH*bUz%253B--J_pMrHqELR.AdvancedBUerFlQHYXI%255C%27a%255C%27H*bUFXI%2522X%2522%252C%2520checkAllItrueH%257D%253BD4418%29%252CKPMCZs9pMr.pMAll%257B%2522123%2522%257D-Jroot9Zs.buffer%255B0%255D--console.log%257Broot.toTZeStringz%257DD5544%29%255D%7EpanelVG5544%252CG4418%255D%29*%257D-%2520%2520%2520%2520.-%255Cr%255Cn9%2520%253D%2520C%27%7Ecode%21%27JDOfalse%7Eid%21GF%257B_G170372543H%2520%29I%253A%2520Jconst%2520K%28%27name%21%27MarseNZtsacO%27%7EZadonly%21QexerUuildVs%21%255BXentryY*defineFZre_%28%2520q9new%2520z%257B%257D%2501zq_ZYXVUQONMKJIHGFDC9-*_).
Try it online in the [playground](https://dttk.discretetom.com/js-playground?crushed=%28%27dependencieV%27https%253A%252F%252Fcdn.jsdelivr.net%252Fnpm%252FN%25400.16.1%252Fdist%252FN.min.js%27%255D%7EcellVKPZpaZC_LQ%252C%2520ELRH9NOtrue%7Eid%210%29%252CKWrite%2520the%2520PMrClQqLQ.BUer%257BYaI%252F123%252FH*bUz%253B--J_pMrHqELR.AdvancedBUerFlQHYXI%255C%27a%255C%27H*bUFXI%2522X%2522%252C%2520checkAllItrueH%257D%253BD4418%29%252CKPMCZs9pMr.pMAll%257B%2522123%2522%257D-Jroot9Zs.buffer%255B0%255D--console.log%257Broot.toTZeStringz%257DD5544%29%255D%7EpanelVG5544%252CG4418%255D%29*%257D-%2520%2520%2520%2520.-%255Cr%255Cn9%2520%253D%2520C%27%7Ecode%21%27JDOfalse%7Eid%21GF%257B_G170372543H%2520%29I%253A%2520Jconst%2520K%28%27name%21%27MarseNZtsacO%27%7EZadonly%21QexerUuildVs%21%255BXentryY*defineFZre_%28%2520q9new%2520z%257B%257D%2501zq_ZYXVUQONMKJIHGFDC9-*_).

## Installation

Expand Down
2 changes: 1 addition & 1 deletion README.src.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Text lexer and parser. Compiler frontend framework.

This can be used to **_fast prototype_** your own programming language compiler/translator frontend, or parse your domain specific language.

Try it online in the [playground](https://dttk.discretetom.com/js-playground?crushed=%28%27dependencieV%27https%253A%252F%252Fcdn.jsdelivr.net%252Fnpm%252FN%25400.16.0%252Fdist%252FN.min.js%27%255D%7EcellVKPZpaZC_LQ%252C%2520ELRH9NOtrue%7Eid%210%29%252CKWrite%2520the%2520PMrClQqLQ.BUer%257BYaI%252F123%252FH*bUz%253B--J_pMrHqELR.AdvancedBUerFlQHYXI%255C%27a%255C%27H*bUFXI%2522X%2522%252C%2520checkAllItrueH%257D%253BD4418%29%252CKPMCZs9pMr.pMAll%257B%2522123%2522%257D-Jroot9Zs.buffer%255B0%255D--console.log%257Broot.toTZeStringz%257DD5544%29%255D%7EpanelVG5544%252CG4418%255D%29*%257D-%2520%2520%2520%2520.-%255Cr%255Cn9%2520%253D%2520C%27%7Ecode%21%27JDOfalse%7Eid%21GF%257B_G170372543H%2520%29I%253A%2520Jconst%2520K%28%27name%21%27MarseNZtsacO%27%7EZadonly%21QexerUuildVs%21%255BXentryY*defineFZre_%28%2520q9new%2520z%257B%257D%2501zq_ZYXVUQONMKJIHGFDC9-*_).
Try it online in the [playground](https://dttk.discretetom.com/js-playground?crushed=%28%27dependencieV%27https%253A%252F%252Fcdn.jsdelivr.net%252Fnpm%252FN%25400.16.1%252Fdist%252FN.min.js%27%255D%7EcellVKPZpaZC_LQ%252C%2520ELRH9NOtrue%7Eid%210%29%252CKWrite%2520the%2520PMrClQqLQ.BUer%257BYaI%252F123%252FH*bUz%253B--J_pMrHqELR.AdvancedBUerFlQHYXI%255C%27a%255C%27H*bUFXI%2522X%2522%252C%2520checkAllItrueH%257D%253BD4418%29%252CKPMCZs9pMr.pMAll%257B%2522123%2522%257D-Jroot9Zs.buffer%255B0%255D--console.log%257Broot.toTZeStringz%257DD5544%29%255D%7EpanelVG5544%252CG4418%255D%29*%257D-%2520%2520%2520%2520.-%255Cr%255Cn9%2520%253D%2520C%27%7Ecode%21%27JDOfalse%7Eid%21GF%257B_G170372543H%2520%29I%253A%2520Jconst%2520K%28%27name%21%27MarseNZtsacO%27%7EZadonly%21QexerUuildVs%21%255BXentryY*defineFZre_%28%2520q9new%2520z%257B%257D%2501zq_ZYXVUQONMKJIHGFDC9-*_).

## Installation

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "retsac",
"description": "Text lexer and parser.",
"version": "0.16.0",
"version": "0.16.1",
"main": "out/index.js",
"types": "out/index.d.ts",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/parser/ELR/builder/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class ParserBuilder<
this.lexer = options.lexer;

this.builderData = [];
this.globalCloner = structuredClone;
this.globalCloner = (v) => structuredClone(v);
this.tokenASTDataMapper = new Map();
}

Expand Down Expand Up @@ -156,7 +156,7 @@ export class ParserBuilder<
NewGlobal
>;
_this._global = g;
_this.globalCloner = cloner ?? structuredClone;
_this.globalCloner = cloner ?? ((v) => structuredClone(v));
return _this;
}

Expand Down

0 comments on commit b1527ae

Please sign in to comment.