diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2024-04-11 13:21:25 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2024-04-11 13:21:25 -0700 |
commit | 706ad9101ceed31812483beee8d62f202e975981 (patch) | |
tree | f954628b94d6ea2d280a2417c2cdcedead13b04a | |
parent | a9292a98cc6c65e2a4ad6da20937ef7568a4143d (diff) |
Fix weird token naming error
-rw-r--r-- | earlpy/earlpy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/earlpy/earlpy.py b/earlpy/earlpy.py index 2944c51..a1f4e17 100644 --- a/earlpy/earlpy.py +++ b/earlpy/earlpy.py @@ -157,7 +157,7 @@ class Parser: new_ordered_symbols.append(symbol) continue new_rule = [] - for token in split_out: + for token in sorted(split_out): name = f"{symbol.name}::{token}" self.name_to_symbol[name] = Symbol(name + " list") self.name_to_symbol[name].contents = [token] |