Skip to content

Commit

Permalink
Релиз 0.24
Browse files Browse the repository at this point in the history
  • Loading branch information
theshadowco committed Jan 7, 2024
2 parents ec5aa2a + 364f4fa commit 9147679
Show file tree
Hide file tree
Showing 44 changed files with 2,867 additions and 4,230 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.6'
python-version: '3.12'
architecture: 'x64'

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Make image

on:
release:
types: [published, edited]
types: [published]

jobs:
build:
Expand All @@ -25,4 +25,4 @@ jobs:
with:
files: './build/libs/*.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}


1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ gen/
*.orig
/.idea/misc.xml
*.tokens
/.idea/inspectionProfiles/Project_Default.xml
24 changes: 9 additions & 15 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,20 @@ gitVersioning.apply {
}
val isSnapshot = gitVersioning.gitVersionDetails.refType != GitRefType.TAG

val antlrVersion = "4.9.0"
val antlrGroupId = "com.tunnelvisionlabs"
val antlrArtifactId = "antlr4"

dependencies {
implementation(antlrGroupId, antlrArtifactId, antlrVersion)
antlr(antlrGroupId, antlrArtifactId, antlrVersion)

implementation("com.github.1c-syntax", "utils", "0.5.1")

testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.6.1")
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", "5.6.1")
testImplementation("org.assertj", "assertj-core", "3.14.0")
antlr("com.tunnelvisionlabs", "antlr4", "4.9.0")

// https://mvnrepository.com/artifact/commons-io/commons-io
implementation("commons-io", "commons-io", "2.6")
implementation("io.github.1c-syntax", "bsl-parser-core", "0.1.0")

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

// testing
testImplementation("io.github.1c-syntax", "bsl-parser-testing", "0.1.1")
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.10.1")
testImplementation("org.junit.jupiter", "junit-jupiter-engine", "5.10.1")
testImplementation("org.junit.jupiter", "junit-jupiter-params", "5.10.1")
testImplementation("org.assertj", "assertj-core", "3.25.0")
}

java {
Expand Down Expand Up @@ -95,7 +90,6 @@ sourceSets.jmh {
// [bug] https://youtrack.jetbrains.com/issue/KT-46165
tasks.named<org.gradle.jvm.tasks.Jar>("sourcesJar") {
duplicatesStrategy = DuplicatesStrategy.INCLUDE

dependsOn(tasks.generateGrammarSource)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright (c) 2018-2023
* Copyright (c) 2018-2024
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright (c) 2018-2023
* Copyright (c) 2018-2024
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright (c) 2018-2023
* Copyright (c) 2018-2024
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand All @@ -23,9 +23,12 @@

import org.antlr.v4.runtime.CharStreams;

public class BSLMethodDescriptionTokenizer extends Tokenizer<BSLMethodDescriptionParser.MethodDescriptionContext, BSLMethodDescriptionParser> {
public class BSLMethodDescriptionTokenizer
extends Tokenizer<BSLMethodDescriptionParser.MethodDescriptionContext, BSLMethodDescriptionParser> {
public BSLMethodDescriptionTokenizer(String content) {
super(content + "\n", new BSLMethodDescriptionLexer(CharStreams.fromString(""), true), BSLMethodDescriptionParser.class);
super(content + "\n",
new BSLMethodDescriptionLexer(CharStreams.fromString(""), true),
BSLMethodDescriptionParser.class);
}

@Override
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright (c) 2018-2023
* Copyright (c) 2018-2024
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand All @@ -26,7 +26,7 @@

public class BSLTokenizer extends Tokenizer<BSLParser.FileContext, BSLParser> {
public BSLTokenizer(String content) {
super(content, new BSLLexer(CharStreams.fromString(""), true), BSLParser.class);
this(content, new BSLLexer(CharStreams.fromString(""), true));
}

public BSLTokenizer(String content, Lexer lexer) {
Expand Down

This file was deleted.

Loading

0 comments on commit 9147679

Please sign in to comment.