iOS Siri Shortcuts Programming Language 🍒

  • By Brandon Jordan
  • Last update: Jan 5, 2023
  • Comments: 0

cherri

Cherri

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

Documentation

hello-world.cherri

#define color yellow
#define glyph smiley
#define name Hello, Cherri!

@message = "Hello, Cherri!"
alert(message, "Alert", false)

This project is in the early stages of development, but it does have an _ idealistic_ roadmap.

Usage

cherri file.cherri

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

Why macOS only?

Generating valid Shortcuts is only possible on macOS. I am planning to make a web editor once the compiler matures a little more that will turn out valid Shortcuts.

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 and use the --unsigned (or -u for short) to skip signing the compiled Shortcut, but the compiled Shortcut will not run on iOS or macOS, obviously. The compiler currently only supports Unix-like systems.

Read my full thoughts on this

Why another Shortcuts language?

  1. Because it's fun :)
  2. Some languages have been abandoned, don't work very well, or no longer work.
  3. I don't want Shortcuts languages to die. There should be more, not less.
  4. Some stability that comes with the project being on macOS and not iOS.
  5. I am not aware of any project other than one that compiles a Shortcut in a way that is meant for a desktop OS.

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).

Download

cherri.zip