This is the Honu lang created with Racket: https://docs.racket-lang.org/honu/Examples.html?q=hon
The language looks just like other structured langs but it's built on top of Racket which requires parentheses ( )
for evaluation. How does Honu define statements without parentheses?
I can define some syntaxes in Racket, but when evaluate them, I need to add the wrapping parentheses:
(require syntax/parse/define)
(define-syntax-rule (while Cond Form ...)
(do [] [(not Cond)] Form ...)
)
(define I 0)
;HOW TO RUN while WITHOUT PARENTHESES?
(while (< I 10)
(displayln I)
(set! I (add1 I))
)
I can test the Racket code on: https://www.jdoodle.com/execute-racket-online/