python的sutl实现
sUTL的Python项目详细描述
#这是sutl的python实现。请参见此处的[SUTL规范](https://github.com/emlynoregan/sutl-spec)。
“b”:5
}
source=6
下面加载核心库。
corestring=urllib2.urlopen(“http://emlynoregan.github.io/sutl spec/sutl_core.json”).read()
distributions=[json.loads(corestring)”
2:将转换添加到声明中{
“&;”:“+”,
“a”:“^@.item”,
“b”:1
}
}
declaration={
“transform-t”:transform,
“requires”:[“map_core”]
}
3:从发行版编译一组库
lib=sutl.compilelib([声明],发行版,假)
4:计算变换
source=[1,2,3,4]
result=sutl.evaluate(source,transform,lib)
“b”:5
}
source=6
下面加载核心库。
corestring=urllib2.urlopen(“http://emlynoregan.github.io/sutl spec/sutl_core.json”).read()
distributions=[json.loads(corestring)”
2:将转换添加到声明中{
“&;”:“+”,
“a”:“^@.item”,
“b”:1
}
}
declaration={
“transform-t”:transform,
“requires”:[“map_core”]
}
3:从发行版编译一组库
lib=sutl.compilelib([声明],发行版,假)
4:计算变换
source=[1,2,3,4]
result=sutl.evaluate(source,transform,lib)