From 05561eb29690ed518ebc4803c3b1c64e03f4a252 Mon Sep 17 00:00:00 2001 From: Luke Bubar <43391582+lukerb52@users.noreply.github.com> Date: Mon, 3 Feb 2025 18:17:33 +0000 Subject: [PATCH 1/2] Update compiler to include instruction for the Rink calculator Added a compiler option for rink calculator files. Rink is a unit-conversion calculator written in Rust. --- .local/bin/compiler | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/compiler b/.local/bin/compiler index 57135906..a54106b3 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -33,6 +33,7 @@ case "${ext}" in pandoc -t ms --highlight-style="kate" -s -o "${base}.pdf" "${file}" ;; org) emacs "${file}" --batch -u "${USER}" -f org-latex-export-to-pdf ;; py) python "${file}" ;; + rink) rink -f "${file}" ;; [rR]md) Rscript -e "rmarkdown::render('${file}', quiet=TRUE)" ;; rs) cargo build ;; sass) sassc -a "${file}" "${base}.css" ;; From 38b0435b51b72cdda38303fbedddc9f8dc27044a Mon Sep 17 00:00:00 2001 From: Luke Bubar <43391582+lukerb52@users.noreply.github.com> Date: Thu, 20 Feb 2025 01:44:04 +0000 Subject: [PATCH 2/2] Update compiler to include COBOL instructions --- .local/bin/compiler | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/compiler b/.local/bin/compiler index a54106b3..214c98ce 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -20,6 +20,7 @@ case "${ext}" in [0-9]) preconv "${file}" | refer -PS -e | groff -mandoc -T pdf > "${base}.pdf" ;; mom|ms) preconv "${file}" | refer -PS -e | groff -T pdf -m"${ext}" > "${base}.pdf" ;; c) cc "${file}" -o "${base}" && "./${base}" ;; + cob) cobc -x -o "$base" "$file" && "$base" ;; cpp) g++ "${file}" -o "${base}" && "./${base}" ;; cs) mcs "${file}" && mono "${base}.exe" ;; go) go run "${file}" ;;