]> ocean-lang.org Git - ocean/commit
oceani: Make 'List' separate from Print
authorNeilBrown <neil@brown.name>
Tue, 9 Nov 2021 02:44:27 +0000 (13:44 +1100)
committerNeilBrown <neil@brown.name>
Tue, 9 Nov 2021 04:46:45 +0000 (15:46 +1100)
commite49b8c9295ce261db570ea62025b5dfa2a697b2b
treef6796cb5dcbcf80ef9ef2e1077f6f4ca4edd2341
parent84f4783c47a0fcb74b7f46d3ff96fe8a3ad1b278
oceani: Make 'List' separate from Print

Create a stand-alone ExpressionList which uses the List binode rather
than the Print binode.

The Print statement no longer uses a NULL entry on the end of the list
to denode a trailing comma.  Rather ->left is used for a normal print
list and ->right is used for a print list that has a trailing comma.

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