Skip to content

peter-hunt/cocktail-lang

Repository files navigation

The Cocktail Lang

The Cocktail Lang helps you to create speedy and beautiful code easily.

Installation

Use git to install Cocktail Lang as a folder. Go to the directory you want to download Regex in, and enter the following command:

git clone https://github.com/peter-hunt/cocktail-lang.git

Or use pip to install it as a package. (recommended)

pip install git+https://github.com/peter-hunt/cocktail-lang.git

This project is using libraries organized for Python 3.8+ built into the directory Docopt 0.6.2 and Rply 0.7.7 are used. To install original Dependencies, go to the project's directory and enter these commands

rm -rf cocktail/rply cocktail/docopt.py
pip install -r requirements.txt

This project requires Python 3.8+

Current State

The features that are currently implemented are as follows:

  • Data types: Boolean, Number, String, Tuple and List
  • Data operations (not well-implemented yet)
  • Most operators from Python: +, -, *, /, etc.
  • Comments
  • Flow control: if, if/else, for-loop, for-of-loop, while-loop
  • Constants
  • Functions (Beta, currently not callable)
  • User input and system output

Extension

Cocktail Lang Support

WARNING: This extension is unstable, read the instructions carefully before installing.

Donation

This project is open-source and free-to-use, it would be really helpful to support me! For more information, please see my Patreon.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Example and Testing

To see examples of the Cocktail programs, go to the tests directory.

License

MIT

About

Cocktail Programming Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages