New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

krl-parser

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krl-parser - npm Package Compare versions

Comparing version 1.0.10 to 1.2.0

4

dist/src/index.js

@@ -7,4 +7,4 @@ "use strict";

try {
const tokens = tokenizer_1.default(src);
const tree = krl_1.parse(tokens);
const tokens = (0, tokenizer_1.default)(src);
const tree = (0, krl_1.parse)(tokens);
return tree;

@@ -11,0 +11,0 @@ }

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

function advance(state) {
state.curr = tdop_1.advanceBase(rules, state.tokens, state.curr.token_i + 1);
state.curr = (0, tdop_1.advanceBase)(rules, state.tokens, state.curr.token_i + 1);
return state;

@@ -122,3 +122,3 @@ }

}
const next = tdop_1.lookahead(state, 2)[1];
const next = (0, tdop_1.lookahead)(state, 2)[1];
if (!next || next.type !== "RAW" || next.src !== "=") {

@@ -796,3 +796,3 @@ break;

}
const next = tdop_1.lookahead(state, 2)[1];
const next = (0, tdop_1.lookahead)(state, 2)[1];
if (!next || next.type !== "RAW" || next.src !== "=") {

@@ -1084,3 +1084,3 @@ break;

const stmt = postludeStatementCore(state);
const [on, final] = tdop_1.lookahead(state, 2);
const [on, final] = (0, tdop_1.lookahead)(state, 2);
if (on.type === "SYMBOL" &&

@@ -1255,3 +1255,3 @@ on.src === "on" &&

}
if (tdop_1.easyLookahead(state, 3) === "SYMBOL:SYMBOL") {
if ((0, tdop_1.easyLookahead)(state, 3) === "SYMBOL:SYMBOL") {
const left = chompDomainIdentifier(state);

@@ -1317,3 +1317,3 @@ const path_expression = pathExpression(state);

function attributeMatch(state) {
const ahead = tdop_1.lookahead(state, 2);
const ahead = (0, tdop_1.lookahead)(state, 2);
if (ahead[0].type !== "SYMBOL" || ahead[1].type !== "REGEXP") {

@@ -1525,3 +1525,3 @@ return null;

tokens: tokens,
curr: tdop_1.advanceBase(rules, tokens, 0)
curr: (0, tdop_1.advanceBase)(rules, tokens, 0)
};

@@ -1549,3 +1549,3 @@ const tree = entryParse(state);

}
if (tdop_1.easyLookahead(state, 2) === "SYMBOL=") {
if ((0, tdop_1.easyLookahead)(state, 2) === "SYMBOL=") {
statements.push(declaration(state));

@@ -1552,0 +1552,0 @@ }

{
"name": "krl-parser",
"version": "1.0.10",
"version": "1.2.0",
"description": "Parse KRL source code into an AST",

@@ -57,3 +57,3 @@ "main": "dist/src/index.js",

},
"gitHead": "17d2c9771544e25c66807077dcc783af22a5a0a4"
"gitHead": "7052049b68ebf82ac0042dfcfbd8c71470e95652"
}
# krl-parser
[![Build Status](https://travis-ci.org/Picolab/pico-engine.svg?branch=master)](https://travis-ci.org/Picolab/pico-engine)
Parse KRL source code into an AST

@@ -6,0 +4,0 @@

Sorry, the diff of this file is not supported yet

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