Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pegjs

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pegjs - npm Package Compare versions

Comparing version 0.11.0-master.9360abb to 0.11.0-master.b7b87ea

76

lib/compiler/passes/generate-bytecode.js

@@ -257,3 +257,3 @@ "use strict";

thenCode,
elseCode
elseCode,
);

@@ -295,3 +295,3 @@

[ negative ? op.POP : op.POP_CURR_POS ],
[ op.PUSH_UNDEFINED ]
[ op.PUSH_UNDEFINED ],
),

@@ -301,5 +301,5 @@ buildSequence(

[ negative ? op.POP_CURR_POS : op.POP ],
[ op.PUSH_FAILED ]
)
)
[ op.PUSH_FAILED ],
),
),
);

@@ -320,4 +320,4 @@

buildSequence( [ op.POP ], negative ? [ op.PUSH_FAILED ] : [ op.PUSH_UNDEFINED ] ),
buildSequence( [ op.POP ], negative ? [ op.PUSH_UNDEFINED ] : [ op.PUSH_FAILED ] )
)
buildSequence( [ op.POP ], negative ? [ op.PUSH_UNDEFINED ] : [ op.PUSH_FAILED ] ),
),
);

@@ -331,3 +331,3 @@

[ op.WHILE_NOT_ERROR ],
buildSequence( [ op.APPEND ], expressionCode )
buildSequence( [ op.APPEND ], expressionCode ),
);

@@ -363,3 +363,3 @@

const nameIndex = context.reportFailures ? addExpectedConst(
{ type: "rule", value: node.name }
{ type: "rule", value: node.name },
) : null;

@@ -378,3 +378,3 @@ const expressionCode = generate( node.expression, {

expressionCode,
[ op.SILENT_FAILS_OFF ]
[ op.SILENT_FAILS_OFF ],
) : expressionCode;

@@ -403,6 +403,6 @@

[ op.POP ],
buildAlternativesCode( alternatives.slice( 1 ), context )
buildAlternativesCode( alternatives.slice( 1 ), context ),
),
[]
)
[],
),
);

@@ -441,7 +441,7 @@

[ op.LOAD_SAVED_POS, 1 ],
buildCall( functionIndex, 1, env, context.sp + 2 )
buildCall( functionIndex, 1, env, context.sp + 2 ),
),
[]
[],
),
[ op.NIP ]
[ op.NIP ],
);

@@ -482,5 +482,5 @@

[ op.POP_CURR_POS ],
[ op.PUSH_FAILED ]
)
)
[ op.PUSH_FAILED ],
),
),
);

@@ -494,3 +494,3 @@

[ op.PLUCK, TOTAL_ELEMENTS + 1, context.pluck.length ],
context.pluck.map( eSP => context.sp - eSP )
context.pluck.map( eSP => context.sp - eSP ),
);

@@ -506,8 +506,8 @@

Object.keys( context.env ),
context.action.code
context.action.code,
),
TOTAL_ELEMENTS + 1,
context.env,
context.sp
)
context.sp,
),
);

@@ -527,3 +527,3 @@

reportFailures: context.reportFailures,
} )
} ),
);

@@ -573,4 +573,4 @@

buildSequence( [ op.POP ], [ op.TEXT ] ),
[ op.NIP ]
)
[ op.NIP ],
),
);

@@ -606,4 +606,4 @@

buildSequence( [ op.POP ], [ op.PUSH_NULL ] ),
[]
)
[],
),
);

@@ -626,3 +626,3 @@

buildAppendLoop( expressionCode ),
[ op.POP ]
[ op.POP ],
);

@@ -648,4 +648,4 @@

buildSequence( buildAppendLoop( expressionCode ), [ op.POP ] ),
buildSequence( [ op.POP ], [ op.POP ], [ op.PUSH_FAILED ] )
)
buildSequence( [ op.POP ], [ op.POP ], [ op.PUSH_FAILED ] ),
),
);

@@ -691,3 +691,3 @@

const stringIndex = needConst ? addLiteralConst(
node.ignoreCase ? node.value.toLowerCase() : node.value
node.ignoreCase ? node.value.toLowerCase() : node.value,
) : null;

@@ -714,4 +714,4 @@ // Do not generate unused constant, if no need it

: [ op.ACCEPT_STRING, stringIndex ],
[ op.PUSH_FAILED ]
)
[ op.PUSH_FAILED ],
),
);

