Ona Script Control Flow Statements #23

Closed
opened 2023-07-15 16:33:42 +02:00 by kayomn · 2 comments
Owner

Ona scripts do not support any control flow, making it impossible to do anything more complicated than creating variables, assigning the results of expressions to variables, and returning them at the end of the script.

The following minimum control flow constructs should be supported.

  • If / else
  • While

Whether these should be expressions or statements is another conversation but the language needs them to be useful beyond defining program configurations.

Ona scripts do not support any control flow, making it impossible to do anything more complicated than creating variables, assigning the results of expressions to variables, and returning them at the end of the script. The following minimum control flow constructs should be supported. * If / else * While Whether these should be expressions or statements is another conversation but the language needs them to be useful beyond defining program configurations.
kayomn added this to the (deleted) milestone 2023-07-15 16:33:42 +02:00
kayomn changed title from Kym Control Flow to Ona Script Control Flow Statements 2023-08-20 14:17:17 +02:00
Author
Owner

This looks to be blocked by a miscompilation in the Zig compiler, as it's causing symbol name corruption during AST parsing within Kym.

This looks to be blocked by a miscompilation in the Zig compiler, as it's causing symbol name corruption during AST parsing within Kym.
Author
Owner

Found a workaround for the miscompilation - work can continue.

Found a workaround for the miscompilation - work can continue.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kayomn/ona#23
No description provided.