Kaydet (Commit) adf16061 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

Updates to track Grammar changes. The patch to token.py loosens the regexp to

allow "testlist1" to be snagged.
üst d3890360
......@@ -76,6 +76,8 @@ argument = 318
list_iter = 319
list_for = 320
list_if = 321
testlist1 = 322
encoding_decl = 323
#--end constants--
sym_name = {}
......
......@@ -98,7 +98,7 @@ def main():
lines = fp.read().split("\n")
fp.close()
prog = re.compile(
"#define[ \t][ \t]*([A-Z][A-Z_]*)[ \t][ \t]*([0-9][0-9]*)",
"#define[ \t][ \t]*([A-Z0-9][A-Z0-9_]*)[ \t][ \t]*([0-9][0-9]*)",
re.IGNORECASE)
tokens = {}
for line in lines:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment