diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-12-06 22:41:04 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-12-06 22:41:04 (GMT) |
commit | 442f20996dcd994d1024e5cad7f66a4595352eb2 (patch) | |
tree | 641746efd4247acd2b5e13f5de7f65c026242a05 /Parser/asdl.py | |
parent | 4b237e3b1112304f834ac78fe05abdecbf3d87b4 (diff) | |
download | cpython-442f20996dcd994d1024e5cad7f66a4595352eb2.zip cpython-442f20996dcd994d1024e5cad7f66a4595352eb2.tar.gz cpython-442f20996dcd994d1024e5cad7f66a4595352eb2.tar.bz2 |
create NameConstant AST class for None, True, and False literals (closes #16619)
Diffstat (limited to 'Parser/asdl.py')
-rw-r--r-- | Parser/asdl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py index 08aa05b..1f98ada 100644 --- a/Parser/asdl.py +++ b/Parser/asdl.py @@ -222,7 +222,7 @@ class ASDLParser(spark.GenericParser, object): " field ::= Id ? " return Field(type[0], opt=True) -builtin_types = ("identifier", "string", "bytes", "int", "object") +builtin_types = ("identifier", "string", "bytes", "int", "object", "singleton") # below is a collection of classes to capture the AST of an AST :-) # not sure if any of the methods are useful yet, but I'm adding them |