Make NODE-DOTIMES hold a counter variable

This commit is contained in:
John Lorentzson 2025-05-20 12:28:11 +02:00
parent 6b74c0247e
commit 5a18cc9864

View file

@ -78,6 +78,8 @@
(defclass node-dotimes (node)
((%stop-ref :accessor stop-ref :initarg :stop-ref
:documentation "A reference giving a value of how many times to run the loop.")
(%counter-ref :accessor counter-ref :initarg :counter-ref
:documentation "A reference to a variable being set to the loop index.")
(%loopee-node :accessor loopee-node :initarg :loopee-node)))
(defmethod generate-code ((node node-dotimes))