Comparing version
{ | ||
"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 | ||
[](https://www.npmjs.com/package/antlr4) | ||
[](https://www.npmjs.com/package/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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
0
-100%100
25%30
15.38%4
-20%3534743
-43.88%232
-0.43%14829
-26.21%2
100%