2182
2182
# avoid excessive use of external libraries.
2184
2184
# New type for defining tokens, syntax, and semantics all-in-one
2185
2194
Token = collections.namedtuple("Token", (
2186
2195
"regexp", # To match token; if "value" is not None, must have
2187
2196
# a "group" containing digits