mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-11-24 14:59:46 +01:00
nvim: setup compiler with silicon for viper files
This commit is contained in:
@@ -10,6 +10,7 @@ file=$(readlink -f "$1")
|
||||
dir=$(dirname "$file")
|
||||
base="${file%.*}"
|
||||
basenodir="${1%.*}"
|
||||
vipercmd="silicon" #"carbon"
|
||||
|
||||
cd "$dir" || exit
|
||||
|
||||
@@ -25,6 +26,7 @@ textype() { \
|
||||
}
|
||||
|
||||
case "$file" in
|
||||
*\.vpr) $vipercmd "$file" ;;
|
||||
*\.ms) refer -PS -e "$file" | groff -me -ms -kept -T pdf > "$base".pdf ;;
|
||||
*\.mom) refer -PS -e "$file" | groff -mom -kept -T pdf > "$base".pdf ;;
|
||||
*\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;;
|
||||
|
||||
2
.local/bin/etc/viper/carbon
Executable file
2
.local/bin/etc/viper/carbon
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
java -jar "$VIPER_CARBON" --z3Exe "$VIPER_Z3" --boogieExe "$VIPER_BOOGIE" "$@"
|
||||
2
.local/bin/etc/viper/silicon
Executable file
2
.local/bin/etc/viper/silicon
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
java -jar "$VIPER_SILICON" "$@"
|
||||
Reference in New Issue
Block a user