]> ocean-lang.org Git - ocean/commit
oceani - delay processing of global constants
authorNeilBrown <neil@brown.name>
Thu, 2 Dec 2021 02:43:27 +0000 (13:43 +1100)
committerNeilBrown <neil@brown.name>
Fri, 3 Dec 2021 08:14:40 +0000 (19:14 +1100)
commit923ca343c74104bfa366b6d3adc09b14e11cadfa
tree976085b27a26c47e4420114027a2066b21571c0b
parent89b05f4755bfc7c6ba81305f4f4cada1141b991e
oceani - delay processing of global constants

Rather than setting up the value of a constant as it is parsed, collect
the declarations and process them all at the end.

This is a step towards allowing constants to refer to constants that are
declared later.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani-tests.mdc
csrc/oceani.mdc