【文件属性】:
文件名称:pyparser:用于SourceAnalyzer的Python解析器
文件大小:41KB
文件格式:ZIP
更新时间:2021-05-07 00:31:49
Yacc
用于SourceAnalyzer的Python解析器
特征
类定义
class Foo :
pass
=> Foo
功能定义
class Test :
def foo ( a , b ):
def bar ( c , d = g ( "arg" )):
pass
=> Test.foo(a, b)
=> Test.bar(c, d)
函数调用
foo (). bar (). a . b ()
=> foo()
=> bar()
=> b()
已知的问题
不能与混合的空格和制表符一起使用
无法定义lambda函数
无法定义装饰器调用
链接
SA3集成: :
Habrahabr文章: ://habrahabr.ru/post/141756/
【文件预览】:
pyparser-master
----README.md(680B)
----build.sh(180B)
----tests()
--------api.py(4KB)
--------indent_test.py(667B)
--------str.py(93B)
--------triple_quotes.py(70B)
--------structures.py(2KB)
--------ptest.py(15B)
--------call_in_def_args.py(240B)
--------defaults.py(1KB)
--------async.py(3KB)
----src()
--------pyparser.output(15KB)
--------parser(95KB)
--------pyparser.y(11KB)
--------lexer.l(4KB)