Skip to content

agudulin/pyparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python parser for SourceAnalyzer

Features

  • class definition
class Foo:
    pass
=> Foo
  • function definition
class Test:
    def foo(a, b):
        def bar(c, d=g("arg")):
            pass
=> Test.foo(a, b)
=> Test.bar(c, d)
  • function call
foo().bar().a.b()
=> foo()
=> bar()
=> b()

Known issues

  • can't work with mixed spaces and tabs
  • can't define lambda functions
  • can't define decorator call

Links