smalltalk: Conway Life + dynamic-array literal {…}; classic corpus complete
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
This commit is contained in:
@@ -159,6 +159,15 @@
|
||||
(fn (e) (append! out (smalltalk-eval-ast e frame)))
|
||||
(get ast :elements))
|
||||
out)))
|
||||
((= ty "dynamic-array")
|
||||
;; { e1. e2. ... } — each element is a full expression
|
||||
;; evaluated at runtime. Returns a fresh mutable array.
|
||||
(let ((out (list)))
|
||||
(begin
|
||||
(for-each
|
||||
(fn (e) (append! out (smalltalk-eval-ast e frame)))
|
||||
(get ast :elements))
|
||||
out)))
|
||||
((= ty "lit-byte-array") (get ast :elements))
|
||||
((= ty "self") (get frame :self))
|
||||
((= ty "super") (get frame :self))
|
||||
|
||||
Reference in New Issue
Block a user