We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7e9668 commit c169e98Copy full SHA for c169e98
Tools/build/generate_token.py
@@ -191,13 +191,13 @@ def declate_tokens(tok_name_to_string):
191
192
def make_c(infile, outfile='Parser/token.c'):
193
tok_names, ERRORTOKEN, string_to_tok = load_tokens(infile)
194
- # string_to_tok['<>'] = string_to_tok['!=']
195
- chars_to_token = {}
196
tok_name_to_string = {
197
tok_names[name_idx]: token
198
for token, name_idx in string_to_tok.items()
199
if len(token) > 1
200
}
+ chars_to_token = {}
+ string_to_tok['<>'] = string_to_tok['!=']
201
202
for string, value in string_to_tok.items():
203
assert 1 <= len(string) <= 3
0 commit comments