cwbaker / lalr

LALR(1) parser for C++
MIT License
78 stars 11 forks source link

Use size_t elements in symbol sets #37

Closed cwbaker closed 1 year ago

cwbaker commented 1 year ago

As suggested by @mingodad in #36 use size_t to store elements in GrammarSymbolSet to improve performance. Also tracks the minimum and maximum set indices to improve inserts and iteration when generating reduce transitions.

Fixes #36.