Skip to content

Commit c9c7731

Browse files
authored
Переезд на antlr 4.13.1 (#282)
1 parent fe550f7 commit c9c7731

File tree

7 files changed

+9
-13
lines changed

7 files changed

+9
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ gen/
7070
/.idea/misc.xml
7171
*.tokens
7272
/.idea/inspectionProfiles/Project_Default.xml
73+
/.idea/material_theme_project_new.xml

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# BSL Parser
22

3-
[![Build Status](https://travis-ci.org/1c-syntax/bsl-parser.svg?branch=master)](https://travis-ci.org/1c-syntax/bsl-parser)
4-
[![JitPack](https://jitpack.io/v/1c-syntax/bsl-parser.svg)](https://jitpack.io/#1c-syntax/bsl-parser)
53
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=1c-syntax_bsl-parser&metric=alert_status)](https://sonarcloud.io/dashboard?id=1c-syntax_bsl-parser)
64
[![Maintainability](https://sonarcloud.io/api/project_badges/measure?project=1c-syntax_bsl-parser&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=1c-syntax_bsl-parser)
75
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=1c-syntax_bsl-parser&metric=coverage)](https://sonarcloud.io/dashboard?id=1c-syntax_bsl-parser)

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ gitVersioning.apply {
4545
val isSnapshot = gitVersioning.gitVersionDetails.refType != GitRefType.TAG
4646

4747
dependencies {
48-
antlr("com.tunnelvisionlabs", "antlr4", "4.9.0")
48+
antlr("org.antlr", "antlr4", "4.13.1")
4949

50-
implementation("io.github.1c-syntax", "bsl-parser-core", "0.1.0")
50+
implementation("io.github.1c-syntax", "bsl-parser-core", "0.2.0")
5151

5252
// stat analysis
5353
compileOnly("com.google.code.findbugs", "jsr305", "3.0.2")
5454

5555
// testing
56-
testImplementation("io.github.1c-syntax", "bsl-parser-testing", "0.1.1")
56+
testImplementation("io.github.1c-syntax", "bsl-parser-testing", "0.2.0")
5757
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.10.1")
5858
testImplementation("org.junit.jupiter", "junit-jupiter-engine", "5.10.1")
5959
testImplementation("org.junit.jupiter", "junit-jupiter-params", "5.10.1")

src/main/antlr/BSLLexer.g4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ channels {
2929
@members {
3030
public BSLLexer(CharStream input, boolean crAwareCostructor) {
3131
super(input);
32-
_interp = new CRAwareLexerATNSimulator(this, _ATN);
33-
validateInputStream(_ATN, input);
32+
_interp = new CRAwareLexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
3433
}
3534
}
3635

src/main/antlr/BSLMethodDescriptionLexer.g4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ lexer grammar BSLMethodDescriptionLexer;
2727
@members {
2828
public BSLMethodDescriptionLexer(CharStream input, boolean crAwareCostructor) {
2929
super(input);
30-
_interp = new CRAwareLexerATNSimulator(this, _ATN);
31-
validateInputStream(_ATN, input);
30+
_interp = new CRAwareLexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
3231
}
3332
}
3433

src/main/antlr/SDBLLexer.g4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ lexer grammar SDBLLexer;
2727
@members {
2828
public SDBLLexer(CharStream input, boolean crAwareCostructor) {
2929
super(input);
30-
_interp = new CRAwareLexerATNSimulator(this, _ATN);
31-
validateInputStream(_ATN, input);
30+
_interp = new CRAwareLexerATNSimulator(this, _ATN, _decisionToDFA, _sharedContextCache);
3231
}
3332
}
3433

src/test/java/com/github/_1c_syntax/bsl/parser/description/BSLDescriptionReaderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ void parseVariableDescription2() {
432432

433433
@Test
434434
void parseVariableDescription3() {
435-
var exampleString = "// Описание переменной\n// Устарела. см. НоваяПеременная";
435+
var exampleString = "// Устарела. см. НоваяПеременная\n// Описание переменной";
436436
var tokens = getTokensFromString(exampleString);
437437
var variableDescription = BSLDescriptionReader.parseVariableDescription(tokens);
438438

@@ -445,7 +445,7 @@ void parseVariableDescription3() {
445445
assertThat(variableDescription.getLink()).isEmpty();
446446

447447
assertThat(
448-
Objects.equals(variableDescription.getSimpleRange(), create(1, 32)))
448+
Objects.equals(variableDescription.getSimpleRange(), create(1, 22)))
449449
.isTrue();
450450
}
451451

0 commit comments

Comments
 (0)