Your ROOT_URL in app.ini is https://git.ondrovo.com/ but you are visiting http://159.69.29.240:49153/User_4574/crsn/src/commit/02f73a21f4b72a3ed16cf7bd471a9a10c43d885c/examples/expr.csn You should set ROOT_URL correctly, otherwise the web may not work correctly.
Croissant Runtime
 
 
crsn/examples/expr.csn

15 lines
257 B

(
(def A 10)
(def FOO (=add A (sub 10 5)))
; FOO is 15
(ld r0 (=add 14 1))
(cmp r0 15 (ne? (fault "1")))
(ld r0 (=add FOO 1))
(cmp r0 16 (ne? (fault "2")))
(ld r0 (=add (sub FOO 2) 3))
(cmp r0 16 (ne? (fault "3")))
)