diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-02-28 18:30:36 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-02-28 18:30:36 +0000 |
commit | 710ab3b5f8d114b9be200af135c6327117b8c676 (patch) | |
tree | 0b4d5f3eeac98a29e67ba966f26654f5fdf4b066 /Parser/asdl.py | |
parent | Tabify (diff) | |
download | cpython-710ab3b5f8d114b9be200af135c6327117b8c676.tar.gz cpython-710ab3b5f8d114b9be200af135c6327117b8c676.tar.bz2 cpython-710ab3b5f8d114b9be200af135c6327117b8c676.zip |
Whitespace normalization.
Diffstat (limited to 'Parser/asdl.py')
-rw-r--r-- | Parser/asdl.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py index 2128732cfba..3a693088f20 100644 --- a/Parser/asdl.py +++ b/Parser/asdl.py @@ -38,7 +38,7 @@ class Id(Token): def __str__(self): return self.value - + class String(Token): def __init__(self, value, lineno): self.type = 'String' @@ -71,7 +71,7 @@ class ASDLScanner(spark.GenericScanner, object): # XXX doesn't distinguish upper vs. lower, which is # significant for ASDL. self.rv.append(Id(s, self.lineno)) - + def t_string(self, s): r'"[^"]*"' self.rv.append(String(s, self.lineno)) @@ -123,7 +123,7 @@ class ASDLParser(spark.GenericParser, object): raise ASDLSyntaxError(module.lineno, msg="expected 'module', found %s" % module) return Module(name, definitions, version) - + def p_version(self, (version, V)): "version ::= Id String" if version.value != "version": |