-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 633caab.
- Loading branch information
1 parent
516c606
commit 8d0513c
Showing
5 changed files
with
243 additions
and
6 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
33 changes: 33 additions & 0 deletions
33
haskell-backend/src/main/java/org/kframework/backend/haskell/HaskellKRunOptions.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,33 @@ | ||
// Copyright (c) Runtime Verification, Inc. All Rights Reserved. | ||
package org.kframework.backend.haskell; | ||
|
||
import com.beust.jcommander.Parameter; | ||
import org.kframework.backend.kore.ModuleToKORE; | ||
import org.kframework.utils.inject.RequestScoped; | ||
import org.kframework.utils.options.BaseEnumConverter; | ||
|
||
@RequestScoped | ||
public class HaskellKRunOptions { | ||
|
||
@Parameter(names="--haskell-backend-command", description="Command to run the Haskell backend execution engine.") | ||
public String haskellBackendCommand = "kore-exec"; | ||
|
||
@Parameter(names="--haskell-backend-home", description="Directory where the Haskell backend source installation resides.") | ||
public String haskellBackendHome = System.getenv("KORE_HOME"); | ||
|
||
@Parameter(names="--default-claim-type", converter = SentenceTypeConverter.class, description="Default type for claims. Values: [all-path|one-path].") | ||
public ModuleToKORE.SentenceType defaultClaimType = ModuleToKORE.SentenceType.ALL_PATH; | ||
|
||
public static class SentenceTypeConverter extends BaseEnumConverter<ModuleToKORE.SentenceType> { | ||
|
||
public SentenceTypeConverter(String optionName) { | ||
super(optionName); | ||
} | ||
|
||
@Override | ||
public Class<ModuleToKORE.SentenceType> enumClass() { | ||
return ModuleToKORE.SentenceType.class; | ||
} | ||
} | ||
|
||
} |
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