Change syntax for boxed array to support different length and allocated-length (#568)

* change syntax for boxed array

* fix test and make the flava thing kind of work
This commit is contained in:
water111
2021-06-07 20:22:06 -04:00
committed by GitHub
parent f516737cf7
commit 5b24e43143
20 changed files with 197 additions and 106 deletions
@@ -4,13 +4,17 @@
;; definition for symbol EulSafe, type (array int32)
(define
EulSafe
(the-as (array int32) (new 'static 'boxed-array int32 4 0 1 2 0))
(the-as (array int32)
(new 'static 'boxed-array :type int32 :length 4 :allocated-length 4 0 1 2 0)
)
)
;; definition for symbol EulNext, type (array int32)
(define
EulNext
(the-as (array int32) (new 'static 'boxed-array int32 4 1 2 0 1))
(the-as (array int32)
(new 'static 'boxed-array :type int32 :length 4 :allocated-length 4 1 2 0 1)
)
)
;; definition of type euler-angles
@@ -37,7 +41,3 @@
;; failed to figure out what this is:
(let ((v0-1 0))
)
@@ -92,8 +92,7 @@
(new
'static
'boxed-array
float
32
:type float :length 32 :allocated-length 32
1.0
0.5
0.25
@@ -137,8 +136,7 @@
(new
'static
'boxed-array
float
32
:type float :length 32 :allocated-length 32
0.7853982
0.4636476
0.24497867