Add Vector Types to Ona Script #34

Merged
kayomn merged 4 commits from kym-vector-types into main 2023-08-13 15:39:50 +02:00
Owner

Implements parsing and VM support for 2 and 3-component vector types using the respective @vec2(...) and @vec3(...) builtins.

# 3-component vector with all elements explicitly initialized.
pos = @vec3(10, 20, 0.3)

# 2-component vector with all elements initialized to 0.
coord = @vec2(0)

Closes #25.

Implements parsing and VM support for 2 and 3-component vector types using the respective `@vec2(...)` and `@vec3(...)` builtins. ```lua # 3-component vector with all elements explicitly initialized. pos = @vec3(10, 20, 0.3) # 2-component vector with all elements initialized to 0. coord = @vec2(0) ``` Closes #25.
kayomn added this to the (deleted) milestone 2023-08-13 15:30:40 +02:00
kayomn self-assigned this 2023-08-13 15:30:42 +02:00
kayomn added 3 commits 2023-08-13 15:31:06 +02:00
continuous-integration/drone/push Build is passing Details
0fbdc001d4
Add parser support for vector literals
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
016165b6a6
Replace dedicated vector literal syntax builtins
kayomn reviewed 2023-08-13 15:35:33 +02:00
@ -40,2 +42,4 @@
push_const: u16,
push_local: u8,
push_vector2,
push_vector3,
Author
Owner

These are no longer needed.

These are no longer needed.
kayomn added 1 commit 2023-08-13 15:38:28 +02:00
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
af7483db13
Remove dead code changes
kayomn merged commit d2490bc90d into main 2023-08-13 15:39:49 +02:00
kayomn deleted branch kym-vector-types 2023-08-13 15:39:53 +02:00
Sign in to join this conversation.
No reviewers
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#34
No description provided.