]> ocean-lang.org Git - ocean/commitdiff
oceani: updates for new approach to parsing indents.
authorNeilBrown <neil@brown.name>
Wed, 10 Mar 2021 01:37:46 +0000 (12:37 +1100)
committerNeilBrown <neil@brown.name>
Wed, 10 Mar 2021 04:31:43 +0000 (15:31 +1100)
Now that IN is a valid stand-alone token, it makes sense to change the
grammar for ocean.
We don't need the ':' before an indent if there is some other terminal
there.  So:

  while
     statements
  do
     statements

doesn't require any ':'.
We use the ':' to separate an expression from following statements,
in 'if' and 'while' and 'case'.

Signed-off-by: NeilBrown <neil@brown.name>

No differences found