https://github.com/dayyass/milkshakelang
The MilkShake Programming Language.
https://github.com/dayyass/milkshakelang
programming-language
Last synced: 10 months ago
JSON representation
The MilkShake Programming Language.
- Host: GitHub
- URL: https://github.com/dayyass/milkshakelang
- Owner: dayyass
- License: mit
- Created: 2022-08-17T08:54:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T22:13:43.000Z (over 3 years ago)
- Last Synced: 2025-04-13T07:55:38.551Z (10 months ago)
- Topics: programming-language
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The MilkShake Programming Language
Dedicated to the biggest MilkShake lover Igor ❤️
## Installation
```
pip install milkshakelang
```
## Usage
MilkShakeLang commands:
- **give** *[owner]* *[size]* milkshake
- **drink** *[owner]* milkshake *[ounces]*
- **refill** *[owner]* milkshake *[ounces]*
Available MilkShake sizes:
- demi - 3 ounces
- short - 8 ounces
- tall - 12 ounces
- grande - 16 ounces
- venti - 24 ounces
- trenta - 30 ounces
Write MilkShakeLang [script](https://github.com/dayyass/milkshakelang/blob/main/script.milkshake):
```
give Igor venti milkshake
# Igor got Venti MilkShake (24 ounces)
give Dani grande milkshake
# Dani got Grande MilkShake (16 ounces)
drink Igor milkshake 16
# Igor:
# - Drank 16 ounces - so delicious!
drink Igor milkshake 16
# Igor:
# - Drank 8 ounces and finished my milkshake...
# - I want more!
drink Igor milkshake 16
# Igor:
# - There is nothing to drink...
# - Need more milkshake!
drink Dani milkshake 16
# Dani:
# - Drank 16 ounces and finished my milkshake...
# - I want more!
refill Dani milkshake 16
# Dani:
# - Incredible, full cup of milkshake!
refill Igor milkshake 16
# Igor:
# - Wow, 16 ounces of new milkshake!
refill Igor milkshake 16
# MilkShakeOverflowError: Milkshake was spilled on the floor!
```
Run the script:
```
milkshakelang script.milkshake
```
## Requirements
Python >= 3.7