Remove ordering of parse and lex items
Using an unordered_map and unordered_set to store these speeds up grammar compilation significantly. The ordering method on items was using the rules' .to_string method to compute the order, which was not a meaningful comparison, and was probably slow.
This commit is contained in:
parent
4454925b5a
commit
05e16a8c46
5 changed files with 700 additions and 657 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue