Punchscript:由Rajinikanth打Kong对话组成的编程语言

时间:2021-02-02 13:22:18
【文件属性】:
文件名称:Punchscript:由Rajinikanth打Kong对话组成的编程语言
文件大小:688KB
文件格式:ZIP
更新时间:2021-02-02 13:22:18
interpreter compiler ocaml menhir rajinikanth 打Kong稿 由Rajinikanth打Kong对话组成的命令式语言。 当前仅支持Integer数据类型。 这是Punchscript中的Fizz Buzz样子: 更多示例在tests目录中。 安装 OCaml的最新稳定版本(在4.06.0中开发)应从opam获得。 安装Menhir,js_of_ocaml和其他依赖项 $ opam depext -i core merlin utop ocp-indent $ opam depext -i menhir js_of_ocaml-compiler sedlex $ opam depext -i js_of_ocaml js_of_ocaml-ppx js_of_ocaml-lwt 使用Makefile构建发布目标以生成javascript文件: $ make release 转到web目录并运行任何本地Web服务器,例如: $ python3 -m http.server 您还可以创建OCaml字节码可执行文件以进行调试和测试: $ make debug 执照 GNU GPL ver3。有关详细信息,请参见文件COPYING
【文件预览】:
punchscript-master
----.ocp-indent(1018B)
----tests()
--------fizzbuzz.punch(487B)
--------test.punch(498B)
--------primes.punch(369B)
--------fibonacci.punch(251B)
--------babbage.punch(285B)
--------hello.punch(30B)
--------8ball.punch(387B)
----js()
--------jsbridge.ml(711B)
--------jbuild(152B)
----src()
--------punch.ml(295B)
--------jbuild(148B)
----.gitignore(365B)
----web()
--------css()
--------img()
--------index.html(3KB)
--------js()
--------runserver(66B)
--------copycompiler(64B)
----lib()
--------lexer.mll(3KB)
--------syntax.ml(1KB)
--------jbuild(303B)
--------debug.ml(1KB)
--------parser.mly(3KB)
--------interpreter.ml(1KB)
--------eval.ml(3KB)
----Makefile(498B)
----README.md(1KB)
----COPYING(34KB)

网友评论