Skip to main content

The MilkShake Programming Language.

Project description

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:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

milkshakelang-0.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

milkshakelang-0.1.0-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page