Skip to content

willbr/unwind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unwind

convert python ast into a list

python unwind.py example.py

#example.py
a = 9
print("hello")

def double(n):
    return n * 2

print(f"double(a) = {double(a)}", end="")
['module',
 ['assign', 'a', 9],
 ['print', 'hello'],
 ['def', 'double', ['arguments', ['args', 'n']], [['return', ['*', 'n', 2]]]],
 ['print',
  ['joined_str', 'double(a) = ', ['formatted_value', ['double', 'a'], -1]],
  ['keyword', 'end', '']]]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors