gismo:具有可扩展语法的编程语言-源码

上传者: 42128558 | 上传时间: 2021-07-10 16:03:33 | 文件大小: 105KB | 文件类型: ZIP
吉斯莫 Gismo 是一个可扩展的 JavaScript 转译器(如 CoffeeScript)。 因此它读取 Gismo 源文件和生成的 JavaScript 文件。 Gismo 的主要特点是其可扩展的语法。 每个 Gismo 模块都可以包含新的语法,例如新的运算符或全新的构造,如class 、 foreach或statemachine 。 因此,在导入模块时,您可以导入代码和(可选)语法扩展。 让我们想象一个名为debugme的简单示例模块。 它包含一个新的关键字debug 。 它可以像这样使用(当存储在名为demo.gs的文件中demo.gs ): import "debugme" debug "I am here" 让我们把它编译成 JavaScript 并运行它 > gismo demo.gs demo.gs:3 I am here 显然debug已经变成了语句的语言

文件下载

资源详情

[{"title":"( 78 个子文件 105KB ) gismo:具有可扩展语法的编程语言-源码","children":[{"title":"gismo-master","children":[{"title":".gitignore <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"compiler.js <span style='color:#111;'> 18.60KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 783B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 247B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"gismo <span style='color:#111;'> 59B </span>","children":null,"spread":false},{"title":"gismoc <span style='color:#111;'> 98B </span>","children":null,"spread":false}],"spread":true},{"title":"build.js <span style='color:#111;'> 4.02KB </span>","children":null,"spread":false},{"title":"parser.js <span style='color:#111;'> 53.92KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 7.33KB </span>","children":null,"spread":false},{"title":"lexer.js <span style='color:#111;'> 48.04KB </span>","children":null,"spread":false},{"title":"teststuff.gs <span style='color:#111;'> 313B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 6.65KB </span>","children":null,"spread":false},{"title":"spiller.js <span style='color:#111;'> 17.36KB </span>","children":null,"spread":false},{"title":"errors.js <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"package.json <span style='color:#111;'> 148B </span>","children":null,"spread":false},{"title":"markdown","children":[{"title":"lang","children":[{"title":"compiler","children":[{"title":"compiler_lang.gs <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 215B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"dummy.gs <span style='color:#111;'> 307B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"build","children":[{"title":"compiler","children":[{"title":"compiler_build.gs <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 219B </span>","children":null,"spread":false}],"spread":false},{"title":"metaprogramming","children":[{"title":"package.json <span style='color:#111;'> 89B </span>","children":null,"spread":false},{"title":"transform","children":[{"title":"compiler","children":[{"title":"compiler_transform.gs <span style='color:#111;'> 6.62KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 220B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"transform.gs <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"codegen","children":[{"title":"compiler","children":[{"title":"compiler_codegen.gs <span style='color:#111;'> 14.67KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"codegen.gs <span style='color:#111;'> 4.11KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"keywords","children":[{"title":"compiler","children":[{"title":"compiler_keywords.gs <span style='color:#111;'> 11.96KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 309B </span>","children":null,"spread":false}],"spread":false},{"title":"grammar","children":[{"title":"compiler","children":[{"title":"compiler_grammar.gs <span style='color:#111;'> 26.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 218B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"doc","children":[{"title":"compiler","children":[{"title":"compiler_doc.gs <span style='color:#111;'> 25.01KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 267B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"test1.gs <span style='color:#111;'> 800B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"xml","children":[{"title":"dom","children":[{"title":"compiler","children":[{"title":"compiler_dom.gs <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 217B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"dom.gs <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"class","children":[{"title":"compiler","children":[{"title":"compiler_class.gs <span style='color:#111;'> 10.27KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"class.gs <span style='color:#111;'> 407B </span>","children":null,"spread":false}],"spread":false},{"title":"test","children":[{"title":"test1.gs <span style='color:#111;'> 1024B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"template","children":[{"title":"package.json <span style='color:#111;'> 71B </span>","children":null,"spread":false},{"title":"dom","children":[{"title":"compiler","children":[{"title":"compiler_dom.gs <span style='color:#111;'> 18.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"dom.gs <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false}],"spread":false},{"title":"test","children":[{"title":"test1.gs <span style='color:#111;'> 2.91KB </span>","children":null,"spread":false},{"title":"test1.html <span style='color:#111;'> 639B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"xml","children":[{"title":"compiler","children":[{"title":"compiler_xml.gs <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"xml.gs <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":false},{"title":"parser","children":[{"title":"package.json <span style='color:#111;'> 217B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"parser.gs <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"test","children":[{"title":"test1.gs <span style='color:#111;'> 662B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"test","children":[{"title":"module4","children":[{"title":"compiler","children":[{"title":"compiler_module4.gs <span style='color:#111;'> 564B </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 161B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"file2.gs <span style='color:#111;'> 69B </span>","children":null,"spread":false},{"title":"file1.gs <span style='color:#111;'> 244B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"module2","children":[{"title":"compiler","children":[{"title":"comp2.gs <span style='color:#111;'> 7.65KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"file2.gs <span style='color:#111;'> 243B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"weblib1","children":[{"title":"package.json <span style='color:#111;'> 508B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"style.css <span style='color:#111;'> 34B </span>","children":null,"spread":false},{"title":"weblib1.gs <span style='color:#111;'> 223B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"compiler.js <span style='color:#111;'> 443B </span>","children":null,"spread":false},{"title":"syntax_test.gs <span style='color:#111;'> 306B </span>","children":null,"spread":false},{"title":"module3","children":[{"title":"compiler","children":[{"title":"compiler_module3.gs <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"module3.gs <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"webapp1","children":[{"title":"package.json <span style='color:#111;'> 524B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test1.gs <span style='color:#111;'> 2.93KB </span>","children":null,"spread":false},{"title":"test1.html <span style='color:#111;'> 624B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"module1","children":[{"title":"compiler","children":[{"title":"comp1.gs <span style='color:#111;'> 4.43KB </span>","children":null,"spread":false}],"spread":false},{"title":"package.json <span style='color:#111;'> 209B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"file1.gs <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"parser.js <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"lexer.js <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":"parser_test.gs <span style='color:#111;'> 162B </span>","children":null,"spread":false}],"spread":false},{"title":"clean.js <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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