]> ocean-lang.org Git - ocean/commit
parsergen: remove unused 'start' field from grammar.
authorNeilBrown <neilb@suse.de>
Sun, 11 May 2014 04:57:10 +0000 (14:57 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 15 Jun 2014 07:13:10 +0000 (17:13 +1000)
commitb944d50308a919178d83d52685aab433c99e1ac1
tree007c57a274a029a1f1e286f6d98c4d375c66d033
parent40d7c402f7ea0269c426b58e40c790c9f771c0d4
parsergen: remove unused 'start' field from grammar.

This field is only used to see if we have found the start symbol yet,
and that can be done using "production_count".

Further, that value actually stored here is "-1" as symbol numbers
haven't been assigned yet.

So discard 'start'.  We know that the real 'start' symbol is whatever
starts production '0'.

Signed-off-by: NeilBrown <neilb@suse.de>
csrc/parsergen.mdc