fa23a4c125
The `Parameter` kind in `UntypedKind` was only used for identifiers that were being declared or referenced. This commit renames it to `Identifier` and updates all the necessary code to reflect this change. This simplifies the AST and makes it more consistent. Additionally, a new macro `repeat` has been added to `src/ast/system.myc`.
13 lines
286 B
Plaintext
13 lines
286 B
Plaintext
;; Benchmark: 1.0ms
|
|
;; Benchmark-Repeat: 3
|
|
;; Tests the effect of record inlining and field lookup optimization
|
|
;; Output: 10000
|
|
(do
|
|
(def config {:start 0 :limit 10000 :step 2})
|
|
(def x (.start config))
|
|
|
|
(while (< x (.limit config))
|
|
(assign x (+ x (.step config))))
|
|
x
|
|
)
|