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

antlr4ng

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antlr4ng - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

dist/atn/AmbiguityInfo.d.ts

1

dist/atn/ATNConfigSet.d.ts

@@ -80,2 +80,3 @@ import { SemanticContext } from "./SemanticContext.js";

get length(): number;
getAlts(): BitSet;
}

@@ -33,2 +33,3 @@ import { DFAState } from "../dfa/DFAState.js";

getCachedContext(context: PredictionContext): PredictionContext;
getSharedContextCache(): PredictionContextCache | null;
}

@@ -61,1 +61,11 @@ export * from "./AbstractPredicateTransition.js";

export * from "./WildcardTransition.js";
export * from "./ProfilingATNSimulator.js";
export * from "./DecisionInfo.js";
export * from "./ParseInfo.js";
export * from "./AmbiguityInfo.js";
export * from "./ContextSensitivityInfo.js";
export * from "./DecisionEventInfo.js";
export * from "./ErrorInfo.js";
export * from "./LookaheadEventInfo.js";
export * from "./ParseInfo.js";
export * from "./PredicateEvalInfo.js";

2

dist/CommonToken.d.ts

@@ -61,3 +61,3 @@ import { CharStream } from "./CharStream.js";

get text(): string | null;
set text(text: string);
set text(text: string | null);
setText(text: string | null): void;

@@ -64,0 +64,0 @@ setType(ttype: number): void;

@@ -284,2 +284,3 @@ import { Token } from "./Token.js";

getSourceName(): string;
setProfile(profile: boolean): void;
/**

@@ -286,0 +287,0 @@ * During a parse is sometimes useful to listen in on the rule entry and exit

@@ -81,6 +81,6 @@ import { RuleContext } from "./RuleContext.js";

getTokens(ttype: number): TerminalNode[];
getRuleContext<T extends ParserRuleContext>(index: number, ctxType: new (parent: ParserRuleContext | null, invokingStateNumber: number) => T): T | null;
getRuleContexts<T extends ParserRuleContext>(ctxType: new (parent: ParserRuleContext | null, invokingStateNumber: number) => T): T[];
getRuleContext<T extends ParserRuleContext>(index: number, ctxType: new (...args: unknown[]) => T): T | null;
getRuleContexts<T extends ParserRuleContext>(ctxType: new (...args: unknown[]) => T): T[];
getChildCount(): number;
getSourceInterval(): Interval;
}
import { ATNSimulator } from "./atn/ATNSimulator.js";
import { ParseInfo } from "./atn/ParseInfo.js";
import { Vocabulary } from "./Vocabulary.js";

@@ -17,2 +18,4 @@ import { ANTLRErrorListener } from "./ANTLRErrorListener.js";

removeErrorListeners(): void;
removeErrorListener(listener: ANTLRErrorListener): void;
getErrorListeners(): ANTLRErrorListener[];
getTokenTypeMap(): Map<string, number>;

@@ -39,2 +42,3 @@ /**

getSerializedATN(): number[];
getParseInfo(): ParseInfo | null;
abstract get grammarFileName(): string;

@@ -41,0 +45,0 @@ abstract get ruleNames(): string[];

{
"name": "antlr4ng",
"version": "2.0.4",
"version": "2.0.5",
"type": "module",

@@ -23,3 +23,3 @@ "description": "Alternative JavaScript/TypeScript runtime for ANTLR4",

"peerDependencies": {
"antlr4ng-cli": "^1.0.0"
"antlr4ng-cli": "1.0.7"
},

@@ -26,0 +26,0 @@ "devDependencies": {

@@ -15,2 +15,3 @@ [![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/mike-lischke/antlr4ng/nodejs.yml?style=for-the-badge&logo=github)](https://github.com/mike-lischke/antlr4ng/actions/workflows/nodejs.yml)

- Parser and lexer interpreters.
- Profiler implementation.
- Numerous bug fixes and other changes.

@@ -147,2 +148,7 @@ - Smaller node package (no test specs or other unnecessary files).

### 2.0.5
- Profiler port (from backspace <backspace@backblog.me>)
- Changed context getters in `ParserRuleContext` for retrieving sub contexts to accept any constructor parameter, for more flexibility.
### 2.0.4

@@ -149,0 +155,0 @@

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