diff options
author | Nadrieril | 2019-03-01 17:28:19 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-01 17:28:19 +0100 |
commit | e5d9aee00b0c775df1d8e2d8819aeb80dffa73c2 (patch) | |
tree | e763a24a0d635048232e72e167ca37eafec69369 /dhall/compare.fish | |
parent | 8a2b7536902831079eddd7b00291b718f5dd7186 (diff) |
Split abnf_to_pest and dhall into their own crates
Diffstat (limited to 'dhall/compare.fish')
-rwxr-xr-x | dhall/compare.fish | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dhall/compare.fish b/dhall/compare.fish new file mode 100755 index 0000000..154f06a --- /dev/null +++ b/dhall/compare.fish @@ -0,0 +1,9 @@ +#!/usr/bin/env fish + +set dhall_hs_path ../dhall +set dhall_hs $dhall_hs_path/.stack-work/install/**/bin/dhall +set dhall_rs target/debug/dhall +set input_file $argv[1] +diff -u \ + --label "dhall-hs < $input_file" (eval $dhall_hs < $input_file ^&1 | psub) \ + --label "dhall-rs < $input_file" (eval $dhall_rs < $input_file ^&1 | psub) |