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