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

@browselang/parser

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@browselang/parser - npm Package Compare versions

Comparing version 0.0.21-2 to 0.0.21

32

lib/index.js

@@ -41,20 +41,2 @@ "use strict";

InvalidBinExpr_and(_l, o, _, _r) {
return [
{
message: "Bitwise AND '&' is not supported. For Logical AND, use &&",
source: o.source,
},
];
},
InvalidBinExpr_xor(_l, o, _, _r) {
return [
{
message:
"Bitwise XOR '^' is not supported. For Logical XOR, combine Logical AND '&&' and Logical OR '||'",
source: o.source,
},
];
},
// Base Cases

@@ -124,3 +106,2 @@ _iter(children) {

ruleName: function (m, _, n) { return (m.asLisp ? m.asLisp + ":" : "") + n.asLisp; },
errorRule_optional: function(r, _) { return r.asLisp + "?" },

@@ -347,3 +328,3 @@ Rule: function(w, es) { return [w.asLisp, es.asLisp] },

InitRule_withOpts(w, _l, opts, _r) {
const { module, name, optional } = w.asAST;
const { module, name } = w.asAST;
return {

@@ -353,3 +334,2 @@ type: "InitRule",

name,
optional,
options: opts.asAST,

@@ -360,3 +340,3 @@ source: this.source,

InitRule_vanilla(w) {
const { module, name, optional } = w.asAST;
const { module, name } = w.asAST;
return {

@@ -366,3 +346,2 @@ type: "InitRule",

name,
optional,
options: [],

@@ -425,9 +404,4 @@ source: this.source,

ruleName: function (m, _, n) {
// Used upstream to create an AST node
return { module: m.asAST[0], name: n.asAST, optional: false };
return { module: m.asAST[0], name: n.asAST }; // This is not an AST node
},
errorRule_optional: function (r, _) {
// Used upstream to create an AST node
return { ...r.asAST, optional: true };
},
word: function (_) {

@@ -434,0 +408,0 @@ return {

2

package.json
{
"name": "@browselang/parser",
"version": "0.0.21-2",
"version": "0.0.21",
"description": "Parser for Browse using the ohm parser generator",

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

Sorry, the diff of this file is not supported yet

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