Compare commits
3 Commits
b10bfe216a
...
aa535eba9c
Author | SHA1 | Date | |
---|---|---|---|
aa535eba9c | |||
f20844fb5a | |||
703298c501 |
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2017-2024 Jon Michael Aanes
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
46
README.md
46
README.md
|
@ -1,29 +1,43 @@
|
||||||
|
<!--- WARNING --->
|
||||||
|
<!--- THIS IS AN AUTO-GENERATED FILE --->
|
||||||
|
<!--- MANUAL CHANGES CAN AND WILL BE OVERWRITTEN --->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Tigersay #
|
# 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)
|
![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
|
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.
|
||||||
[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
|
Written in November 2017, mostly for the kicks, but also for testing
|
||||||
my group's Tiger-compiler.
|
my group's Tiger-compiler.
|
||||||
|
|
||||||
The framework we're using does not allow us to
|
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.
|
||||||
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
|
||||||
|
|
||||||
License is `beerware`:
|
```
|
||||||
|
MIT License
|
||||||
|
|
||||||
<jonjmaa@gmail.com> wrote this program. As long as you retain this notice you
|
Copyright (c) 2017-2024 Jon Michael Aanes
|
||||||
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
|
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
```
|
||||||
|
|
17
tigersay.tig
17
tigersay.tig
|
@ -1,17 +1,14 @@
|
||||||
/* ## Tigersay ##
|
/*
|
||||||
|
# Tigersay #
|
||||||
|
|
||||||
Implementation of cowsay in the Tiger programming language.
|
![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)
|
||||||
Does not come as a binary, nor with a Tiger compiler.
|
|
||||||
Compilation is left as an exercise for the reader.
|
|
||||||
|
|
||||||
## 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.
|
||||||
|
|
||||||
<jonjmaa@gmail.com> wrote this program. As long as you retain this notice you
|
Written in November 2017, mostly for the kicks, but also for testing
|
||||||
can do whatever you want with this stuff. If we meet some day, and you think
|
my group's Tiger-compiler.
|
||||||
this stuff is worth it, you can buy me a beer in return.
|
|
||||||
|
|
||||||
- Jon Michael Aanes
|
|
||||||
|
|
||||||
|
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
|
let
|
||||||
|
|
Loading…
Reference in New Issue
Block a user