storygen:基于Tracery的基于语法的文本扩展器-源码

上传者: 42116681 | 上传时间: 2021-02-26 16:07:07 | 文件大小: 100KB | 文件类型: ZIP
故事情节 基于文法的文本扩展器,位于的静脉中。 通过定义语法并运行生成器来使用Storygen。 语法是字符串到字符串的数组映射(或JavaScript中具有字符串数组的对象)。 有关更多资源,请参见 让我们看一个例子。 { origin : [ "#test#" ] , test : [ "hi" , "hello" , "hola" ] } 运行时,它将随机输出“ hi”,“ hello”或“ hola”之一。 还有其他定义语法部分的方法。 函数(#funcName(arg1,arg2,...)) random(min:Int,max:Int)=>返回介于min和max之间的随机数。 switch(symbol,['val => symbol'])=>根据输入val返回一个符号。 grammar = { numberOfPeople : [ '#rand

文件下载

资源详情

[{"title":"( 38 个子文件 100KB ) storygen:基于Tracery的基于语法的文本扩展器-源码","children":[{"title":"storygen-master","children":[{"title":".gitignore <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 872B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 272.08KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"dropecho","children":[{"title":"storygen","children":[{"title":"Transforms.hx <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"Functions.hx <span style='color:#111;'> 820B </span>","children":null,"spread":false},{"title":"Generator.hx <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"Token.hx <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"LICENSE.md <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"dist","children":[{"title":"js","children":[{"title":"storygen.js <span style='color:#111;'> 29.26KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"CHANGELOG.md <span style='color:#111;'> 7.99KB </span>","children":null,"spread":false},{"title":"haxelib.json <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"ci.yml <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 6.30KB </span>","children":null,"spread":false},{"title":"build.hxml <span style='color:#111;'> 149B </span>","children":null,"spread":false},{"title":".releaserc.json <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":".npmignore <span style='color:#111;'> 34B </span>","children":null,"spread":false},{"title":"test.hxml <span style='color:#111;'> 748B </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"spirit_generator.js <span style='color:#111;'> 4.98KB </span>","children":null,"spread":false},{"title":"langgen.js <span style='color:#111;'> 28.43KB </span>","children":null,"spread":false},{"title":"example0.js <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false},{"title":"example2.js <span style='color:#111;'> 457B </span>","children":null,"spread":false},{"title":"storygen.js <span style='color:#111;'> 26.06KB </span>","children":null,"spread":false},{"title":"example1.js <span style='color:#111;'> 469B </span>","children":null,"spread":false},{"title":"spirit_generator_langgen.js <span style='color:#111;'> 5.75KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"example_memory.js <span style='color:#111;'> 582B </span>","children":null,"spread":false},{"title":"example4.js <span style='color:#111;'> 718B </span>","children":null,"spread":false},{"title":"neumorphic.css <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"index.css <span style='color:#111;'> 740B </span>","children":null,"spread":false},{"title":"example3.js <span style='color:#111;'> 674B </span>","children":null,"spread":false}],"spread":false},{"title":"test","children":[{"title":"TestSuite.hx <span style='color:#111;'> 500B </span>","children":null,"spread":false},{"title":"TestMain.hx <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"storygen","children":[{"title":"FunctionsTest.hx <span style='color:#111;'> 899B </span>","children":null,"spread":false},{"title":"GeneratorTest.hx <span style='color:#111;'> 10.06KB </span>","children":null,"spread":false},{"title":"TokenTest.hx <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"TransformsTest.hx <span style='color:#111;'> 995B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".munit <span style='color:#111;'> 77B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明