Open-Jellycore icon indicating copy to clipboard operation
Open-Jellycore copied to clipboard

Unusual variable names valid in AppStore Jellycuts are invalid in Open-Jellycore

Open chrysaora-achlyos opened this issue 6 months ago • 0 comments

Describe the bug

The following code compile and runs in AppStore Jellycuts, but generates a syntax error in Open-Jellycore import Shortcuts var -(varA)="a" quicklook(input: -(varA))

To Reproduce

Steps to reproduce the behavior:

  1. create a file a.jelly by copying the code above in to the file
  2. run the command jelly a.jelly --export --out u_a.shortcut
  3. observe "SYNTAX ERROR, line: 2,..."

Expected behavior

If AppStore Jellycuts is the golden standard, the code should compile and display "a" is the quick look

Information

  • Device: [macBook Pro, 14-inch, 2021]
  • OS: [Sonoma 14.5]
  • Jellycuts Version [??? jelly command does not provide version info (/opt/homebrew/bin/jelly)]
  • Jailbroken? [No]

Additional context

Variables in shortcuts can have strange names like "-(varA)". To what extent that should be supported in the jelly language is unclear, but both AppStore Jellycuts and Open-Jellycore should be consistent, so one can move code from one to the other and have them both compile or both fail.

chrysaora-achlyos avatar Aug 23 '24 00:08 chrysaora-achlyos