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

antlr4

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antlr4 - npm Package Compare versions

Comparing version

to
4.13.1-patch-1

.idea/inspectionProfiles/Project_Default.xml

13

package.json
{
"name": "antlr4",
"version": "4.13.0",
"version": "4.13.1-patch-1",
"type": "module",
"description": "JavaScript runtime for ANTLR4",
"browser": "dist/antlr4.web.js",
"main": "dist/antlr4.node.mjs",
"browser": "dist/antlr4.web.mjs",
"main": "dist/antlr4.node.cjs",
"module": "dist/antlr4.node.mjs",
"types": "src/antlr4/index.d.ts",

@@ -39,3 +40,3 @@ "repository": "antlr/antlr4.git",

"typescript": "^4.8.3",
"webpack": "^5.75.0",
"webpack": "^5.76.0",
"webpack-cli": "^4.10.0"

@@ -55,3 +56,3 @@ },

"node": {
"types": "src/index.node.d.ts",
"types": "./src/antlr4/index.d.ts",
"import": "./dist/antlr4.node.mjs",

@@ -62,3 +63,3 @@ "require": "./dist/antlr4.node.cjs",

"browser": {
"types": "src/index.web.d.ts",
"types": "./src/antlr4/index.d.ts",
"import": "./dist/antlr4.web.mjs",

@@ -65,0 +66,0 @@ "require": "./dist/antlr4.web.cjs",

# JavaScript target for ANTLR 4
[![npm version](https://img.shields.io/npm/v/antlr4)](https://www.npmjs.com/package/antlr4)
[![Badge showing the supported LTS versions of Node.JS in the latest NPM release](https://img.shields.io/node/v-lts/antlr4)](https://www.npmjs.com/package/antlr4)
[![npm type definitions](https://img.shields.io/npm/types/antlr4)](https://www.npmjs.com/package/antlr4)
JavaScript runtime libraries for ANTLR 4

@@ -14,3 +18,3 @@

This runtime requires node version >= 14, the first version to officially support ES semantics.
This runtime requires node version >= 16.

@@ -17,0 +21,0 @@ ANTLR 4 runtime is available in 10 target languages, and favors consistency of versioning across targets.

import { Token } from "./Token";
import {InputStream} from "./InputStream";
import {TokenSource} from "./TokenSource";
export declare class CommonToken extends Token {
constructor(source: number, type: number, channel: number, start: number, stop: number);
constructor(source: [ TokenSource, InputStream ], type: number, channel: number, start: number, stop: number);
clone(): CommonToken;

@@ -6,0 +8,0 @@ cloneWithType(type: number): CommonToken;

import {Lexer} from "./Lexer";
import {BufferedTokenStream} from "./BufferedTokenStream";
import {Token} from "./Token";
export declare class CommonTokenStream extends BufferedTokenStream {
// properties
tokens: string[];
tokens: Token[];
// methods

@@ -8,0 +9,0 @@ constructor(lexer: Lexer);

@@ -19,3 +19,3 @@ import {ErrorStrategy} from "./ErrorStrategy";

inErrorRecoveryMode(recognizer: Parser): void;
inErrorRecoveryMode(recognizer: Parser): boolean;

@@ -22,0 +22,0 @@ beginErrorCondition(recognizer: Parser): void;

@@ -37,2 +37,3 @@ /* Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.

import BailErrorStrategy from "./error/BailErrorStrategy.js";
import DefaultErrorStrategy from "./error/DefaultErrorStrategy.js";
import Interval from './misc/Interval.js';

@@ -59,4 +60,4 @@ import IntervalSet from './misc/IntervalSet.js';

PredictionMode, LL1Analyzer, ParseTreeListener, ParseTreeVisitor, ATN, ATNDeserializer, PredictionContextCache, LexerATNSimulator, ParserATNSimulator, DFA,
RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy,
RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy, DefaultErrorStrategy,
arrayToString
}

@@ -36,2 +36,3 @@ /* Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.

import BailErrorStrategy from "./error/BailErrorStrategy.js";
import DefaultErrorStrategy from "./error/DefaultErrorStrategy.js";
import Interval from './misc/Interval.js';

@@ -58,4 +59,4 @@ import IntervalSet from './misc/IntervalSet.js';

PredictionMode, LL1Analyzer, ParseTreeListener, ParseTreeVisitor, ATN, ATNDeserializer, PredictionContextCache, LexerATNSimulator, ParserATNSimulator, DFA,
RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy,
RecognitionException, NoViableAltException, FailedPredicateException, ErrorListener, DiagnosticErrorListener, BailErrorStrategy, DefaultErrorStrategy,
arrayToString
}

@@ -18,3 +18,3 @@ /* Copyright (c) 2012-2022 The ANTLR Project. All rights reserved.

checkVersion(toolVersion) {
const runtimeVersion = "4.13.0";
const runtimeVersion = "4.13.1";
if (runtimeVersion!==toolVersion) {

@@ -21,0 +21,0 @@ console.log("ANTLR runtime and generated code versions disagree: "+runtimeVersion+"!="+toolVersion);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet