]> ocean-lang.org Git - ocean/commitdiff
parsergen: sort virtual symbols to send of list
authorNeilBrown <neil@brown.name>
Tue, 6 Oct 2020 07:11:15 +0000 (18:11 +1100)
committerNeilBrown <neil@brown.name>
Tue, 6 Oct 2020 07:11:15 +0000 (18:11 +1100)
virtual symbols are used internally to parsergen
and of no interest to the parser.  So they shouldn't
appear in the non_term[] array.

So assign them higher numbers so the nonterminals are dense, and only
include non-virtual non-terminals in the non_term[] array.

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

No differences found