Skip to content

Standalone ASDL parser for upstream CPython 3.x

License

Notifications You must be signed in to change notification settings

zhumj1231/asdl_parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

asdl_parser

Standalone ASDL parser for upstream CPython 3.x.

The parser is in a single file - asdl.py; it contains a hand-written lexer and a recursive-descent parser.

Note: Python.asdl (the ASDL definition file for Python) and asdl_c.py (emitter for Python-ast.[hc]) are copied over from the CPython repository (default branch); I applied some very small cleanups to asdl_c.py, mainly because asdl.py produces cleaner ASTs than the old Spark-based parser. When run, it produces exactly the same Python-ast.[hc] as in upstream CPython.

Python version

The officially required version is Python 3.3, but should run with any 3.x

License

Same as CPython: Python Software Foundation License (LICENSE file included here).

About

Standalone ASDL parser for upstream CPython 3.x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Shell 0.2%