没有合适的资源?快使用搜索试试~ 我知道了~
baron:IDE允许您重构代码,Baron允许您编写重构代码
共98个文件
py:45个
png:24个
rst:5个
需积分: 7 0 下载量 47 浏览量
2021-05-24
15:59:31
上传
评论
收藏 846KB ZIP 举报
温馨提示
介绍 Baron是用于Python的完整语法树(FST)库。 与相反,它在创建过程中会丢弃一些语法信息(如空行,注释,格式设置),因此FST保留所有内容并保证操作fst_to_code(code_to_fst(source_code)) == source_code 。 路线图 当前的路线图无所适从: 错误修复 新的小功能(walker模式,也许是代码生成)和性能改进。 安装 pip install baron 基本用法 from baron import parse , dumps fst = parse ( source_code_string ) source_code_string == dumps ( fst ) 除非您想做低级的事情,否则请使用而不是直接使用Baron 。 将Baron视为“ python源代码的字节码”,将RedBaron视为其之上的某种可用层。 如
资源推荐
资源详情
资源评论
收起资源包目录
baron-master.zip (98个子文件)
baron-master
setup.py 1KB
.gitignore 71B
requirements.txt 5B
CHANGELOG 8KB
.travis.yml 200B
MANIFEST.in 48B
LICENSE 7KB
.env 62B
setup.cfg 57B
README.md 7KB
tests
test_baron.py 1KB
conftest.py 405B
test_spliter.py 8KB
test_path.py 16KB
test_tokenizer.py 15KB
test_formatting_grouper.py 62KB
__init__.py 0B
test_grouper.py 6KB
test_future.py 3KB
test_loop.sh 1KB
test_grammator_imports.py 41KB
test_inner_formatting_grouper.py 5KB
test_grammator.py 88KB
test_utils.py 1KB
test_regression.py 667B
test_indentation_marker.py 10KB
test_render.py 9KB
test_grammator_primitives.py 27KB
test_dumper.py 11KB
test_grammator_operators.py 287KB
test_grammator_control_structures.py 56KB
test_grammator_data_structures.py 54KB
add_new_grammar.md 4KB
baron
grammator_data_structures.py 13KB
grammator_control_structures.py 11KB
indentation_marker.py 4KB
grammator_imports.py 6KB
__init__.py 397B
baron.py 3KB
token.py 3KB
grammator.py 30KB
setup.cfg 22B
grammator_primitives.py 11KB
dumper.py 386B
tokenizer.py 4KB
parser.py 6KB
future.py 1KB
utils.py 4KB
grammator_operators.py 18KB
spliter.py 3KB
grouper.py 4KB
path.py 9KB
inner_formatting_grouper.py 5KB
formatting_grouper.py 3KB
helpers.py 408B
render.py 39KB
grammar
reference_grammar_python3.4 6KB
reference_grammar_python3.6 6KB
baron_grammar 6KB
reference_grammar_python3.5 7KB
reference_grammar_python3.7 6KB
reference_grammar_python2 6KB
reference_grammar_python3.3 6KB
docs
loop.sh 91B
grammar-python-2.7-3.6-diff-1.png 221KB
Makefile 5KB
index.rst 3KB
conf.py 9KB
make.bat 5KB
advanced.rst 4KB
grammar-python-2.7-3.6-diff-3.png 82KB
basics.rst 2KB
grammar_diff
yield_from.png 7KB
raise_from.png 4KB
new_grammar_for_if_cond.png 4KB
print_function.png 37KB
no_more_commat_in_execption_close.png 5KB
star_expr_in_expr_list.png 5KB
no_more_backquote_syntax.png 13KB
star_expr_in_testlist_comp.png 7KB
testlist_start_expressiong.png 13KB
no_more_list_for_rule.png 8KB
exec_function.png 9KB
new_lambda_grammar.png 38KB
class_inherit_is_arglist_now.png 5KB
ellipsis_is_first_class_now_not_needed_anymore.png 3KB
nonlocal_statement.png 13KB
remove_old_list_comprehension_syntax.png 21KB
star_expr.png 2KB
ellipsis_in_from_import.png 14KB
more_atoms.png 13KB
function_return_type.png 5KB
typed_args.png 36KB
technical.rst 9KB
grammar-python-2.7-3.6-diff-2.png 192KB
grammar.rst 12KB
requirements-docs.txt 26B
tox.ini 399B
共 98 条
- 1
资源评论
龙猫美术的世界
- 粉丝: 16
- 资源: 4722
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功