Skip to content

The OTPL core library. Provides parsing and compiling for the OTPL syntax.

License

Notifications You must be signed in to change notification settings

opentpl/otpl-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTPL-Core

Build Status

The OTPL core library. provides parsing and compiling for the OTPL syntax. OTPL 核心库,提供用于解析和编译OTPL语法。

项目结构

.
│  .gitignore
│  Cargo.toml
├─src
│  │  lib.rs                # 模块定义文件
│  └─core                   # otpl 库核心模块
│      │  mod.rs            # 模块定义文件
│      ├─ast                # 抽象语法树模块
│      │      mod.rs        # 模块定义文件
│      ├─opc                # 操作码定义模块
│      ├─parser             # 语法解析器
│      ├─scanner            # 词法分析器
│      └─token              # 词法定义模块
│
└─target                    # 编译临时文件

编码规范

  1. 文档和注释在确定可以表达清楚的基础上尽可能的用英文,否则请用中文;
  2. 返回表达式,只有一行时才可以省略 return 关键字;
  3. 。。。

//Rustfmt failed at src/data_type.rs:424: line exceeded maximum length (maximum: 100, found: 149) (sorry)

Releases

No releases published

Packages

No packages published

Languages