Compare commits
No commits in common. "aa535eba9c6eed01afc515c8da4ed643ee424b76" and "b10bfe216a9def67018c652b09f2a96ad35bf937" have entirely different histories.
aa535eba9c
...
b10bfe216a
21
LICENSE
21
LICENSE
|
@ -1,21 +0,0 @@
|
||||||
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,43 +1,29 @@
|
||||||
<!--- 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 [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.
|
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
|
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 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.
|
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 ##
|
||||||
|
|
||||||
```
|
License is `beerware`:
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2017-2024 Jon Michael Aanes
|
<jonjmaa@gmail.com> 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
|
||||||
|
|
||||||
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,14 +1,17 @@
|
||||||
/*
|
/* ## 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)
|
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.
|
||||||
|
|
||||||
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.
|
## License ##
|
||||||
|
|
||||||
Written in November 2017, mostly for the kicks, but also for testing
|
<jonjmaa@gmail.com> wrote this program. As long as you retain this notice you
|
||||||
my group's Tiger-compiler.
|
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
|
||||||
|
|
||||||
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