https://github.com/muzea/parser
使用高阶函数开发语法分析器
https://github.com/muzea/parser
higher-order-function parser typescript
Last synced: 5 months ago
JSON representation
使用高阶函数开发语法分析器
- Host: GitHub
- URL: https://github.com/muzea/parser
- Owner: muzea
- License: gpl-3.0
- Created: 2018-11-15T05:38:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-28T13:40:08.000Z (almost 7 years ago)
- Last Synced: 2025-09-07T06:59:11.628Z (5 months ago)
- Topics: higher-order-function, parser, typescript
- Language: TypeScript
- Homepage:
- Size: 36.1 KB
- Stars: 31
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 使用高阶函数开发语法分析器
[](https://travis-ci.org/muzea/parser) [](https://codecov.io/gh/muzea/parser)
程序是[轮子哥博客](http://www.cppblog.com/vczh/archive/2008/05/21/50656.html)的js复刻版。
做了一些修改方便理解。~~其实是我看不懂轮子脚本的语法了~~
示例代码
- [普通的Token](/sample/plain.js)
- [优先级信息](/sample/group.js)
- [普通的计算](/sample/calculator.js)
- [rfc1738 校验器](/sample/rfc1738.ts)
- [json 解析器](/sample/json.ts)