summaryrefslogtreecommitdiff
path: root/Parser/asdl.py
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/asdl.py')
-rw-r--r--Parser/asdl.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py
index 0db4e3bc47..5b856dda52 100644
--- a/Parser/asdl.py
+++ b/Parser/asdl.py
@@ -142,7 +142,7 @@ class ASDLParser(spark.GenericParser, object):
def p_product(self, (_0, fields, _1)):
" product ::= ( fields ) "
# XXX can't I just construct things in the right order?
- fields.reverse()
+ fields.reverse()
return Product(fields)
def p_sum_0(self, (constructor,)):
@@ -164,7 +164,7 @@ class ASDLParser(spark.GenericParser, object):
def p_constructor_1(self, (id, _0, fields, _1)):
" constructor ::= Id ( fields ) "
# XXX can't I just construct things in the right order?
- fields.reverse()
+ fields.reverse()
return Constructor(id, fields)
def p_fields_0(self, (field,)):
@@ -355,7 +355,7 @@ def check(mod):
v.errors += 1
uses = ", ".join(v.types[t])
print "Undefined type %s, used in %s" % (t, uses)
-
+
return not v.errors
def parse(file):
@@ -380,7 +380,7 @@ if __name__ == "__main__":
else:
testdir = "tests"
files = glob.glob(testdir + "/*.asdl")
-
+
for file in files:
print file
mod = parse(file)