summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2024-04-11 13:21:25 -0700
committerMatthew Sotoudeh <matthew@masot.net>2024-04-11 13:21:25 -0700
commit706ad9101ceed31812483beee8d62f202e975981 (patch)
treef954628b94d6ea2d280a2417c2cdcedead13b04a
parenta9292a98cc6c65e2a4ad6da20937ef7568a4143d (diff)
Fix weird token naming error
-rw-r--r--earlpy/earlpy.py2
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]
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback