summaryrefslogtreecommitdiffstats
path: root/Parser/asdl.py
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/asdl.py')
-rw-r--r--Parser/asdl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py
index 2128732..3a69308 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":