Giter Club home page Giter Club logo

cherri's Introduction

Cherri

Cherri

Build & Test macOS Build Releases Go License Platform GoDoc Go Report Card

Cherri (pronounced cherry) is a iOS Siri Shortcuts programming language, that compiles directly to a valid runnable Shortcut.

Hello World Example

🌟 Top Features

  • πŸŽ“ Easy to learn and syntax similar to other languages
  • 🐞 1-1 translation to Shortcut actions as much as possible to make debugging easier
  • πŸͺ„ No magic variables syntax, they're constants instead
  • πŸͺΆ Optimized to create small as possible Shortcuts and reduces memory usage at runtime
  • #️⃣ Include files within each other for large Shortcut projects
  • πŸ”§ Define your own custom actions to paste actions
  • πŸ₯© Enter actions raw with custom identifier and parameters
  • ❓ Define import questions
  • πŸ“‡ Generate VCards for menus
  • πŸ”’ Strongly statically typed with type inference

Learn more

πŸ“£ WIP πŸ“£

This project has not yet reached a stable version. It is under heavy development and backward incompatible changes may be made.

Usage

cherri file.cherri

Run cherri without any arguments to see all options and usage. For development, use the --debug (or -d) option to print stack traces, debug information, and output a .plist file.

Why macOS only?

Generating valid Shortcuts is only possible on macOS. However, I am hoping to add a signing server to the web editor that will turn out valid Shortcuts on any platform with a web browser.

Development on other platforms

As it stands, I don't want someone to get confused and think Shortcuts compiled using Cherri on other platforms will run on their Mac or iOS device. However, you can build the compiler for your platform, it will just skip signing the compiled Shortcut, so it will not run on iOS 15+ or macOS 12+. Also, note that the compiler is primarily developed and tested on Unix-like systems.

Read my full thoughts on this

Why another Shortcuts language?

Because it's fun :)

Some languages have been abandoned, don't work very well, or no longer work. I don't want Shortcuts languages to die. There should be more, not less.

Some stability comes with the project being on macOS and not iOS.

Community

Credits

Reference

Inspiration


The original Workflow app assigned a code name to each release. Cherri is named after the second to last update "Cherries" (also cherry is one of my favorite flavors).

This project started on Oct 5, 2022.

cherri's People

Contributors

electrikmilk avatar erenyenigul avatar josephshenton avatar mikeogezi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.