首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 在Scala中的S表达式的实现

在Scala中的S表达式的实现

  • 资源大小:56.13 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: scala Library stream serialization data

资 源 简 介

S-expressions are a versatile and light weight approach to structured data representation. Data are represented in atoms and structured in lists. Atoms can hold arbitrary data without escaping or any other transformation. S-expressions are a superior choice to XML for non-markup applications (which are most XML applications!). This implementation is inspired by R. Rivest"s proposal: http://people.csail.mit.edu/rivest/Sexp.txt] Here"s an example [a "b" 3:abc ["more stuff" 12:goes in here]] A well formed s-expression is a list. Inside the above list we first see three atoms. The first is a token, the second is a literal C style string, and the third is a length-prefixed string. Length prefixed atoms allow arbitrary binary data and thus provide a huge win for efficiency of space and time in data storage and transmission. The fourth item is a list containing two tokens (the prefix "12" captures the string "goes in her

文 件 列 表

.classpath
.project
build.groovy
source
.svn
main
test
unit
.svn
all-wcprops
entries
all-wcprops
entries
all-wcprops
entries
all-wcprops
entries
all-wcprops
entries
all-wcprops
entries
all-wcprops
entries
s-expressions.jar
VIP VIP
0.184844s