]> ocean-lang.org Git - ocean/commitdiff
oceani: modify grammar to not waste stack on newlines
authorNeilBrown <neil@brown.name>
Sun, 23 Jun 2019 04:29:13 +0000 (14:29 +1000)
committerNeilBrown <neil@brown.name>
Sun, 23 Jun 2019 04:29:13 +0000 (14:29 +1000)
Current grammar uses one stack frame per newline for leading
newlines as these productions are right-recursive.  This is
unnecessary and inelegant. Change to use a left-recursive Newlines
production.

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

No differences found