Updates and fixes to 1998/fanf
The try.sh script has been added to run the various inputs the judges recommended one try. The Makefile now can do the intermediate steps. This is possible with the way I fixed the entry to compile. If you look at the original code it's different than the fixed version which is post processing (if I recall correctly). Updated .gitignore. Unless there's a mistake in markdown formatting this should complete 1998/fanf's review.
This commit is contained in:
1 parent
effb1a9820
commit
aaa5209905
5 files changed
+100
-56
No files matched your search
Executable
+41
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
make all || exit 1
|
||||
|
||||
echo "$ echo '((\a(\b(\c(d)))) e' | ./fanf" 1>&2
|
||||
echo '((\a(\b(\c(d)))) e)' | ./fanf
|
||||
echo 1>&2
|
||||
|
||||
echo "$ echo '
|
||||
(\f\g\x
|
||||
(
|
||||
(g x) (f x)
|
||||
) K K z
|
||||
)'|./fanf" 1>&2
|
||||
echo '
|
||||
(\f\g\x
|
||||
(
|
||||
(g x) (f x)
|
||||
) K K z
|
||||
)'|./fanf
|
||||
echo 1>&2
|
||||
|
||||
|
||||
echo "$ echo '(\f(\f\g\x( (f((\a(g(b))) e)) (g x) ) K K z))' | ./fanf" 1>&2
|
||||
echo '(\f(\f\g\x( (f((\a(g(b))) e)) (g x) ) K K z))' | ./fanf
|
||||
echo 1>&2
|
||||
|
||||
echo "$ echo '
|
||||
(Y\f\n
|
||||
((= n 0)
|
||||
1
|
||||
(* n (f (- n 1)))
|
||||
)
|
||||
)' | ./fanf" 1>&2
|
||||
|
||||
echo '(Y\f\n
|
||||
((= n 0)
|
||||
1
|
||||
(* n (f (- n 1)))
|
||||
)
|
||||
)' | ./fanf
|
||||
Reference in new issue
Block a user