@@ -743,4 +743,4 @@

[ op.ACCEPT_N, 1 ],
[ op.PUSH_FAILED ]
)
[ op.PUSH_FAILED ],
),
);

@@ -763,4 +763,4 @@

[ op.ACCEPT_N, 1 ],
[ op.PUSH_FAILED ]
)
[ op.PUSH_FAILED ],
),
);

@@ -767,0 +767,0 @@

@@ -93,3 +93,3 @@ "use strict";

"Infinity cycle detected when trying to evaluate node match result",
node.location
node.location,
);

@@ -96,0 +96,0 @@

@@ -46,3 +46,3 @@ "use strict";

`Label "${ label }" is already defined at line ${ start.line }, column ${ start.column }.`,
node.location
node.location,
);

@@ -49,0 +49,0 @@

@@ -21,3 +21,3 @@ "use strict";

`Rule "${ name }" is already defined at line ${ start.line }, column ${ start.column }.`,
node.location
node.location,
);

@@ -24,0 +24,0 @@

@@ -47,3 +47,3 @@ "use strict";

`Possible infinite loop when parsing (left recursion: ${ rulePath }).`,
node.location
node.location,
);

@@ -50,0 +50,0 @@

@@ -14,3 +14,3 @@ "use strict";

"Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",
node.location
node.location,
);

@@ -28,3 +28,3 @@

"Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",
node.location
node.location,
);

@@ -31,0 +31,0 @@

@@ -13,3 +13,3 @@ "use strict";

`Rule "${ node.name }" is not defined.`,
node.location
node.location,
);

@@ -16,0 +16,0 @@

@@ -22,3 +22,3 @@ "use strict";

`Rule "${ rule.name }" is not referenced.`,
rule.location
rule.location,
);

@@ -25,0 +25,0 @@

@@ -47,3 +47,3 @@ "use strict";

session,
options
options,
);

@@ -50,0 +50,0 @@

@@ -42,3 +42,3 @@ "use strict";

.replace( /\\/g, "\\\\" ) // backslash
.replace( /"/g, "\\\"" ) // closing double quote
.replace( /"/g, "\\\"" ), // closing double quote
);

@@ -61,3 +61,3 @@

.replace( /\^/g, "\\^" ) // caret
.replace( /-/g, "\\-" ) // dash
.replace( /-/g, "\\-" ), // dash
);

@@ -64,0 +64,0 @@

{
"name": "pegjs",
"version": "0.11.0-master.9360abb",
"version": "0.11.0-master.b7b87ea",
"description": "Parser generator for JavaScript",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,4 +0,4 @@

[![Build Status](https://dev.azure.com/pegjs/pegjs/_apis/build/status/Azure%20Pipelines?branchName=master)](https://dev.azure.com/pegjs/pegjs/_build/latest?definitionId=1?branchName=master)
[![coverage](https://img.shields.io/coveralls/github/pegjs/pegjs.svg)](https://coveralls.io/github/pegjs/pegjs)
[![Maintainability](https://api.codeclimate.com/v1/badges/2d1f0313dea3e28e191f/maintainability)](https://codeclimate.com/github/pegjs/pegjs/maintainability)
![GitHub Actions](https://github.com/pegjs/pegjs/workflows/Github%20Actions/badge.svg)
[![Codecov](https://codecov.io/gh/pegjs/pegjs/branch/master/graph/badge.svg)](https://codecov.io/gh/pegjs/pegjs)
[![CodeFactor](https://www.codefactor.io/repository/github/pegjs/pegjs/badge)](https://www.codefactor.io/repository/github/pegjs/pegjs)
[![license](https://img.shields.io/badge/license-mit-blue.svg)](https://opensource.org/licenses/MIT)

@@ -27,5 +27,4 @@

- [Plugins](https://github.com/pegjs/pegjs/blob/master/docs/guides/plugins.md)
- [Compatibility](https://github.com/pegjs/pegjs/blob/master/docs/notes/compatibility.md)
- [Development](https://github.com/pegjs/pegjs/blob/master/docs/notes/development.md)
- [Useful Links](https://github.com/pegjs/pegjs/blob/master/docs/notes/useful-links.md)
- [Compatibility](https://github.com/pegjs/pegjs/blob/master/docs/compatibility.md)
- [Development](https://github.com/pegjs/pegjs/blob/master/docs/development.md)

@@ -32,0 +31,0 @@ ## license

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc