没有合适的资源?快使用搜索试试~ 我知道了~
pegtool:通过解析表达式语法生成解析器和AST的实用程序
共22个文件
txt:12个
peg:4个
cpp:2个
需积分: 9 0 下载量 191 浏览量
2021-03-18
07:16:20
上传
评论
收藏 19KB ZIP 举报
温馨提示
钉工具 注意:该项目正在进行中,尚无法使用。 用于C ++的PEG解析器生成器。 显着特点: 线性,高效内存的解析树 运行时生成的解析器VM API用法 const char grammarSpec[] = R"( Example <- 'foo' )" ; peg::Grammar grammar; grammar.parse(grammarSpec); peg::Module module; // <- Stores code for the VM to execute. module.load(grammar); // <- Converts the grammar to bytecode. peg::ParseTree parseTree = module.exec( " foo bar " , sizeof ( " foo bar " ) - 1 ); // <- Invoke
资源推荐
资源详情
资源评论
收起资源包目录
pegtool-main.zip (22个子文件)
pegtool-main
pegtool_test.cpp 5KB
tests
missing_right_arrow
expected_err.txt 82B
should_fail.txt 0B
grammar.peg 10B
invalid_def_name
expected_err.txt 71B
should_fail.txt 0B
grammar.peg 2B
literal_expr
expected_accept_output.txt 26B
expected_reject_output.txt 0B
accept.txt 7B
expected_bytecode.txt 63B
grammar.peg 26B
reject.txt 4B
missing_expr_after_right_arrow
expected_err.txt 96B
should_fail.txt 0B
grammar.peg 13B
.clang-format 4KB
pegtool.h 7KB
.gitignore 6B
CMakeLists.txt 931B
README.md 669B
pegtool.cpp 32KB
共 22 条
- 1
资源评论
是CC阿
- 粉丝: 20
- 资源: 4744
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功