1. 首页
  2. 数据库
  3. 其它
  4. 滑行:简单干净的DSL用于描述编写和解析定宽文本文件 源码

滑行:简单干净的DSL用于描述编写和解析定宽文本文件 源码

上传者: 2021-05-10 09:35:34上传 ZIP文件 17.75KB 热度 5次
滑行 by Ryan Wood http :/ / ryanwood . com 描述: 简单,干净的DSL,用于描述,编写和解析固定宽度的文本文件。 特点: 简单的DSL语法 可以解析和格式化固定宽度的文件 模板化的部分可以重复使用 无效数据的有用错误消息 简介: # Create a Slither::Defintion to describe a file format Slither . define :simple , :by_bytes => false do | d | # This is a template section that can be reused in other sections d . template :boundary do | t | t . column :record_type , 4 t . colu
下载地址
用户评论