diff options
-rw-r--r-- | prolog/lexer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prolog/lexer.py b/prolog/lexer.py index 8f1a268..799ebb9 100644 --- a/prolog/lexer.py +++ b/prolog/lexer.py @@ -57,7 +57,7 @@ operators = { r',': 'COMMA', r';': 'SEMI' } -tokens = list(operators.values()) + [ +tokens = sorted(list(operators.values())) + [ 'UINTEGER', 'UREAL', 'NAME', 'VARIABLE', 'STRING', 'LBRACKET', 'RBRACKET', 'LPAREN', 'RPAREN', 'PIPE', 'LBRACE', 'RBRACE', |