Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0mp/shakespeare-algorithms
Algorithms written in the Shakespeare Programming Language.
https://github.com/0mp/shakespeare-algorithms
algorithm shakespeare shakespeare-programming-language spl
Last synced: 20 days ago
JSON representation
Algorithms written in the Shakespeare Programming Language.
- Host: GitHub
- URL: https://github.com/0mp/shakespeare-algorithms
- Owner: 0mp
- Created: 2015-04-20T23:13:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-03T16:59:28.000Z (over 9 years ago)
- Last Synced: 2024-03-15T12:16:34.119Z (8 months ago)
- Topics: algorithm, shakespeare, shakespeare-programming-language, spl
- Homepage:
- Size: 117 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Algorithms written in the Shakespeare Programming Language (SPL)
This is a repo where I keep my little programs I've done in the SPL.
## Bubble sort
### How to use it?
Write 5 numbers that you would like to sort. Do not type any spaces between them!
The program will print the sorted array of numbers. It will neither print a newline character
nor spaces between the numbers. A number must consist of one digit only.#### Example:
##### In:
```
57490
```
##### Out:
```
04579
```## Stack sort
### How to use it?
You can enter as much of nonnegative numbers as you want.
Separate the numbers using a newline character. The program will stop getting the
numbers from the input stream when the number "-1" is entered.#### Example:
##### In:
```
420
404
23
14
290595
1
-1
```
##### Out:
```
1
14
23
404
420
290595
```## How to compile it?
The Shakespeare Programming Language is usually translated
to C and then compiled. The official translator can be downloaded
from [the official webpage][2].If you have any difficulties with making the translator run I do recommend
to search thourgh the [Shakespeare Programming Language Tag][1] on StackOverflow.[1]: http://stackoverflow.com/questions/tagged/shakespeare-lang
[2]: http://shakespearelang.sourceforge.net##### Long live Shakespeare!