]> ocean-lang.org Git - ocean/commit
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)
commit2594d150e123c29949493c37c8b9c14aa6abe5a4
tree5275b49dfa1b76fada0f1a470e082d86d4dc42e0
parentabe144f0999c5576e18c74324c2436cd6bd65b2d
parsergen: sort virtual symbols to send of list

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>
csrc/parsergen.mdc