3 Star 0 Fork 0

Gitee 极速下载/cxml-xml

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
cxml
lib
__init__.py
lexer.py
model.py
parser.py
symbols.py
translator.py
tests
.gitignore
HISTORY.rst
LICENSE
MANIFEST.in
Makefile
README.rst
setup.py
tox.ini
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/python-openxml/cxml
克隆/下载
__init__.py 545 Bytes
一键复制 编辑 原始数据 按行查看 历史
Steve Canny 提交于 10年前 . first version
# encoding: utf-8
"""
API for CXML translator.
"""
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
__version__ = '0.9.6'
from .lexer import CxmlLexer
from .parser import CxmlParser
from .symbols import root
from .translator import CxmlTranslator
def xml(cxml):
"""
Return the XML generated from *cxml*.
"""
lexer = CxmlLexer(cxml)
parser = CxmlParser(lexer)
root_ast = parser.parse(root)
root_element = CxmlTranslator.translate(root_ast)
return root_element.xml
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/cxml-xml.git
git@gitee.com:mirrors/cxml-xml.git
mirrors
cxml-xml
cxml-xml
master

搜索帮助