-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There's still something subtly wrong, but I haven't diagnosed what. The new tests that reference the qdeql interpreter are ccompletely broken as a result, and therefore commented out. Further testing and bugfixing is required.
- Loading branch information
Showing
11 changed files
with
120 additions
and
38 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
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
start: | ||
GTC | ||
BNG end | ||
PTC | ||
POP | ||
JMP start | ||
end: | ||
EXT |
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,26 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
# Adapted from https://cedwards.xyz/defer-for-shell/ | ||
DEFER='' | ||
defer () { | ||
DEFER="$*; $DEFER" | ||
# shellcheck disable=SC2064 | ||
trap "{ $DEFER}" EXIT | ||
} | ||
|
||
text=' | ||
/\_/\ ___ | ||
= ಠ_ಠ =_______ \ \ | ||
__^ __( \.__) ) | ||
(@)<_____>__(_____)____/' | ||
|
||
folder=$(dirname "$0") | ||
|
||
errors=$(mktemp) | ||
defer rm "$errors" | ||
|
||
output=$($TRILANGLE -fwA "${folder}/cat.txt" <<<"$text" 2>"$errors") | ||
test ! -s "$errors" | ||
test "$text" = "${output//$'\r'/}" |
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