]> ocean-lang.org Git - ocean/commit
New lang: Stoney Creek
authorNeilBrown <neil@brown.name>
Wed, 31 Jan 2018 03:25:16 +0000 (14:25 +1100)
committerNeilBrown <neil@brown.name>
Tue, 13 Feb 2018 02:23:15 +0000 (13:23 +1100)
commit5c5bce5b10dc2476374aea8264115089e713ca57
treef39c2098f9d8a5010e258f94f8fe8ba324c4fe7e
parent81cb9488cd8593154b3a33303c62778d0a0db961
New lang: Stoney Creek

This is the second iteration of language design.
it adds scopes variables.
Variables must be declared before use, but they
can be declared in both branches of an 'if', then
used afterwards as the one variable.

No hole-in-scope is allowed: names that are declared
cannot be redeclared in a subordinate scope.

A test program is included:
   make sayhello

Note that there are no useful error messages yet.
That is the next step.

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