Skip to content

Commit c169e98

Browse files
fix
1 parent b7e9668 commit c169e98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/build/generate_token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ def declate_tokens(tok_name_to_string):
191191

192192
def make_c(infile, outfile='Parser/token.c'):
193193
tok_names, ERRORTOKEN, string_to_tok = load_tokens(infile)
194-
# string_to_tok['<>'] = string_to_tok['!=']
195-
chars_to_token = {}
196194
tok_name_to_string = {
197195
tok_names[name_idx]: token
198196
for token, name_idx in string_to_tok.items()
199197
if len(token) > 1
200198
}
199+
chars_to_token = {}
200+
string_to_tok['<>'] = string_to_tok['!=']
201201

202202
for string, value in string_to_tok.items():
203203
assert 1 <= len(string) <= 3

0 commit comments

Comments
 (0)