pegjs-otf:PEG.js 的即时编译

时间:2021-05-29 09:20:02
【文件属性】:
文件名称:pegjs-otf:PEG.js 的即时编译
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-29 09:20:02
node browser js compile peg pegjs-otf 这是一个围绕 API 的小包装类和一个配套的转换,用于在 /NPM 和 Browser/ 环境的语法相同的情况下,即时 (OTF) 将语法编译为解析器代码。 安装 $ npm install pegjs-otf $ npm install browserify 用法 使用这样的示例语法sample.pegjs ...... sample = _ "hello" _ who:[A-Za-z]+ _ { return who.join(""); } _ "blank" = (co / ws)* co "comment" = "//" (![\r\n] .)* / "/*" (!"*/" .)* "*/" ws "whitespaces" = [ \t\r\n]+ ...而不是使用sample.js驱动程序... var PE
【文件预览】:
pegjs-otf-master
----jshint.json(784B)
----eslint.json(5KB)
----Gruntfile.js(2KB)
----sample.js(190B)
----transform.js(3KB)
----README.md(5KB)
----Makefile(2KB)
----sample.pegjs(206B)
----.gitignore(13B)
----index.js(2KB)
----package.json(999B)

网友评论