-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
245 changed files
with
9,152 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
.run/Compile SimpleMission LeaderOperational_Unsafe.run.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Compile SimpleMission LeaderOperational_Unsafe" type="JetRunConfigurationType"> | ||
<option name="MAIN_CLASS_NAME" value="hu.bme.mit.semantifyr.oxsts.semantifyr.SemantifyrCliKt" /> | ||
<module name="semantifyr.semantifyr.main" /> | ||
<option name="PROGRAM_PARAMETERS" value="compile TestModels\Automated\Gamma\SimpleMission\model.oxsts TestModels\Automated\GammaSemanticLibrary LeaderOperational_Unsafe" /> | ||
<shortenClasspath name="NONE" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/subprojects/semantifyr" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
3 changes: 3 additions & 0 deletions
3
.run/Compile SimpleMission LeaderOperational_Unsafe.run.xml.license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-FileCopyrightText: 2023-2024 The Semantifyr Authors | ||
|
||
SPDX-License-Identifier: EPL-2.0 |
12 changes: 12 additions & 0 deletions
12
.run/Verify SimpleMission LeaderOperational_Unsafe.run.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Verify SimpleMission LeaderOperational_Unsafe" type="JetRunConfigurationType"> | ||
<option name="MAIN_CLASS_NAME" value="hu.bme.mit.semantifyr.oxsts.semantifyr.SemantifyrCliKt" /> | ||
<module name="semantifyr.semantifyr.main" /> | ||
<option name="PROGRAM_PARAMETERS" value="verify TestModels\Automated\Gamma\SimpleMission\model.oxsts TestModels\Automated\GammaSemanticLibrary LeaderOperational_Unsafe" /> | ||
<shortenClasspath name="NONE" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/subprojects/semantifyr" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
3 changes: 3 additions & 0 deletions
3
.run/Verify SimpleMission LeaderOperational_Unsafe.run.xml.license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-FileCopyrightText: 2023-2024 The Semantifyr Authors | ||
|
||
SPDX-License-Identifier: EPL-2.0 |
12 changes: 12 additions & 0 deletions
12
.run/Verify XSTS SimpleMission LeaderOperational_Unsafe.run.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Verify XSTS SimpleMission LeaderOperational_Unsafe" type="JetRunConfigurationType"> | ||
<option name="MAIN_CLASS_NAME" value="hu.bme.mit.semantifyr.oxsts.semantifyr.SemantifyrCliKt" /> | ||
<module name="semantifyr.semantifyr.main" /> | ||
<option name="PROGRAM_PARAMETERS" value="verify-xsts TestModels\Automated\Gamma\SimpleMission\model.xsts" /> | ||
<shortenClasspath name="NONE" /> | ||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/subprojects/semantifyr" /> | ||
<method v="2"> | ||
<option name="Make" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
3 changes: 3 additions & 0 deletions
3
.run/Verify XSTS SimpleMission LeaderOperational_Unsafe.run.xml.license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-FileCopyrightText: 2023-2024 The Semantifyr Authors | ||
|
||
SPDX-License-Identifier: EPL-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
84 changes: 0 additions & 84 deletions
84
subprojects/compiler/src/main/kotlin/reader/OxstsReader.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
|
||
** | ||
/src/main/xtext-gen/ | ||
!.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023-2024 The Semantifyr Authors | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
plugins { | ||
id("hu.bme.mit.semantifyr.gradle.xtext-generated") | ||
id("hu.bme.mit.semantifyr.gradle.conventions.application") | ||
} | ||
|
||
val ideGeneratedClasspath by configurations.creating { | ||
isCanBeConsumed = false | ||
isCanBeResolved = true | ||
} | ||
|
||
dependencies { | ||
api(project(":oxsts.lang")) | ||
|
||
implementation(libs.xtext.ide) | ||
runtimeOnly(libs.slf4j.log4j) | ||
|
||
ideGeneratedClasspath(project(":oxsts.lang", configuration = "ideGeneratedOutput")) | ||
} | ||
|
||
val distributionOutput by configurations.creating { | ||
isCanBeConsumed = true | ||
isCanBeResolved = false | ||
} | ||
|
||
artifacts { | ||
add(distributionOutput.name, layout.buildDirectory.dir("install")) { | ||
builtBy(tasks.installDist) | ||
} | ||
} | ||
|
||
val cloneIdeGenerated by tasks.registering(Sync::class) { | ||
inputs.files(ideGeneratedClasspath) | ||
|
||
from(ideGeneratedClasspath.asFileTree) | ||
into("src/main/xtext-gen") | ||
} | ||
|
||
listOf("compileJava", "processResources").forEach { task -> | ||
tasks.named(task) { | ||
inputs.files(cloneIdeGenerated.get().outputs) | ||
} | ||
} | ||
|
||
tasks.clean { | ||
delete("src/main/xtext-gen") | ||
} | ||
|
||
application { | ||
mainClass = "hu.bme.mit.semantifyr.oxsts.lang.ide.OxstsIdeSetup" | ||
} |
14 changes: 14 additions & 0 deletions
14
...cts/oxsts.lang.ide/src/main/java/hu/bme/mit/semantifyr/oxsts/lang/ide/OxstsIdeModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023-2024 The Semantifyr Authors | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
package hu.bme.mit.semantifyr.oxsts.lang.ide; | ||
|
||
/** | ||
* Use this class to register ide components. | ||
*/ | ||
public class OxstsIdeModule extends AbstractOxstsIdeModule { | ||
|
||
} |
46 changes: 46 additions & 0 deletions
46
...ects/oxsts.lang.ide/src/main/java/hu/bme/mit/semantifyr/oxsts/lang/ide/OxstsIdeSetup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023-2024 The Semantifyr Authors | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
package hu.bme.mit.semantifyr.oxsts.lang.ide; | ||
|
||
import com.google.inject.Guice; | ||
import com.google.inject.Injector; | ||
import hu.bme.mit.semantifyr.oxsts.lang.OxstsRuntimeModule; | ||
import hu.bme.mit.semantifyr.oxsts.lang.OxstsStandaloneSetup; | ||
import hu.bme.mit.semantifyr.oxsts.model.oxsts.OxstsPackage; | ||
import org.eclipse.lsp4j.jsonrpc.Launcher; | ||
import org.eclipse.lsp4j.services.LanguageClient; | ||
import org.eclipse.xtext.ide.server.LanguageServerImpl; | ||
import org.eclipse.xtext.ide.server.ServerModule; | ||
import org.eclipse.xtext.util.Modules2; | ||
|
||
import java.io.*; | ||
import java.util.concurrent.ExecutionException; | ||
import java.util.concurrent.Future; | ||
|
||
/** | ||
* Initialization support for running Xtext languages as language servers. | ||
*/ | ||
public class OxstsIdeSetup extends OxstsStandaloneSetup { | ||
|
||
@Override | ||
public Injector createInjector() { | ||
return Guice.createInjector(Modules2.mixin(new OxstsRuntimeModule(), new OxstsIdeModule())); | ||
} | ||
|
||
public static void main(String[] args) throws InterruptedException, ExecutionException { | ||
OxstsIdeSetup.doSetup(); | ||
OxstsPackage.eINSTANCE.getName(); | ||
|
||
Injector injector = Guice.createInjector(new ServerModule()); | ||
LanguageServerImpl languageServer = injector.getInstance(LanguageServerImpl.class); | ||
|
||
Launcher<LanguageClient> launcher = Launcher.createLauncher(languageServer, LanguageClient.class, System.in, System.out); | ||
languageServer.connect(launcher.getRemoteProxy()); | ||
launcher.startListening().get(); | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
subprojects/oxsts.lang.ide/src/main/resources/plugin.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# SPDX-FileCopyrightText: 2023-2024 The Semantifyr Authors | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
|
||
_UI_DiagnosticRoot_diagnostic=Specified, so the LSP server functions correctly |
Oops, something went wrong.