From 703298c501e823416d37161d68db9517c8ed81a4 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Tue, 24 Sep 2024 23:21:51 +0200 Subject: [PATCH] Moving README into main file --- README.md | 29 ----------------------------- tigersay.tig | 17 +++++++---------- 2 files changed, 7 insertions(+), 39 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 33dfbbb..0000000 --- a/README.md +++ /dev/null @@ -1,29 +0,0 @@ - -# Tigersay # - -![Once upon a time, there were a programming language named Tiger, and nobody used it. Then some stupid student though 'lets write a clone of cowsay'. And that is how I was born](./example.png) - -An implementation of the classic Perl program -[cowsay](https://en.wikipedia.org/wiki/Cowsay) in -the Tiger programming language from the -[Modern Compiler Implementation in ML/C/Java](https://www.cs.princeton.edu/~appel/modern/ml/) -books. - -Written in November 2017, mostly for the kicks, but also for testing -my group's Tiger-compiler. - -The framework we're using does not allow us to -parse commandline-arguments, so the only way to interact with -`tigersay` is to pipe into the compiled program. For example -`echo "Grrrrr" | tigersay`. For the same reasons it does not -support alternative faces. - -## License ## - -License is `beerware`: - - wrote this program. As long as you retain this notice you - can do whatever you want with this stuff. If we meet some day, and you think - this stuff is worth it, you can buy me a beer in return. - - Jon Michael Aanes - diff --git a/tigersay.tig b/tigersay.tig index a8e5953..70cc62f 100644 --- a/tigersay.tig +++ b/tigersay.tig @@ -1,17 +1,14 @@ -/* ## Tigersay ## +/* +# Tigersay # - Implementation of cowsay in the Tiger programming language. - Does not come as a binary, nor with a Tiger compiler. - Compilation is left as an exercise for the reader. +![Once upon a time, there were a programming language named Tiger, and nobody used it. Then some stupid student though 'lets write a clone of cowsay'. And that is how I was born](./example.png) - ## License ## +An implementation of the classic Perl program [cowsay](https://en.wikipedia.org/wiki/Cowsay) in the Tiger programming language from the [Modern Compiler Implementation in ML/C/Java](https://www.cs.princeton.edu/~appel/modern/ml/) books. Does not come as a binary, nor with a Tiger compiler. Compilation is left as an exercise for the reader. - wrote this program. As long as you retain this notice you - can do whatever you want with this stuff. If we meet some day, and you think - this stuff is worth it, you can buy me a beer in return. - - - Jon Michael Aanes +Written in November 2017, mostly for the kicks, but also for testing +my group's Tiger-compiler. +The framework we're using does not allow us to parse commandline-arguments, so the only way to interact with `tigersay` is to pipe into the compiled program. For example `echo "Grrrrr" | tigersay`. For the same reasons it does not support alternative faces. */ let