@browselang/parser
Advanced tools
Comparing version 0.0.21-2 to 0.0.21
@@ -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 { |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27982
552