]> ocean-lang.org Git - ocean/commit
parsergen: only non-terminals should make a state "starts_line"
authorNeilBrown <neil@brown.name>
Fri, 28 Jun 2019 09:36:49 +0000 (19:36 +1000)
committerNeilBrown <neil@brown.name>
Fri, 28 Jun 2019 09:36:49 +0000 (19:36 +1000)
commit4d2ce55b40d7115581cab1a1e13000736f0c94d0
tree4222fce0d93abc848c6a40fd8d09e30160ce73e4
parente74b53b80e4b2cdf846e9dd207180087e0b9c41b
parsergen: only non-terminals should make a state "starts_line"

If a state is followed by NEWLINE, then it isn't starts_line - more like
ends_line.
It is only non-terminals containing NEWLINEs that cause a state
to be starts_line.
So move the test to after we stop looking at terminals.

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